Issues fixed: 1. On app launch, UIDevice.current.orientation may be .unknown or .faceUp causing no orientation to be set (defaulting to landscape) 2. When phone is flat, orientation was being skipped Solution: - Track lastValidOrientation as fallback - When device orientation is invalid, get from windowScene.interfaceOrientation - Use last known good orientation if all else fails - Default to portrait (90°) if nothing else works This ensures the camera preview starts in the correct orientation and stays properly rotated during use. |
||
|---|---|---|
| .. | ||
| App | ||
| Configuration | ||
| Features | ||
| Preview Content/Preview Assets.xcassets | ||
| Resources | ||
| Shared | ||
| SelfieRingLight.entitlements | ||