An example project demonstrating how to implement a Night Mode
This sample project demonstrates how to easily and robustly design your code to enable supporing Day & Night UI themes. The theme can be forced (via segmented control) or is otherwise determined based on the screen's brightness.
Here's an example of it in action:
Take a look at the template classes UIColor+CFA
, CFAThemeManager
, and UIResponder+Theme
for implementing your own.
✌️