Diving into Swift Extensions
Extensions in Swift can provide an elegant and organized way to add functionality to structs, enums, classes and protocols. They can add intent and readability to the code, paving the way for glowing Swift poetry, choirs of singing angels and world peace*. A great way to get rolling with extensions is to see how they can be used to enhance an existing struct in the Swift standard library. This post will cover how to add simple computed properties and create an extension to group measurement unit conversions in an app. *best case scenario