Skip to content

Instantly share code, notes, and snippets.

@rtking1993
Created March 30, 2018 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtking1993/aed84f4c2edffae4f2053b9ed793d509 to your computer and use it in GitHub Desktop.
Save rtking1993/aed84f4c2edffae4f2053b9ed793d509 to your computer and use it in GitHub Desktop.
A simple example of a property observer
// 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