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

Views get resized #1

Open
xremix opened this issue Jul 23, 2021 · 0 comments
Open

Views get resized #1

xremix opened this issue Jul 23, 2021 · 0 comments

Comments

@xremix
Copy link

xremix commented Jul 23, 2021

Hi Dominic,

first, thanks a lot for building this code to find the shortes path. This works great in general, but for some reason my subview now resize and try to fit the outer frame.

Before I was using

                        .rotationEffect(.degrees(rotate * -1 + 360))
                        .animation(.easeOut(duration: 0.1))

And I got this result, which worked find but had the issue with the shortest path:

IMG_0103

Now by using UIRotationEffect with the following code, I get a resized view like this.

.uiRotationEffect(Angle(degrees:  rotate * -1), duration: 0.1, options: [.curveEaseOut])

IMG_0104

I tried using the different animation options but that didn't help. Also setting the frame before and after the .uiRotationEffect() didn't help. Do you have any idea what I can do about this?

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