Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add passThroughTouches to BlueprintView, PassthroughView #511

Merged
merged 4 commits into from
Sep 18, 2024

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Sep 17, 2024

Without this, Blueprint will eat any touches that are meant for views behind it – in particular relevant if you're layering them in the z-index and the one on "top" is largely visually transparent.

image
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2024-09-17.at.14.50.16.mp4

@kyleve kyleve requested a review from a team as a code owner September 17, 2024 21:51
CHANGELOG.md Outdated
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Moved `CornerStyle` out of the `Box` namespace, and is now a root type in `BlueprintUICommonControls`. `Box.CornerStyle` is still available as a typealias.
- `BlueprintView` will now pass through touches to views lower in the view hierarchy if `passThroughTouches` is true.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a non-breaking addition, right?

Copy link
Collaborator Author

@kyleve kyleve Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yep, good catch. I'd originally just made this the only behavior, but figured that was a bad idea.

  • Fix Changelog

@kyleve kyleve merged commit 3b88ea6 into main Sep 18, 2024
5 checks passed
@kyleve kyleve deleted the kve/passthrough-touches branch September 18, 2024 18:17
maxg-square added a commit that referenced this pull request Nov 4, 2024
* tag '4.3.0':
  Prepare version 4.3.0 (#513)
  Add passThroughTouches to BlueprintView, PassthroughView (#511)
  Bump checkout and upload-artifacts (#512)
  Bump rexml from 3.2.8 to 3.3.6
  Unnest Box.CornerStyle (#508)
  Prepare 4.2.1 (#507)
  Make public the UIBezierPath helper using Box.CornerStyle
  Prepare 4.2.0 (#505)
  Label and AttributedLabel now support accessibilityValue (#504)
  Prepare 4.1.2 Release (#503)
  Replace newlines in a11y labels with spaces (#502)
  Fix string index out of bounds crash. (#501)
  bumping version to 4.1.0 (#499)
  AttributedLabel Link Accessibility (#459)
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.

3 participants