Created
October 6, 2019 15:30
-
-
Save sgl0v/fcd9bef30cfc225009c5a84a8f625cd2 to your computer and use it in GitHub Desktop.
Backward compatible Dark Mode on iOS - MoviesTableViewController.swift
This file contains hidden or 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
| 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