Skip to content

Expose Writing Tools panel presentation separately from editing sessions - #457

Merged
simonbs merged 1 commit into
mainfrom
codex/writing-tools-presentation
Oct 26, 2026
Merged

simonbs merged 1 commit into
mainfrom
codex/writing-tools-presentation

Conversation

@simonbs

@simonbs simonbs commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

The Writing Tools chooser can be visible before an editing session begins, so clients cannot use the existing session callbacks alone to hide accessory UI.

Forward UIKit’s UITextInput.willPresentWritingTools() and didDismissWritingTools() through new defaulted TextViewDelegate callbacks and expose TextView.isWritingToolsPresented. Preserve the existing active-session and text synchronization semantics. Suppress duplicate notifications and clear presentation state when the input view leaves its window.

Validation: 21 focused presentation, interaction, and active-session tests passed; changed-file SwiftLint and diff checks passed. Tests exercise the Objective-C callback bridge, chooser-only dismissal, both panel/session ending orders, and window detachment. Actual Apple Intelligence panel presentation on a physical device remains to be verified.

Companion RunestoneEditor #52 consumes this exact framework commit to hide its keyboard toolbar and cursor-position badge. Its remote-dependency build and 18 focused iPhone/iPad integration tests passed. Merge this framework PR first; the companion app PR is stacked on RunestoneEditor #46.

@simonbs
simonbs merged commit 123b2ec into main Oct 26, 2026
9 checks passed
@simonbs
simonbs deleted the codex/writing-tools-presentation branch October 26, 2026 05:58
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