'SwiftUi TabView icon size and margin
I've created an basic app with swiftui that contain a bottom tab navigation menu.

I've a question, it's possible to increase the margin top of the icon? and it's possible to decrease the icon size? this is my code:
var body: some View {
TabView {
MarketplaceView()
.tabItem {
Label("", systemImage: "arrow.right.arrow.left")
.environment(\.symbolVariants, .none)
}
WalletView()
.tabItem {
Label("", systemImage: "creditcard")
.environment(\.symbolVariants, .none)
}
My11View()
.tabItem {
Label("", systemImage: "person.3")
.environment(\.symbolVariants, .none)
}
NotificationCenterView()
.tabItem {
Label("", systemImage: "bell")
.environment(\.symbolVariants, .none)
}
ProfileView()
.tabItem {
Label("", systemImage: "person")
.environment(\.symbolVariants, .none)
}
}
.accentColor(Color("m_green"))
}
thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
