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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.