Код: Выделить всё
appearance.stackedLayoutAppearance.selected.iconColor = R.color.lightGreen()
appearance.stackedLayoutAppearance.selected.titleTextAttributes = [NSAttributedString.Key.foregroundColor: R.color.lightGreen()!]
appearance.stackedLayoutAppearance.normal.iconColor = R.color.darkGray()
appearance.stackedLayoutAppearance.normal.titleTextAttributes = [NSAttributedString.Key.foregroundColor: R.color.darkGray()!]
< /code>
Все работает, кроме этой строки: < /p>
appearance.stackedLayoutAppearance.normal.iconColor = R.color.darkGray(), что приводит к этому:
Навабар без цвета на невыбранных элементах
Любая помощь?
Подробнее здесь: https://stackoverflow.com/questions/797 ... r-on-ios26
Мобильная версия