Adding passesTouchesThrough to SwiftUI VariableBlur#20
Merged
TimOliver merged 1 commit intoTimOliver:mainfrom Mar 5, 2026
Merged
Adding passesTouchesThrough to SwiftUI VariableBlur#20TimOliver merged 1 commit intoTimOliver:mainfrom
TimOliver merged 1 commit intoTimOliver:mainfrom
Conversation
Owner
|
Thanks for the PR Axel! Yeah, my original idea for this UI component was it was always an accessory view to another UI component, so there should never be a use-case where this view itself is interactive. If you've got a use-case, that's fine with me. I'll cut another release version soon! |
Contributor
Author
|
Hey @TimOliver, Any visibility on the next release with my merged PR please? Thanks,
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
This PR introduces a configuration option to control whether touch events pass through the blur view in SwiftUI. Cf my issue #19.
Surprisingly, setting
.allowsHitTesting(true)on the SwiftUI View was not working, so I added this configuration.By default, touch pass-through remains enabled, preserving the previous behavior and ensuring backward compatibility.
Feel free to change the name of the variable and modifier if something better comes to your mind. I didn't want to use the SwiftUI
allowsHitTestingbecause the semantics were not correct in my opinion.Thank you!
Regards,
Axel