New TabView iconSource selectedColor not working on ios and nativescript-angular@0.3.1
See original GitHub issueHi, I’m implementing the new TabView with iconSource and the selectedColor works for the title, but not for the font, I mean icon.
I had never able to use the icon as “mask” and now that it’s working I can’t change the selectedColor
.
Anybody else with the same issue?
I posted my html markup here.
Here is the result:
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
How to change TabView background color with SwiftUI?
the accentColor modifier works ok for changing the icon selected color, but I can not get the background color to change. Modifiers I've...
Read more >Change the tab selection color in TabBar SwiftUI
I am trying to change the color of selected tab in TabBar, but nothing worked. I can change the TabBar backgroundColor by writing...
Read more >Working with the Tab View in SwiftUI - SerialCoder.dev
Learn how to create tab bar based applications in SwiftUI with the Tab view, how to deal with tab items, and other interesting...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@leocaseiro indeed the change introduced in https://github.com/NativeScript/NativeScript/issues/1278 where UIImageRenderingModeAlwaysOriginal was replaced with UIImageRenderingModeAutomatic is the reason for this behaviour under iOS. We will discuss the options for introducing a property to further control the iconSource under iOS (or use selectedColor as initially intended) and I will update the information here.
Hey @NickIliev, thanks for posting that!
Exactly what I’ve tried. However, in the new version of the {N} (if you try, you can emulate the same issue), you’ll see that the iOS ignores the color of the icons, creating a mask for it.
You can read more about it here https://developer.apple.com/ios/human-interface-guidelines/graphics/custom-icons/#//apple_ref/doc/uid/TP40006556-CH21-SW1