Skip to content

Views get resized #1

@xremix

Description

@xremix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions