Commit b0c26481 authored by Kourser's avatar Kourser
Browse files

fix(ios): the mini bar no longer hides the last row of a list

On iPhone, the split view collapses into a navigation stack, and the
safe-area inset that placed the mini bar never reached the lists inside
it: they ran under the bar without scrolling further, so the last
subscription (or the bottom of Settings) stayed hidden for good. A user
reported it with a screenshot.

The bar now floats over the columns, and a bottom content margin of its
measured height goes to every scrollable view below, pushed screens
included. Nothing is reserved when no episode is loaded or when the
player sits in its side panel. The Mac keeps its safe-area inset.

Checked on an iPhone 17 simulator (iOS 27.0, large text: the home list
and Settings scroll their last row above the bar) and on an iPad mini.

Co-Authored-By: default avatarClaude Opus 5.5 <noreply@anthropic.com>
parent b062a3ac
Loading
Loading
Loading
Loading
+6
Changes for CHANGELOG.md: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -7,6 +7,12 @@ adopte le [versionnage sémantique](https://semver.org/lang/fr/).

## [Non publié]

### Corrigé
- Sur iPhone, la mini-barre de lecture cachait la dernière ligne des listes
  (le dernier abonnement, le bas des réglages) : elles ne défilaient pas assez
  loin. Toutes les listes laissent désormais la place de remonter leur dernière
  ligne au-dessus de la barre.

## [1.4.0] - 2026-10-17

iOS uniquement : rien ne change sur Mac.
+18 −1
Changes for Skingomz/RootView.swift: 18 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ struct RootView: View {
    @State private var foldIsHorizontal = false
    /// Closed by hand: the full-screen player waits for the next time.
    @State private var tabletopDeclined = false
    /// Height of the mini bar (none when nothing is loaded), left free at the
    /// bottom of the lists it covers.
    @State private var nowPlayingBarHeight: CGFloat = 0
    #endif

    #if DEBUG
@@ -121,11 +124,25 @@ struct RootView: View {
            } detail: {
                detail
            }
            .safeAreaInset(edge: .bottom) {
            #if os(iOS)
            // The mini bar floats over the columns, and every list or form in
            // them keeps room to scroll its last row above it. A safe-area
            // inset never reached the lists of the split view collapsed on
            // iPhone: the bar hid the last subscription for good.
            .contentMargins(.bottom, showsPlayerPanel ? 0 : nowPlayingBarHeight)
            .overlay(alignment: .bottom) {
                if !showsPlayerPanel {
                    NowPlayingBar(openPlayer: playerPanelOpener)
                        .onGeometryChange(for: CGFloat.self) { $0.size.height } action: {
                            nowPlayingBarHeight = $0
                        }
                }
            }
            #else
            .safeAreaInset(edge: .bottom) {
                NowPlayingBar(openPlayer: playerPanelOpener)
            }
            #endif
            playerPanel
        }
        #if os(iOS)