Saturday, November 7, 2026
HomeiOS Developmentios - Colour of buttons in TabView

ios – Colour of buttons in TabView

[ad_1]

I’m particularly utilizing the “non-filled” SF symbols in my code, nevertheless the symbols are nonetheless stuffed no matter what I do.

I’m positive that it’s due to one of many background/foreground coloration presets within the init technique, however I can’t determine which one.

For some purpose I additionally can’t change the dimensions of the SF Image – I set the dimensions to massive nevertheless it doesn’t do something.

Any assistance is appreciated.

struct tabViewErchis: View {
    init() {
        UITabBar.look().backgroundColor = UIColor(Colour(#colorLiteral(purple: 0.7137255072593689, inexperienced: 0.10196077823638916, blue: 0.10196077823638916, alpha: 1)))
        
        UITabBar.look().unselectedItemTintColor = UIColor.white
        UITabBar.look().tintColor = UIColor.white
    }
    
    var physique: some View {
        
        let config = UIImage.SymbolConfiguration(scale: .massive)
        
        TabView() {
            temp()
                .tabItem {
                    Picture(systemName: "globe.americas.fill")
                        .imageScale(.massive)
                        

                    
                }
            Textual content("Tab 2")
                .tabItem {
                    Picture(systemName: "bag")
                        

                    
                }
            Textual content("Tab 2")
                .tabItem {
                    Picture(systemName: "plus.sq.")

                    
                }
            Textual content("Tab 2")
                .tabItem {
                    Picture(systemName: "individual")
                    
                }
        }
    }
}

Filled SF Symbols in Menu Bar

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments