Perry Wang
Perry Wang

Reputation: 209

iOS how to custimize the orientation change animation

For example, in the rotation effect in Kino, every element is fixed in the same place, with only the angle change, and the text also changes its orientation.

How to achieve the effect.

I tried to keep the UIInterfaceOrientation portrait and use the .rotation modifier in swiftui and listened to the device orientation change. However, it makes the text layout very hard because it still uses the size before rotation.

Result

Upvotes: 1

Views: 41

Answers (0)

Related Questions