-
iOS 15 + NavigationBar, Tabbar 배경 구분선 투명해진건에 대하여프로그래밍/iOS 배포 2022. 3. 19. 18:15
https://developer.apple.com/forums/thread/682420
barTintColor not working in iOS 15 | Apple Developer Forums
In iOS 15, UIKit has extended the usage of the scrollEdgeAppearance, which by default produces a transparent background, to all navigation bars. The background is controlled by when your scroll view scrolls content behind the navigation bar. Your screensho
developer.apple.com
내부 테스트를 하다 보니 iOS 15부터는 네비게이션바와 탭바 배경이 투명해지고 구분선이 사라졌다..!
아이폰 기본 앱도 다 그렇게 바뀜..!
기존 iOS 13, 14 버전 iOS 15 그래서 내 앱도 대응을 해줘야 하는데
기능상 오류는 없지만 미관적으로 괜찮은지 생각해봐야 하는 부분들이 있었다.
일단 기존처럼 관리하고 싶다면
AppDelegate의 didFinishLaunchingWithOptions에서 아래처럼 적용해주면 된다.
// White non-translucent bar, supports dark appearance if #available(iOS 15, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() //appearance.titleTextAttributes = [.font : UIFont().nanumFont21] //폰트 UINavigationBar.appearance().standardAppearance = appearance UINavigationBar.appearance().scrollEdgeAppearance = appearance } if #available(iOS 15, *) { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground() //appearance.backgroundColor = UIColor(named: "")! //컬렁 UITabBar.appearance().standardAppearance = appearance UITabBar.appearance().scrollEdgeAppearance = appearance }
'프로그래밍 > iOS 배포' 카테고리의 다른 글
[감정 소비] 1.0.5 업데이트에 관하여 (Feat. iOS Custom Font, Radio Button, 사용자 문의) (0) 2022.04.30 앱 업데이트 배포 (1) 2022.03.19 iOS 출시 프로젝트 24일차 - 감정 소비 출시 (0) 2021.12.11 iOS 출시 프로젝트 22일차 - 업데이트 기획 (0) 2021.12.07 iOS 출시 프로젝트 21일차 - 심사 대기 중 (0) 2021.12.05