Using onAppear did not work for me. I split the difference to get it to work for me, using
init() {
UITabBar.appearance().barTintColor = UIColor(Color(colorExtraLight)) // custom color.
}
Also, with backgroundColor it appeared to be about 50% opaque, but barTintColor appeared solid.
xcode 12.4/iOS 14.0
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: