ios – TabBar background colour is altering regardless that I do not need it to


I wish to change my tabbar background colour. I did it within the AppDelegate.

func software(_ software: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    if #out there(iOS 15.0, *) {
        let tabbar = UINavigationBar.look()
        tabbar.isTranslucent = false
        tabbar.barTintColor = UIColor(purple: 0.42, inexperienced: 0.5, blue: 0.2, alpha: 1)
    }
    return true
}

However for some motive after I click on on the CharactersTabBar button the tabbar’s background modifications.
Is that this one thing that can’t be modified or is it one thing customizable? If I can change my tabbar background colour, how do I do this and why is that this taking place in my model? FYI, I did nothing in Foremost.storyboard. I’ll share screenshots.

enter image description here

enter image description here

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles