I created a completely new, single-view iOS universal Swift app. Then, I unchecked \"Landscape Left\" and \"Landscape Right\" in the app settings. I ran it on my iPhone, and hoo
Works for me!
Open info.plist
as source code, you will see these properties:
UISupportedInterfaceOrientations
: For iPhoneUISupportedInterfaceOrientations~ipad
: For iPadUnder UISupportedInterfaceOrientations~ipad
remove your unwanted orientation mode. In my case, I want only Portrait Mode so I removed the rest modes and then save it.
Done! Good Luck