일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- darkmode
- 한글
- Firebase
- view
- SwiftUI
- MacOS
- FLUTTER
- rxswift
- github
- Python
- IOS
- window
- mac
- UIButton
- JPA
- error
- 개발자
- iOS16
- Realm
- Notification
- Git
- Apple
- Xcode
- Code
- Swift
- 웹뷰
- appstore
- stack
- Archive
- Session
- Today
- Total
목록UINavigationBarAppearance (2)
EEYatHo 앱 깎는 이야기
네비게이션바에는 기본값으로 하단에 회색 1px짜리 라인이 있다 = shadowImage UIScrollViewDelegate를 채택한 뷰컨의 경우, 스크롤 할 때, 이 shadowImage를 바꿀 수 있는 설정이 있다. 아래처럼하면 스크롤시 shadowImage가 사라지는 효과를 줄 수 있다. let scrollEdgeAppearance = UINavigationBarAppearance() scrollEdgeAppearance.shadowColor = .clear // 스크롤 될 때의 shadowImage의 색깔 naviBar?.scrollEdgeAppearance = scrollEdgeAppearance let standardAppearance = UINavigationBarAppearance() st..
navigationBar.backgroundImage 의 기본값은 nil 이다 그런데 Xcode 12.4 에서는 하얀색 이미지. Xcode 13.0 에서는 투명색 이미지. 를 보여준다 ㅡㅡ 고치려고 navigationBar.setBackgroundImage를 사용해 보았는데, Xcode 13.0에서는 사용할 수 없는 함수이다 ㅋㅋㅋ....ㅠ 이제부턴, UINavigationBarAppearance를 사용해서 navigationBar의 설정을 만져야한단다~ 아래 코드처럼 말이다. if #available(iOS 13.0, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() appearance...