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:

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])

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?
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
And I got this result, which worked find but had the issue with the shortest path:
Now by using UIRotationEffect with the following code, I get a resized view like this.
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?