Skip to content

Prevent caret size animation when beginning editing - #465

Merged
simonbs merged 1 commit into
mainfrom
fix/caret-appearance-size-animation
Oct 27, 2026
Merged

simonbs merged 1 commit into
mainfrom
fix/caret-appearance-size-animation

Conversation

@simonbs

@simonbs simonbs commented Oct 27, 2026

Copy link
Copy Markdown
Owner

The caret could animate from an initial size when editing began inside a keyboard or container animation. Install, activate, and lay out the editable text interaction without animation so the caret appears immediately at its final size. Apply the same handling when restoring the caret after marked-text updates, preserving normal blinking.

Adds a window-hosted regression test for initial focus and re-enabling editing inside an ambient animation. The test detects a bounds.size animation on the original code and passes with this change.

Validation: all three focused tests passed on the iOS 27.2 Simulator (CaretAppearanceTests, CaretRectServiceTests, and TextInputCompositionCommitTests); SwiftLint passed for both changed files.

@simonbs
simonbs enabled auto-merge (squash) October 27, 2026 20:12
@simonbs
simonbs merged commit aff9a3b into main Oct 27, 2026
9 checks passed
@simonbs
simonbs deleted the fix/caret-appearance-size-animation branch October 27, 2026 20:26
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