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.
(Adapted from this post).
UINavigationBar.appearance().barTintColor = navColor UINavigationBar.appearance().titleTextAttributes = [.foregroundColor: textColor] UINavigationBar.appearance().tintColor = navButtonColor
Note: This is deprecated as of iOS 9.
UIApplication.shared.statusBarStyle = .lightContent
Last updated: 2020-06-07 16:24:37 -0700