Skip to content

docs: note docked FAB locations float on iOS - #60

Merged
AdamMusa merged 1 commit into
mainfrom
docs/docked-fab-ios-note
Nov 2, 2026
Merged

AdamMusa merged 1 commit into
mainfrom
docs/docked-fab-ios-note

Conversation

@AdamMusa

Copy link
Copy Markdown
Owner

This is a docs-only follow-up, requested by QA after approving ruflet-engine #68. It contains no code change.

Why

ruflet-engine #68 keeps the iOS/macOS View floating action button off the bottom navigation bar. Because CupertinoTabBar has no notch for a docked button, the *_docked floating_action_button_location values (start_docked, center_docked, end_docked, in either spelling) float on iOS/macOS. They sit 16 px above the navigation bar like *_float. On Material they keep straddling the bar, as in Flutter's Scaffold.

Where

The owner has no prose docs for View or FAB options. No README, Markdown or YARD comment mentions floating_action_button_location. It appears only in ViewControl's KEYWORDS, and Page#floating_action_button_location forwards to the View. As the brief said to do in that case, the note is a one-line code comment on the View control:

packages/ruflet_core/lib/ruflet_ui/ruflet/ui/controls/shared/view_control.rb

# floating_action_button_location: *_docked locations float above the navigation bar on iOS/macOS (no notched tab bar).
class ViewControl < Ruflet::Control

It is a comment only, so it is safe for the embedded mruby VM.

Usage

page.floating_action_button = floating_action_button(icon: Ruflet::MaterialIcons::ADD)
page.floating_action_button_location = "end_docked" # docked on Material, floats above the tab bar on iOS/macOS

Tests

No behaviour change. verify_pr.sh (Ruby only):

PASS ruby:ruflet_core                   145/145 files, 631 runs
RESULT: PASS

@AdamMusa
AdamMusa merged commit 3a9bfc0 into main Nov 2, 2026
12 checks passed
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