AppState.swift 484 B

12345678910111213141516
  1. import Foundation
  2. import Observation
  3. import UIKit
  4. @Observable class AppState {
  5. func configureTabBarAppearance() {
  6. let appearance = UITabBarAppearance()
  7. appearance.configureWithDefaultBackground()
  8. appearance.backgroundEffect = UIBlurEffect(style: .systemChromeMaterial)
  9. appearance.backgroundColor = UIColor.clear
  10. UITabBar.appearance().standardAppearance = appearance
  11. UITabBar.appearance().scrollEdgeAppearance = appearance
  12. }
  13. }