question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New TabView iconSource selectedColor not working on ios and nativescript-angular@0.3.1

See original GitHub issue

Hi, 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:

tab-bar-selectedcolor

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
NickIlievcommented, Aug 12, 2016

@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.

1reaction
leocaseirocommented, Aug 12, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found