-
iOS [Swift] - iOS 15 이상 TabBar BartintColor 변경하기iOS Develop 2022. 4. 18. 14:11반응형
AppDelegate - didFinishLaunchingWithOptions() 메소드에 아래 코드를 추가한다.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { if #available(iOS 15.0, *) { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground() // background color 변경 UITabBar.appearance().backgroundColor = UIColor.purple } return true }'iOS Develop' 카테고리의 다른 글
iOS [Swift] - UISegmentedControl Background Color 변경 (0) 2022.05.06 iOS [Swift] - ScrollView 간단 파헤치기 (0) 2022.04.19 iOS [Swift] - Custom Cell 적용하기 (0) 2022.04.18 iOS [Swift] - height constraint Outlet 변수 생성 (0) 2022.04.05 iOS [Swift] - HealthKit Query 정리 (0) 2022.03.29