Skip to content

feat: ignore trivial keyboard overlap from fractional view sizes - #4

Merged
johnnewman-square merged 1 commit into
mainfrom
johnnewman/task/fractional-view-sizes
Feb 25, 2026
Merged

johnnewman-square merged 1 commit into
mainfrom
johnnewman/task/fractional-view-sizes

Conversation

@johnnewman-square

@johnnewman-square johnnewman-square commented Feb 24, 2026 •

Copy link
Copy Markdown
Collaborator

This PR replaces frame.intersects(view.bounds) with a dimension-based check that requires at least 1pt of overlap in both width and height. This avoids cases where the keyboard may be overhanging the view by a fraction of a screen point, which was eagerly detected as overlap.

@johnnewman-square
johnnewman-square marked this pull request as ready for review February 24, 2026 19:46
@johnnewman-square
johnnewman-square requested a review from a team as a code owner February 24, 2026 19:46
Comment thread KeyboardObserver/Tests/KeyboardObserverTests.swift Outdated
Replaces `frame.intersects(view.bounds)` with a dimension-based check that requires at least 1pt of overlap in both width and height.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@johnnewman-square
johnnewman-square force-pushed the johnnewman/task/fractional-view-sizes branch from 93c5b04 to 1116ce2 Compare February 25, 2026 14:34
@johnnewman-square
johnnewman-square deleted the branch main February 25, 2026 14:35
@johnnewman-square
johnnewman-square changed the base branch from johnnewman/task/additional-tests to main February 25, 2026 14:36
@johnnewman-square
johnnewman-square merged commit 5261773 into main Feb 25, 2026
2 checks passed
@johnnewman-square
johnnewman-square deleted the johnnewman/task/fractional-view-sizes branch February 25, 2026 14:40
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