From c250f218a7d353e9cbc50827840b7bdc7bb413a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 18 Jul 2026 16:17:05 +0000 Subject: [PATCH] Show exactly one pager page at a time Pager pages are sized to the safe-area height, but scroll content draws edge-to-edge, so the status-bar and home-indicator bands showed slivers of the neighboring pages (library bleeding above Now Playing, Up Next below). Clip the pager to its safe-area frame and paint the exposed bands black. --- App/Continuity/Views/MainPagerView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/App/Continuity/Views/MainPagerView.swift b/App/Continuity/Views/MainPagerView.swift index 9e78a3b..abd10aa 100644 --- a/App/Continuity/Views/MainPagerView.swift +++ b/App/Continuity/Views/MainPagerView.swift @@ -27,6 +27,12 @@ struct MainPagerView: View { .scrollIndicators(.hidden) // Three equal pages → center lands on Now Playing (the home screen). .defaultScrollAnchor(.center) + // Pages are sized to the safe-area height, but scroll content draws edge-to-edge — + // so the status-bar / home-indicator bands showed slivers of the neighboring pages. + // Clip to the safe-area frame and paint the exposed bands black so exactly one page + // is ever visible. + .clipped() + .background(Color.black.ignoresSafeArea()) .environment(pagerState) }