SelfieRingLight/SelfieRingLight
Matt Bruce 6fb3c4e212 Fix camera stuck in landscape - improve orientation detection
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.
2026-01-02 16:03:13 -06:00
..
App Initial commit: SelfieRingLight app 2026-01-02 13:01:24 -06:00
Configuration Initial commit: SelfieRingLight app 2026-01-02 13:01:24 -06:00
Features Fix camera stuck in landscape - improve orientation detection 2026-01-02 16:03:13 -06:00
Preview Content/Preview Assets.xcassets Initial commit: SelfieRingLight app 2026-01-02 13:01:24 -06:00
Resources Fix camera preview not rotating with device orientation 2026-01-02 16:00:03 -06:00
Shared Add custom color picker as premium feature 2026-01-02 13:26:11 -06:00
SelfieRingLight.entitlements Initial commit: SelfieRingLight app 2026-01-02 13:01:24 -06:00