Skip to content

Scene-aware safe area#193

Merged
muukii merged 2 commits into
mainfrom
muukii/scene-aware-safearea
Jun 2, 2026
Merged

Scene-aware safe area#193
muukii merged 2 commits into
mainfrom
muukii/scene-aware-safearea

Conversation

@muukii
Copy link
Copy Markdown
Collaborator

@muukii muukii commented Jun 2, 2026

No description provided.

ryolingo and others added 2 commits June 2, 2026 12:38
## What changed
- Added `UIWindowScene`-aware initializers to
`FloatingDisplayController` and `FloatingDisplayTarget`
- Propagated scene/window context into `SafeAreaFinder`
- Replaced `SafeAreaFinder.shared` usage with owner-local finder
instances
- Scoped safe-area notifications to the originating finder instance to
avoid cross-scene mixing
- Preserved the existing initializer path with fallback behavior for
backward compatibility

## Why
- The original implementation assumed a single active app scene
- `FloatingDisplayTarget` selected a foreground scene implicitly
- safe-area lookup could resolve the wrong window because scene context
was not passed through
- this breaks multi-scene apps

## Context from the request
- Pass the target scene into `FloatingDisplayController` initialization
- Fix the logic that effectively behaved like a single-app assumption
via `.foregroundActive`
- Make safe-area resolution scene-aware without relying on a shared
singleton instance
@muukii muukii merged commit f670a8b into main Jun 2, 2026
2 of 4 checks passed
@muukii muukii deleted the muukii/scene-aware-safearea branch June 2, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants