HomeiOS DevelopmentProblem with Customized Tab Bar Displaying Default Liquid Glass Choice on iOS...

Problem with Customized Tab Bar Displaying Default Liquid Glass Choice on iOS 26.2


I’ve carried out a customized tab bar, and it really works accurately on iOS 18. Nonetheless, on iOS 26, the Liquid Glass impact shows the default tab choice, which I must take away. I’ve tried a number of approaches, however none have resolved the problem.

    override func viewDidLoad() {
        tremendous.viewDidLoad()
        
        self.disableLiquidGlass()
        
        self.delegate = self
        self.setupTabBar()
    }
    override func viewDidLayoutSubviews() {
        tremendous.viewDidLayoutSubviews()
        tabBar.subviews
            .filter { String(describing: kind(of: $0)).accommodates("UIVisualEffectView") }
            .forEach { $0.removeFromSuperview() }
    }
    personal func disableLiquidGlass() {

        let look = UITabBarAppearance()
        look.configureWithOpaqueBackground()

        look.backgroundEffect = nil
        look.backgroundColor = .white
        look.shadowImage = UIImage()
        look.shadowColor = .clear

        tabBar.standardAppearance = look
        tabBar.scrollEdgeAppearance = look

        tabBar.isTranslucent = false

        tabBar.backgroundImage = UIImage()
        tabBar.backgroundColor = .white
    }

iOS 18
Problem with Customized Tab Bar Displaying Default Liquid Glass Choice on iOS 26.2
iOS 26.2
enter image description here

I’ve tried a number of approaches, however none of them labored. I need the conduct and look to be the identical on iOS 26 as it’s on iOS 18.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments