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
@@ -124,11 +124,14 @@ struct NowPlayingScreen: View {
|
||||
// (it only overlaps the sliding preset chips) instead of leaving a quarter of the screen empty.
|
||||
// Upright iPhones have no side insets, so this only changes the Duo.
|
||||
// Folded, the bottom inset is empty space too: run the controls down into it, and the art grows into the room.
|
||||
// The room under the controls has to be inside this view: padding outside it would keep
|
||||
// the view off the bottom edge, and then it can't run into the home indicator strip.
|
||||
.padding(.bottom, folded && !docked ? 6 : 0)
|
||||
.ignoresSafeArea(.container, edges: !docked && vSize == .regular ? (folded ? [.trailing, .bottom] : .trailing) : [])
|
||||
// Measured outside the line above, so it still sees the status column.
|
||||
.onGeometryChange(for: Bool.self) { $0.safeAreaInsets.trailing > 20 } action: { folded = $0 && vSize == .regular }
|
||||
.padding(.top, docked ? 4 : tight ? 14 : 20)
|
||||
.padding(.bottom, tight ? 4 : folded ? 2 : 8)
|
||||
.padding(.bottom, folded && !docked ? 0 : tight ? 4 : 8)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
||||
.background(c.bg.ignoresSafeArea())
|
||||
.overlay(alignment: .top) {
|
||||
|
||||
Reference in new issue
Block a user