Hi:
I want to lock the device direction to landscape or portrait when the user enters on a specific screen.
How can I do it in SwiftUI?
Thanks in advance
Hi:
I want to lock the device direction to landscape or portrait when the user enters on a specific screen.
How can I do it in SwiftUI?
Thanks in advance
No direct way to do it for a simple way to do it for a view (not the whole app).
It is necessary for now to go through appDelegate (not a big issue though)
https://www.polpiella.dev/changing-orientation-for-a-single-screen-in-swiftui