Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Tab Bar color different on iOS 14 and iOS 15

I’m using the newest version of Xcode.

My iOS app is build with a Tab Bar Controller. The main Views of the View Controllers that are connected to the Tab Bar Controller have a green Background color. This will make the menu bar at the top (with time, network …) green and will make the Tab Bar have a slight green touch, on iOS 14, like this:

iOS 14

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

But since iOS 15 the Tab Bar is fully green instead of translucent with a green touch. It looks like this:

iOS 15

Why that? How can I have the same effect on iOS 15 as on iOS 14.

>Solution :

Swift:

UserDefaults.standard.set(false, forKey: "UIBarsApplyChromelessEverywhere")

Objective-C:

[NSUserDefaults.standardUserDefaults setBool:NO forKey:@"UIBarsApplyChromelessEverywhere"];

This will also fix UINavigationBar and UIToolbar.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading