/CFATheme

An example project demonstrating how to implement a Night Mode

Primary LanguageObjective-CMIT LicenseMIT

CFATheme

An example project demonstrating how to implement a Night Mode

About

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:

alt text

Classes

Take a look at the template classes UIColor+CFA, CFAThemeManager, and UIResponder+Theme for implementing your own.

✌️