Код: Выделить всё
override func viewDidLoad() {
super.viewDidLoad()
self.disableLiquidGlass()
self.delegate = self
self.setupTabBar()
}
Код: Выделить всё
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
tabBar.subviews
.filter { String(describing: type(of: $0)).contains("UIVisualEffectView") }
.forEach { $0.removeFromSuperview() }
}
Код: Выделить всё
private func disableLiquidGlass() {
let appearance = UITabBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundEffect = nil
appearance.backgroundColor = .white
appearance.shadowImage = UIImage()
appearance.shadowColor = .clear
tabBar.standardAppearance = appearance
tabBar.scrollEdgeAppearance = appearance
tabBar.isTranslucent = false
tabBar.backgroundImage = UIImage()
tabBar.backgroundColor = .white
}

iOS 26.2

Я пробовал несколько подходов, но ни один из них не сработал. Я хочу, чтобы поведение и внешний вид в iOS 26 были такими же, как и в iOS 18.
Подробнее здесь: https://stackoverflow.com/questions/798 ... n-ios-26-2
Мобильная версия