- import Foundation
- import Observation
- import UIKit
- @Observable class AppState {
- func configureTabBarAppearance() {
- let appearance = UITabBarAppearance()
- appearance.configureWithDefaultBackground()
- appearance.backgroundEffect = UIBlurEffect(style: .systemChromeMaterial)
- appearance.backgroundColor = UIColor.clear
- UITabBar.appearance().standardAppearance = appearance
- UITabBar.appearance().scrollEdgeAppearance = appearance
- }
- }
|