21.7 C
Canberra
Tuesday, October 21, 2025

Unselected UITabBar merchandise’s icon colour doesn’t change in iOS26


When attempting to render a UITabBarController with customized tint colour for chosen and unselected gadgets, I get right behaviour on model previous to iOS26. However on iOS26 tint is accurately utilized on chosen gadgets, however for unselected ones it is just utilized on the textual content not icon.

{
    let tabBar = self.tabBar
    if #obtainable(iOS 13.0, *) {
        let look = UITabBarAppearance()

        look.stackedLayoutAppearance.chosen.iconColor = .systemGreen
        look.stackedLayoutAppearance.chosen.titleTextAttributes = [.foregroundColor: UIColor.systemGreen]

        look.stackedLayoutAppearance.regular.iconColor = .systemRed
        look.stackedLayoutAppearance.regular.titleTextAttributes = [.foregroundColor: UIColor.systemRed]
        
        tabBar.standardAppearance = look
        tabBar.scrollEdgeAppearance = look
    } else {
        tabBar.tintColor = .systemGreen
        tabBar.unselectedItemTintColor = .systemRed
    }

    tabBar.gadgets?.forEach { merchandise in
        merchandise.picture = merchandise.picture?.withRenderingMode(.alwaysTemplate)
        merchandise.selectedImage = merchandise.selectedImage?.withRenderingMode(.alwaysTemplate)
    }
}

What I get:

Unselected UITabBar merchandise’s icon colour doesn’t change in iOS26

I’m anticipating colour for icon to be similar because the textual content incase of unselected tab merchandise as properly.

enter image description here

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles