Skip to content

fix(podcast): prevent full player controls from clipping on iPhone SE#289

Merged
cassio-rossi merged 2 commits intorelease/v5from
fix/fullplayer-iphone-se-layout
Apr 30, 2026
Merged

fix(podcast): prevent full player controls from clipping on iPhone SE#289
cassio-rossi merged 2 commits intorelease/v5from
fix/fullplayer-iphone-se-layout

Conversation

@cassio-rossi
Copy link
Copy Markdown
Collaborator

Summary

On iPhone SE (667pt screen height), the podcast full player's artwork consumed too much vertical space, pushing the favorite/share buttons off the top and the volume slider off the bottom.

Changes:

  • Added .layoutPriority(-1) to artwork — SwiftUI now shrinks it first when space is constrained
  • Reduced inter-element spacing from 20pt to 16pt
  • Replaced fixed 40pt bottom padding with 16pt on volume slider only
  • Used Spacer(minLength: 8) to allow compression while maintaining minimum separation

The layout remains unchanged on larger devices (artwork max stays at 540×540), but now gracefully compresses on smaller screens.

Test plan

  • iPhone SE simulator: all controls visible (favorite, share, progress, playback, volume)
  • iPhone 17 Pro: layout unchanged, artwork still prominent
  • iPad: layout unchanged
  • iPhone landscape: unaffected (uses separate horizontal layout)

🤖 Generated with Claude Code

cassiorossi1010 and others added 2 commits April 30, 2026 17:09
The artwork had no layout flexibility, causing favorite/share buttons
and volume slider to be pushed off-screen on smaller devices. Applied
layoutPriority(-1) to artwork so it shrinks first, reduced fixed
spacing, and removed excessive bottom padding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace fixedSize with aspectRatio(1, contentMode: .fit) so the
artwork maintains its square ratio while shrinking to fit the
available vertical space on iPhone SE.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cassio-rossi cassio-rossi merged commit ec8c6c9 into release/v5 Apr 30, 2026
1 of 2 checks passed
@cassio-rossi cassio-rossi deleted the fix/fullplayer-iphone-se-layout branch April 30, 2026 20:15
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