Hour 18. Using Extensions to Add Type Functionality
What You’ll Learn in This Hour:
How to define extensions
How to add initializers with extensions
How to add methods, computed properties, and subscripts with extensions
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.