Created
March 30, 2018 13:42
-
-
Save rtking1993/aed84f4c2edffae4f2053b9ed793d509 to your computer and use it in GitHub Desktop.
A simple example of a property observer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MARK: Variables | |
var items: [Item] = [] { | |
didSet { | |
myTableView.reloadData() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment