일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Git
- github
- JPA
- error
- 개발자
- view
- window
- Notification
- darkmode
- Archive
- iOS16
- Firebase
- Xcode
- Code
- MacOS
- SwiftUI
- stack
- mac
- rxswift
- Realm
- FLUTTER
- Session
- 웹뷰
- Python
- Apple
- 한글
- appstore
- IOS
- Swift
- UIButton
- Today
- Total
목록Portrait (2)
EEYatHo 앱 깎는 이야기
iOS16 에서 특정 조건을 만족하는 케이스에서 present 시 UI 가 깨진다. 버그 조건 설명 iOS16 디바이스의 orientation 과, 앱에서 인지하는 orientation 이 다른 상황 modalPresentStyle 이 pageSheet 와 formSheet 가 아닌 viewController 를 present 구현 영상 with gif iOS16 시뮬레이터에서, 디바이스의 방향은 potraits, 앱의 방향은 landscape 로 바꾼 뒤, ( 그 반대도 버그가 발생한다. ) modalPresentStyle 을 overFullScreen 으로 present 하는 gif 이다. 앱의 orientation 를 무시하고 디바이스의 orientation 에 맞게 present 되어버린다. ho..
Scene의 화면회전 제어 로직이 변경되면서, 기존에 사용하던 UIDevice 방식은 deprecated 되었다. // is deprecated let value = UIInterfaceOrientation.landscapeRight.rawValue UIDevice.current.setValue(value, forKey: "orientation") 해당 방식으로 강제 화면 회전시, 친절하게 아래와 같은 에러가 발생한다. ( UIWindowScene.requestGeometryUpdate 를 사용해달라는 말. ) 새로 사용해야 될 함수 : 적용 코드 : /// 화면 가로로 바꾸기 if #available(iOS 16.0, *) { let windowScene = UIApplication.shared.con..