Skip to content

Pin Send button to prevent keyboard toolbar overlap#604

Merged
marionbarker merged 3 commits intodevfrom
fix/pinned-send-button
Apr 26, 2026
Merged

Pin Send button to prevent keyboard toolbar overlap#604
marionbarker merged 3 commits intodevfrom
fix/pinned-send-button

Conversation

@bjorkert
Copy link
Copy Markdown
Member

@bjorkert bjorkert commented Apr 12, 2026

Summary

  • Moves the Send button out of the scrollable Form and pins it at the bottom of the screen using .safeAreaInset(edge: .bottom) in all four remote command views

The issue reports that the Send button gets blocked by the keyboard toolbar (trash/dismiss buttons) when a recommended bolus is present and the value has been edited. Rather than reducing padding as suggested in the issue, the Send button is now pinned outside the Form entirely — it stays visible above the keyboard at all times, regardless of form content height or screen size.

Affected views: TRC Bolus, TRC Meal, Loop APNS Bolus, Loop APNS Carbs

Fixes #602

Move the Send button out of the scrollable Form and pin it at the
bottom using .safeAreaInset(edge: .bottom) in all four remote command
views (TRC Bolus, TRC Meal, Loop APNS Bolus, Loop APNS Carbs).

The button is now always visible — above the keyboard when it's open,
at the bottom when it's closed. Also adds .scrollDismissesKeyboard to
allow interactive keyboard dismissal by scrolling.

Fixes #602
@bjorkert
Copy link
Copy Markdown
Member Author

image image

Copy link
Copy Markdown
Collaborator

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve from code review and test.

Tested TRC meal and bolus, Loop carbs and bolus using an SE phone.

Button was nicer and more consistent, no scrolling required with this version compared to version before this PR.

While testing the older version for comparison, the PR branch was updated by merging dev into the branch. No change to PR diffs, but test again anyway. Very nice.

LGTM

@marionbarker marionbarker merged commit 4bf03de into dev Apr 26, 2026
1 check passed
@marionbarker marionbarker deleted the fix/pinned-send-button branch April 26, 2026 18: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.

2 participants