{"id":155,"date":"2021-10-02T01:57:38","date_gmt":"2021-10-01T16:57:38","guid":{"rendered":"https:\/\/byeon.is\/?p=155"},"modified":"2021-10-02T01:58:13","modified_gmt":"2021-10-01T16:58:13","slug":"swift-xcode-13-uinavigation-and-uitabbar-appearance-bug","status":"publish","type":"post","link":"https:\/\/byeon.is\/swift-xcode-13-uinavigation-and-uitabbar-appearance-bug\/","title":{"rendered":"[Swift] Xcode 13 UINavigationBar and UITabBar appearance bug"},"content":{"rendered":"\n
Declare private methods<\/p>\n\n\n\n
\/\/ MARK: - Private Methods\n extension AppDelegate {\n func setupNavigationAppearance() {\n let appearance = UINavigationBarAppearance()\n let navigationBar = UINavigationBar()\n appearance.configureWithOpaqueBackground()\n appearance.backgroundColor = UIColor.white\n navigationBar.standardAppearance = appearance\n UINavigationBar.appearance().scrollEdgeAppearance = appearance\n }\n func setupTabBarAppearance() {\n let appearance = UITabBarAppearance()\n let tabBar = UITabBar()\n appearance.configureWithOpaqueBackground()\n appearance.backgroundColor = .white\n tabBar.standardAppearance = appearance\n if #available(iOS 15.0, *) {\n UITabBar.appearance().scrollEdgeAppearance = appearance\n }\n }\n }<\/code><\/pre>\n\n\n\nCall a private methods in AppDelegate or SceneDelegate<\/p>\n\n\n\n
setupNavigationAppearance()\nsetupTabBarAppearance()<\/code><\/pre>\n\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"
Declare private methods Call a private methods in AppDelegate or SceneDelegate<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"yoast_head":"\n
[Swift] Xcode 13 UINavigationBar and UITabBar appearance bug - \ucd08\ub9bc\uc774\uc758 \uc5f0\uad6c\uc2e4<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n