04

An introduction to Swift extensions and to use them to add computed properties and convenience initializers to existing types.

Swift extensions are basically adding methods to existing type (classes, structures, and enumerations) just in a few different flavors.

Below I will list off what extensions can add to existing types:

  • Computed Properties
  • Instance and type methods
  • Convenience Initializers
  • Subscripts
  • Nested Types
  • Protocol Adoption

Read more on codingexplorer.com

Leave a comment