Post

Replies

Boosts

Views

Activity

How to lock screen orientation for a specific view?
I have one view, that need to be locked in portrait only on the iPhone, but not on the iPad, but while it seems to be kinda easy on UIKit, I cannot find any solution for the SwiftUI. For UIKit it works through overriding supportedInterfaceOrientations in the controller, but I don't see any easy way to do so in the SwiftUI
2
0
1.0.0k
Feb ’20