Skip to content

Intro

Implementation

Implement it in didFinishLaunching method of your app delegate or scene delegate.

UINavigationBar.appearance().barTintColor = .red

Resources

https://www.hackingwithswift.com/example-code/uikit/what-is-the-uiappearance-proxy

SO UI appearance not working on programmatic UI https://stackoverflow.com/questions/11308379/uiappearance-not-taking-effect-on-uilabels-created-programmatically?rq=1

https://peterwitham.com/swift/how-to-theme-an-ios-app-using-uiappearance/

https://nshipster.com/uiappearance/

https://www.raywenderlich.com/652-uiappearance-tutorial-getting-started