Hour 18. Using Extensions to Add Type Functionality

What You’ll Learn in This Hour:

Image How to define extensions

Image How to add initializers with extensions

Image How to add methods, computed properties, and subscripts with extensions

Image How to adopt a protocol to an existing type

In this hour, we discuss a feature of Swift called extensions. Types provided by ...

Get Swift in 24 Hours, Sams Teach Yourself, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.