Styling iOS Apps
Apple’s HIG on color for iOS apps.
New in iOS 13: Semantic Colors
UIAppearance
For multiple themes in an app, I like using a ThemeRepository
paradigm. When I only care for a single theme, then that’s overkill, and I’ll use UIAppearance
as much as I can.
Styling UINavigationBar
UINavigationBar.appearance().barTintColor = navColor
UINavigationBar.appearance().titleTextAttributes = [.foregroundColor: textColor]
UINavigationBar.appearance().tintColor = navButtonColor
Styling the Status Bar
Note: This is deprecated as of iOS 9.
UIApplication.shared.statusBarStyle = .lightContent
Last updated: 2020-12-22 17:22:26 -0800