Property Observers in Swift — How to Use willSet and didSet

You create a class. You create a property. You know this is only the beginning. There is so much more you can do. You can make a property as badass as you want. Property observers are one way to power them up. They let you watch the flow of a property as it changes and …

Property Observers in Swift — How to Use willSet and didSet Read More »