SwiftUI rotationEffect before and after position modifier

Is it intended behaviour for rotationEffect to choose its parent views centre as the axis of rotation, when applied after the position modifier? Whereas, if rotationEffect is applied before position, it rotates the view about its own centre. This can be demonstrated by the following which is not equivalent to a 360 degree rotation ie. no rotation:

Image(systemName: "arrowshape.up.fill")
            .rotationEffect(.degrees(180))
            .position(x:50, y: 50)
            .rotationEffect(.degrees(180))

Replies

I have often noticed that position has some unexpected (or at least undocumented) side effects.

In this case, as

… position(_:) modifier to place the center of a view at a specific coordinate in the parent view using a CGPoint to specify the x and y offset.

It seems effectively that the new reference is the parent view center