iOS: folded Now Playing runs into the bottom strip, orientation lock re-asserts on resume
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e833af2704
commit
566c5f7e8f
5 files changed
+25
-7
No files matched your search
@@ -19,6 +19,7 @@ struct RootView: View {
|
||||
.onGeometryChange(for: CGFloat.self) { $0.safeAreaInsets.trailing } action: { ui.sawInsets(trailing: $0, upright: vSize == .regular) }
|
||||
.background(p.bg.ignoresSafeArea())
|
||||
.onChange(of: ui.tabs) { _, _ in ui.ensureValidTab() }
|
||||
.onChange(of: phase) { _, ph in if ph == .active { ui.resumed() } }
|
||||
.fullScreenCover(isPresented: Binding(get: { ui.nowPlayingOpen }, set: { ui.nowPlayingOpen = $0 })) {
|
||||
NowPlayingScreen()
|
||||
.overlayHost(ui.overlays, level: 1)
|
||||
@@ -43,6 +44,7 @@ struct RootView: View {
|
||||
}
|
||||
|
||||
@Environment(\.verticalSizeClass) private var vSize
|
||||
@Environment(\.scenePhase) private var phase
|
||||
|
||||
private enum BarItem: Hashable { case deck, tab(Tab) }
|
||||
|
||||
|
||||
Reference in new issue
Block a user