[iOS15 ๋Œ€์‘] NavigationBar/Tabbar background color Transparent ์ด์Šˆ ํ•ด๊ฒฐ
iOS

[iOS15 ๋Œ€์‘] NavigationBar/Tabbar background color Transparent ์ด์Šˆ ํ•ด๊ฒฐ

iOS15๋กœ ๋„˜์–ด์˜ค๋ฉด์„œ.,,, ๋„ค๋น„๊ฒŒ์ด์…˜๋ฐ”๋‚˜ ํƒญ๋ฐ”๊ฐ€ ์žˆ๋Š” ๋ทฐ์—์„œ ํ™”๋ฉด ์ „ํ™˜์„ ๋•Œ๋ฆฌ๋ฉด ๋ฐฐ๊ฒฝ์ด ํˆฌ๋ช…ํ•ด์ง€๊ณ  border line์ด ์‚ฌ๋ผ์ง€๋„๋ก ๋ณ€๊ฒฝ๋˜์—ˆ๋‹ค. ์‚ฌ์‹ค ์ด์Šˆ๋Š” ์•„๋‹Œใ„ทใ…”;; ๋‚ด ์ƒ๊ฐ๋Œ€๋กœ ์•ˆ ๋˜๋ฉด ์ด์Šˆ์ž„. ใ…‡ใ…‡

๊ด€๋ จ ํฌ๋Ÿผ: 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

์™ผ์ชฝ ์‚ฌ์ง„์—์„œ ์˜ค๋ฅธ์ชฝ ์‚ฌ์ง„ ๋ทฐ๋กœ ์ด๋™ํ•œ ๊ฑด๋ฐ,, ์žˆ์—ˆ๋Š”๋ฐ ์—†์–ด์กŒ์–ด์š”!

์ฒจ์—” ๋ฒ„๊ทธ์ธ ์ค„ ์•Œ๊ณ  ํƒญ๋ฐ” ์ ์šฉ๋œ ๊ธฐ๋ณธ์•ฑ ์ฐพ์•„๋ณด๋‹ˆ๊นŒ ๋‹ค ์ด๋ ‡๊ฒŒ ๋ณ€๊ฒฝ๋˜์—ˆ๋”๋ผ,,

 

ํ•ด๊ฒฐ ์ฐธ๊ณ  ์ฝ”๋“œ : https://stackoverflow.com/questions/69111478/ios-15-navigation-bar-transparent

 

iOS 15 Navigation Bar Transparent

My iOS app uses the storyboard for the UI and uses a custom tint for the background color of the navigation bar. I have tested my app on the Xcode 13 beta 5 and the navigation bar is "white&qu...

stackoverflow.com

 

 

ํ•ด๊ฒฐ ์ฐธ๊ณ  ์ฝ”๋“œ ์œ„ ๋งํฌ์—์„œ๋Š” ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ” ๋Œ€์‘์ด์—ˆ๊ณ , ๋‚˜๋Š” ์•„๋ž˜ ์ฝ”๋“œ๋กœ Tabbar์—์„œ ๋Œ€์‘ ์™„๋ฃŒ~! ์•„~~~~ ์Šคํƒ์˜ค๋ฒ„ํ”Œ๋กœ์šฐ ์งฑ~!

if #available(iOS 15, *) {
            let appearance = UITabBarAppearance()
            let tabBar = UITabBar()
            appearance.configureWithOpaqueBackground()
            appearance.backgroundColor = UIColor(named: "๋‹น์‹ ์˜์ƒ‰๊น”์„๋„ฃ์œผ์…ˆ์š”")!
            tabBar.standardAppearance = appearance;
            UITabBar.appearance().scrollEdgeAppearance = appearance
        }

 

์œ„ ์ฝ”๋“œ๋ฅผ AppDelegate.Swift ๋‚ด

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool  ํ•จ์ˆ˜์— ๋„ฃ์œผ๋ฉด ๋œ๋‹ค~~~ ์•„ ๋ฌผ๋ก  return ์œ„์— ์•„๋ฌด๋ฐ๋‚˜~~~