[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 μœ„μ— μ•„λ¬΄λ°λ‚˜~~~

 

λ°˜μ‘ν˜•