I have also been stuck on this for weeks, and was finally able to get it working with something like this:
if #available(iOS 13.0, *) {
let tabBarAppearance: UITabBarAppearance = UITabBarAppearance()
tabBarAppearance.configureWithDefaultBackground()
if #available(iOS 15.0, *) {
UITabBar.appearance().scrollEdgeAppearance = tabBarAppearance
}
}
I have this set this in SceneDelegate.swift
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: