Closed derech1e closed 2 years ago
@derech1e - There isn't a great way to get into that granular level of dynamically changing fills on particular nodes yet - however, you might try creating different states for the icon in a state machine that has fills for the different cases in your project.
Hey, is there currently a way to set the color of an icon in SwiftUI programmatically?
The idea is that the icon automatically obtains the color from the background color like seen below.
So in the previous Image I solved this by using the blend mode in SwiftUI
.blendMode(selectedTab == tab.selection ? .overlay : .normal)
But this don't quite work as you can see below.
Is there any solution or already plans/thoughts to implement this?
Thank you for your great Software!