Created
April 22, 2019 00:19
-
-
Save aainaj/78b052de8a9bacfe6756bfcf48fd29db to your computer and use it in GitHub Desktop.
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
final class ViewController: UIViewController { | |
let containerView = UIView() | |
let tableView = UITableView() | |
var dataModel: [String] = ["Jan", "Feb", "March"] { | |
didSet { | |
if (dataModel != oldValue) { | |
tableView.reloadData() | |
} | |
} | |
willSet(newValue) { | |
// Set label text by this value | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment