This works great for the iPhone. How do you change it to lock the orientation for the iPad?
Post
Replies
Boosts
Views
Activity
Nevermind. I got it to work. Thanks
I guess my question is more on how to make the orientation rotate based on which view orientation is set. I did this in Swift by changing the UIDevice.current.setValue(UIInterfaceOrientation.portraitUpsideDown.rawValue, forKey: "orientation") but in swiftui I keep getting an error and my app crashes
Had to use DispatchQueue to make it work