TabView Background color

What is the best way to add a background color to tabview? I tried the code below with .tabViewBackgroundONE(.blue) but still no change
extension View {
func tabViewBackgroundONE(_ color: Color) -> some View {
self.background(
ZStack {
color.ignoresSafeArea()
}
)
}
}
extension View {
func tabViewBackgroundONE(_ color: Color) -> some View {
self.background(
ZStack {
color.ignoresSafeArea()
}
)
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?