diff --git a/Music/AGENTS.md b/Music/AGENTS.md index 637795f..47a4674 100644 --- a/Music/AGENTS.md +++ b/Music/AGENTS.md @@ -41,6 +41,7 @@ The iOS app should feel native to iOS and use an Apple Music-inspired **liquid g - Use Apple's standard red accent (`.red`) and otherwise prefer SwiftUI's semantic system colors and materials. Avoid custom color values unless the user asks for them. - Always add a SwiftUI preview for every UI view you create or update. - Before completing code changes, run available linting and type checking or a build for the affected code. Fix errors introduced by the change, and clearly report any unrelated baseline or environment failures that prevent a clean check. +- Do not boot, open, or launch an iOS simulator without the user's explicit confirmation. This includes XcodeBuildMCP actions such as `build_run_sim` that automatically open the simulator. Prefer compile-only simulator builds when validation is needed. - Reuse the web app’s backend API and data model. Inspect `~/music-v2` when route behavior, authentication, content fields, or feature scope is unclear. - Match the web version’s structure and scope, while making the experience idiomatic to SwiftUI and iOS. - Update this document when the web app’s features, flows, design direction, or technical scope changes. Flag uncertainty for review instead of silently adding new product behavior. diff --git a/Music/View/Player/MiniPlayerView.swift b/Music/View/Player/MiniPlayerView.swift index 50c571e..fea2d1f 100644 --- a/Music/View/Player/MiniPlayerView.swift +++ b/Music/View/Player/MiniPlayerView.swift @@ -62,6 +62,7 @@ struct MiniPlayerView: View { .truncationMode(.tail) } .frame(maxWidth: .infinity, alignment: .leading) + .layoutPriority(-1) Button { displayedIsPlaying.toggle() @@ -84,6 +85,7 @@ struct MiniPlayerView: View { .buttonStyle(.plain) .accessibilityLabel("Next track") } + .frame(maxWidth: .infinity) .frame(height: 32) .padding(.leading, usesCompactLayout ? 10 : 16) .padding(.trailing, usesCompactLayout ? 9 : 14) diff --git a/Music/View/Player/PlayerBottomAccessoryView.swift b/Music/View/Player/PlayerBottomAccessoryView.swift index 301413b..e87412b 100644 --- a/Music/View/Player/PlayerBottomAccessoryView.swift +++ b/Music/View/Player/PlayerBottomAccessoryView.swift @@ -20,11 +20,6 @@ struct PlayerBottomAccessoryView: View { ) .padding(.horizontal, placement == .inline ? 4 : 0) .frame(maxWidth: placement == .inline ? 320 : .infinity) - .glassEffect( - player.currentTrack == nil ? .clear : .regular.tint(.black.opacity(0.18)), - in: Capsule() - ) - .shadow(color: .black.opacity(placement == .inline ? 0 : 0.08), radius: 8, y: 3) .offset(y: 1 / displayScale) .opacity(player.currentTrack == nil ? 0 : 1) .allowsHitTesting(player.currentTrack != nil)