December 25, 2024

How to Automatically Toggle iPhone Orientation Lock for Specific Apps

0
How to Automatically Toggle iPhone Orientation Lock for Specific Apps

 

​Tired of toggling your iPhone’s Orientation Lock for certain apps? Keep reading to learn how you can make iOS do it for you automatically.

In iOS, many apps display a different view when you rotate your iPhone from portrait to landscape orientation. Depending on the app and the way you use it, this behavior isn’t always desirable, which is why Apple includes the Orientation Lock option in Control Center.

However, certain apps work more usefully with Orientation Lock disabled – think YouTube or the Photos app, where rotating your device to landscape orientation makes for a better fullscreen viewing experience.

If you tend to keep the lock on, you have to disable it in Control Center each time you open these kinds of apps to get the fullscreen experience. Then when you close the app, you have to remember to turn Orientation Lock back on, which isn’t ideal. Fortunately, there is a simple personal automation you can create that will take over this process for you for specific apps, so you don’t have to keep going in and out of Control Center any more.

The following steps show you how it’s done.

Open the Shortcuts app on your iPhone and select the Automation tab.

Tap the plus symbol in the top-right corner of the screen.

Tap Create Personal Automation.

Scroll down and select App.

Make sure Is Opened and Is Closed are both checked, then tap the blue Choose option.

Select the apps that you want the automation to work with (we’re selecting YouTube and Photos), then tap Done.

Tap Next.

Tap Add Action.

Start typing “Set Orientation Lock” into the search field, then select the script in the search results when it appears.

Tap Next in the top-right of the Actions screen.

Toggle off the switch next to Ask Before Running, then tap Don’t Ask in the confirmation prompt.

Tap Done to finish.

Your automation will now be saved in the Shortcuts app, and will be activated the next time you open or close any of the apps you selected for it to work with. Bear in mind that if Orientation Lock is already disabled and you open one of the selected apps, the lock will be turned back on, which is likely the reverse effect that you intended.

This article, “How to Automatically Toggle iPhone Orientation Lock for Specific Apps” first appeared on MacRumors.com

Discuss this article in our forums