Skip to content

feat(viewer): add a header-free desktop focus mode - #89

Closed
josdyr wants to merge 3 commits into
Mastersam07:devfrom
josdyr:feat/focus-mode
Closed

josdyr wants to merge 3 commits into
Mastersam07:devfrom
josdyr:feat/focus-mode

Conversation

@josdyr

@josdyr josdyr commented Oct 9, 2026 •

Copy link
Copy Markdown

On small laptop screens the fixed header and margins reduce the space available for the simulator. Add Window → Focus Mode (Shift-Command-F): an ordinary borderless desktop window that fits the visible screen, retaining a five-point resize margin and the device aspect ratio. Toggle it off to restore the previous frame, native toolbar and window buttons. Command-Option-drag moves the window; existing menus and device shortcuts remain available.

Focus Mode is a global preference remembered across launches. Toggling updates all open simulator windows, newly opened devices follow it, and each device preserves its own normal frame. Existing per-device preferences migrate automatically; bezel visibility remains independent. It leaves simulator lifecycle and rendering/input transforms unchanged.

Validation:

  • scripts/build-app.sh debug succeeded on Xcode 27.
  • swift test --package-path engine passed, including focus layout and menu-checkmark coverage; simulator-gated integration cases were not enabled.
  • Manually verified with an iOS 27 simulator: header removal, larger portrait viewport, tapping between app tabs, landscape/portrait rotation, and restoration of Home/Screenshot/Rotate toolbar buttons. Also verified full quit/relaunch restores Focus Mode, toggling off restores the toolbar, and the normal frame preference is unchanged. Native full-screen transitions and multi-display behavior have not been manually tested.

@josdyr josdyr closed this Oct 9, 2026
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