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

Fix iOS hit test in overlays #6829

Merged
merged 4 commits into from
Dec 13, 2020
Merged

Fix iOS hit test in overlays #6829

merged 4 commits into from
Dec 13, 2020

Conversation

alpha0010
Copy link
Contributor

On iOS, Switch components do not function in overlays.

Code from @geroale in #6051 (comment)

Fixes #6051

@danilobuerger
Copy link
Collaborator

I wonder if this relies too much on the implementation detail on how we currently structure the view hierarchy (@guyca, @yogevbd). Maybe there is a better solution on how to determine this?

In any case, there is no reason to use count, just access the first subview with firstObject instead of the subscript.

@guyca
Copy link
Collaborator

guyca commented Dec 9, 2020

@danilobuerger Well, since constructing the hierarchy is our responsibility, it seems like something we could rely on... especially in a hit test. How can we improve this conditional?

@guyca guyca requested a review from yogevbd December 13, 2020 09:05
@yogevbd yogevbd merged commit d81a4fc into wix:master Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v6][ios] WKWebView in overlay ignore its touches
4 participants