Reputation: 209
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.
Upvotes: 1
Views: 41