Skip to content

Guard pointer previews for detached tappable views - #79

Open
avery-bf wants to merge 1 commit into
lkzhao:mainfrom
avery-bf:fix/detached-pointer-preview
Open

Guard pointer previews for detached tappable views#79
avery-bf wants to merge 1 commit into
lkzhao:mainfrom
avery-bf:fix/detached-pointer-preview

Conversation

@avery-bf

Copy link
Copy Markdown

Summary

  • Return no default pointer style while a TappableView is detached from a window.
  • Avoid UITargetedPreview(view:) raising NSInternalInconsistencyException during pointer updates that race view removal.
  • Preserve custom pointerStyleProvider behavior.

Testing

  • xcodebuild -scheme UIComponentTests -destination 'platform=iOS Simulator,id=F1C56A91-39A2-46BE-94F4-4D93B0D7EC80' -only-testing:UIComponentTests/TappableViewTests test

Observed in production on Mac Catalyst when a pointer update arrived while a UIComponent-rendered settings row was leaving its window.

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