An Xcode 9 playground written in Swift 4 to demonstrate property observers. In the companion article to this playground, "Swift 4 property observers: responding to changes in property values and managing state", we learn about a feature of Swift called "property observers" that help developers manage app state. You can easily add code to monitor changes to Swift native type property values as well as your own custom type property values. Remember that you can gain insight into an application by looking at its state: the data values stored in all properties of the app at a specific point in time. Getting a grip on app state, therefore managing complexity, is one of the biggest challenges in computer science. Property observers are one technology that help you get a grip. In the companion article, I explain this Swift feature, demonstrate its usage with runnable examples of Swift code, show you how I built an app which relies on property observers, and provide you a list of other Swift technologies that help you manage app state and complexity.
-
Notifications
You must be signed in to change notification settings - Fork 1
An Xcode 9 playground written in Swift 4 to demonstrate property observers.
License
iosbrain/ObserversPlayground
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
An Xcode 9 playground written in Swift 4 to demonstrate property observers.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published