O'Reilly logo

Swift in 24 Hours, Sams Teach Yourself by BJ Miller

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 Apple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required