기본 배경, 탭바 구성
static func configureBasicView(for viewController: UIViewController) {
viewController.view.backgroundColor = UIColor.myWhite
// iphone 12 pro max에서 탭바 배경색 변경
viewController.tabBarController?.tabBar.isTranslucent = false
viewController.tabBarController?.tabBar.backgroundColor = UIColor.myWhite
viewController.tabBarController?.tabBar.barTintColor = UIColor.myWhite
// iphone 12 pro max에서 탭바 상단 선 제거
viewController.tabBarController?.tabBar.shadowImage = UIImage()
viewController.tabBarController?.tabBar.backgroundImage = UIImage()
}
기본 네비게이션바 구성
/// 공통 네비게이션 바 설정
static func configureNavBar(for viewController: UIViewController) {
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
appearance.backgroundColor = UIColor.myWhite.withAlphaComponent(0.97)
viewController.navigationController?.navigationBar.tintColor = .primary
viewController.navigationItem.standardAppearance = appearance
viewController.navigationItem.scrollEdgeAppearance = appearance
}