Skip to content

Instantly share code, notes, and snippets.

@sgl0v
Created October 6, 2019 15:30
Show Gist options
  • Save sgl0v/fcd9bef30cfc225009c5a84a8f625cd2 to your computer and use it in GitHub Desktop.
Save sgl0v/fcd9bef30cfc225009c5a84a8f625cd2 to your computer and use it in GitHub Desktop.
Backward compatible Dark Mode on iOS - MoviesTableViewController.swift
class MoviesTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
themeProvider.register(observer: self)
}
}
extension MoviesTableViewController: Themeable {
func apply(theme: Theme) {
// update UI attributes
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment