Skip to content

Fix Live Activity display item picker with a toolbar menu - #2717

Open
damonbayer wants to merge 2 commits into
LoopKit:devfrom
damonbayer:dmb/fix-live-activity-item-picker
Open

damonbayer wants to merge 2 commits into
LoopKit:devfrom
damonbayer:dmb/fix-live-activity-item-picker

Conversation

@damonbayer

@damonbayer damonbayer commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2715.

Tapping + in Live Activity → Configure Display can compress the add-item picker into a clipped panel over the navigation title. Replace the legacy SwiftUI ActionSheet with a toolbar Menu, so all seven choices are readable and anchored to the add control.

Use Add Item as the icon menu's localizable accessible label and enforce the existing four-item limit when adding. SwiftUI owns menu presentation and dismissal, removing the presentation Boolean and explicit Cancel action. Item choices, ordering, and the explicit Save workflow are preserved. The new label has an English source-catalog entry for translation.

This follows Apple's pull-down button HIG guidance, which specifically describes an Add button presenting a menu to choose the item to add.

Before and after

Native captures from the same iOS 27.2 review simulator, with the same synthetic profile, three configured items, and normal text size. The before capture uses the original view implementation; the after capture uses this change.

Before After
Before: the add-item picker title is clipped and only the Active Insulin option is visible in a compressed panel over Configure Display. After: a menu anchored to the Add Item control shows all seven display item choices with readable, wrapping labels.

Validation

  • Signed Debug build and launch through the LoopWorkspace review helper; existing simulator app data preserved.
  • Reproduced the original clipping and compared both implementations on the same simulator.
  • Verified outside-tap dismissal, selection, disabling Add at four items, and restoring the original configuration without enabling Save.
  • Verified ordinary relaunch and restored the fixed build after capturing the original implementation.
  • String catalog parses as JSON; git diff --check passes.
  • Largest Dynamic Type, VoiceOver, and iPad remain unverified.

@damonbayer
damonbayer marked this pull request as draft December 5, 2026 19:42
@damonbayer

Copy link
Copy Markdown
Contributor Author

I actually think this is more idiomatic: https://developer.apple.com/design/human-interface-guidelines/pull-down-buttons

Will revise.

@damonbayer damonbayer changed the title Fix Live Activity display item picker presentation Fix Live Activity display item picker with a toolbar menu Dec 5, 2026
@damonbayer
damonbayer marked this pull request as ready for review December 5, 2026 19:47
@damonbayer
damonbayer requested a review from ps2 December 5, 2026 19:47
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.

Lock Screen / CarPlay Configure Display: add-item picker is clipped and overlaps navigation title

1 participant