Is there a way to increase the size of tab bar item icons?.frame(width: 40, height: 40)
doesn't help.
Settings()
.tabItem {
VStack {
Image(systemName: "archivebox")
}
}
.tag(1)
To change the background color and default tab item colors, some extra work is required as demonstrated below. As shown in lines 2-4, we can use UITabBar. appearance(). backgroundColor to modify the color of the tab bar.
You can directly use font size like that (tested in Xcode 11.3).
Please note that only works for symbol images (SF Symbols or . custom SVG symbols), it doesn't work for bitmap images.
YourView()
.tabItem {
Image(systemName: "heart").font(.system(size: 26))
Text("Offers")
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With