HomeiOS Developmentios - Cannot change icon coloration regular state on UITabBar on iOS26

ios – Cannot change icon coloration regular state on UITabBar on iOS26


so, i am scuffling with updating some issues on my iOS App with the iOS 26. Mainly, i can not perceive why i can change each coloration of the gadgets of the tab bar besides the icon coloration for regular state.

i’ve this code for that objective:

look.stackedLayoutAppearance.chosen.iconColor = R.coloration.lightGreen()
look.stackedLayoutAppearance.chosen.titleTextAttributes = [NSAttributedString.Key.foregroundColor: R.color.lightGreen()!]

look.stackedLayoutAppearance.regular.iconColor = R.coloration.darkGray()
look.stackedLayoutAppearance.regular.titleTextAttributes = [NSAttributedString.Key.foregroundColor: R.color.darkGray()!]

The whole lot is working besides this line:

look.stackedLayoutAppearance.regular.iconColor = R.coloration.darkGray()

Which leads to this:

image

Any assist?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments