Skip to content

Fill the status bar column and cap the HUD row width on iPhone Duo - #2628

Merged
ps2 merged 1 commit into
next-devfrom
fix/iphone-duo-hud-row
Oct 29, 2026
Merged

ps2 merged 1 commit into
next-devfrom
fix/iphone-duo-hud-row

Conversation

@ps2

@ps2 ps2 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

The next-dev counterpart of the fixes in #2627 that #2606 didn't have, for the status screen on iPhone Duo's unfolded inner display.

Before and after on the unfolded Duo

What was wrong

  • White box beside the time and Wi-Fi status. The status table is hosted in SwiftUI and extended past only the bottom safe area, so the vertical status bar column beside the grey HUD row showed the white hosting background.
  • HUD row stretched across the display. The row filled about 900 pt, and the CGM pill's corner sat against the display's much larger corner curve.

Changes

  • The status table extends past the leading and trailing safe areas too, as it did before it was hosted in SwiftUI. Cell content still stays within the safe area.
  • The HUD cell's background matches the HUD view (secondarySystemBackground), so the cell is grey where it extends past the HUD.
  • The HUD row is capped at 500 pt and centered. Every iPhone in portrait is narrower than that, so phones are unchanged.

#2627's third fix, keeping the corner inset after a fold/unfold, isn't needed here: next-dev already sets the inset on every reload, and it stayed at 16 pt through a fold and unfold.

Testing

Built with the LoopWorkspace scheme and run on the iPhone Duo simulator, unfolded, with a simulated day of meals, boluses and temp basals: at launch, after a fold and unfold, and with the muted-alerts banner.

Not checked by screenshot: an iPhone in landscape (charts only), the one layout the wider table could affect.

The next-dev counterpart of the fixes in #2627 that #2606 didn't have.

- The status table now extends under the leading and trailing safe areas, as it did before it was hosted in SwiftUI, so the HUD row's grey fills the vertical status bar column beside the time instead of leaving a white box. Cell content still stays within the safe area.
- The HUD cell's background matches the HUD view, so the cell is grey where it extends past the HUD.
- The HUD row is capped at 500 pt and centered, so on the unfolded Duo it no longer stretches across the display with the CGM pill against the display corner. Every iPhone in portrait is narrower, so phones are unchanged.
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.

1 participant