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.
Solution
Click on your project name with the blue icon next to it in Xcode.
Select the "TARGETS" version of your project.
Under "Deployment Info" in the General tab, change the "Device Orientation" settings.