Reputation: 2040
I'm making an application in SwiftUI and I don't want the user to be able to rotate their screen and be able to view the app in landscape mode. How can I do this?
Thanks.
Upvotes: 3
Views: 1555
Reputation: 87
Alternative solution:
If the simple options on Project > Target > General > Deployment Info > Device Orientation are not enough for you, then try the following:
Select a target in the "TARGETS" section.
Go to the "Info" tab.
There are 3 arrays you may have to adjust: "Supported interface orientations (iPhone)", "Supported interface orientations", "Supported interface orientations (iPad)"
Upvotes: 2
Reputation: 30361
Upvotes: 7