From iOS 15 / XCode 13 on unfilled icons (SF Symbols) in TabView are filled by default. Same problem as reported here:
How to change filled icon to not filled on TabView tabItem in iOS 15 Xcode 13?
The mentioned solution does not work for me. Adding
.tabItem
{
Image(systemName: "video")
.environment(\.symbolVariants, .none)
}
throws following error:
Key path value type 'WritableKeyPath<EnvironmentValues, SymbolVariants>' cannot be converted to contextual type 'KeyPath<EnvironmentValues, SymbolVariants>'
Anything missing?
Solution: Project's build settings have to be set to iOS 15 as minimum supported iOS version in order to avoid the error message.