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

Setting specific frame glitches with onTapGesture #62

Open
s1m-0n opened this issue May 20, 2024 · 0 comments
Open

Setting specific frame glitches with onTapGesture #62

s1m-0n opened this issue May 20, 2024 · 0 comments

Comments

@s1m-0n
Copy link

s1m-0n commented May 20, 2024

I'm having some issues with getting a big schematic in SVG resized and keeping the onTapGestures unaffected. I created a scrollView around the SVGView and I'm adding the typical gestures (drag, zoom, pinch etc.) I also want to have certain parts of the schematic selectable but that seems to break partially when I use the .frame modifier to scale out the SVG to fit the screen. I can zoom in perfectly but the selection just works on the top left part of the SVGView.
I tried the .scaleEffect modifier which retains the tab gestures perfectly but as that only affects the view layer the content size of the scrollview is way too big and not adjusted to the scaled schematic.

Does anyone have any idea what is going on?

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

No branches or pull requests

1 participant