Extensions by Example - Swift Programming Language
1. Introduction * Extensions add new functionality to an existing class, structure, enumeration, or protocol type. * This includes the ability to extend types for which you do not have access to the original source code. * Declare extensions with the extension keyword * Format of Extension extension SomeType { // new functionality } * An extension can