class RemindersViewController: UIViewController {
// MARK: View vars
var tableView: UITableView!
var checbox: UIButton!
// MARK: Data vars
var reminders: [Reminder] = []
// MARK: View Lifecycle
override func viewDidLoad() {
....
}
}
Extensions
We want to adapt using extensions more often to separate code. A lot of the time we have a RemindersViewController with 500 lines all in 1 class. It is very hard to read and find what you are looking for. Let us fix this with extensions.