I’ve a TabView with labels, I’m not certain why this is not documented in any respect and I’ve discovered on one other query on the stackoverflow that the next strains of code solely works on iOS 15.0:
if (selectedTab == 2) {
Label("Playlist", systemImage: "star.fill")
} else {
Label("Playlist", systemImage: "star")
.setting(.symbolVariants, .none)
}
This works as desired when my challenge has 15.0 because the minimal model, nevertheless, something beneath marks the next error:
Key path worth kind 'WritableKeyPath<EnvironmentValues, SymbolVariants>' can't be transformed to contextual kind 'KeyPath<EnvironmentValues, SymbolVariants>
I feel most tasks ought to assist iOS variations beneath 15.0 (I’m not certain about this since I’m new to the sphere), so how do I make earlier variations present unfilled icons (define/default/none) in a TabView ?