Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

HiVolt

macrumors 68000
Original poster
Sep 29, 2008
1,924
6,776
Toronto, Canada
So I've had a simple "toggle orientation lock" shortcut assigned to the action button on my iPhone 15 Pro Max since day one 2 years ago.

However, what's always bothered me is the lack of visual feedback telling me what the mode is being set to. All that appears is a little checkmark that the shortcut was executed.

Is there a way to make it show the state of the orientation lock after the shortcut has been executed? I noticed in shortcuts there is a "Get orientation" status, and it returns whatever the current mode is, but i dont know how to make it display after the toggle has been executed.

And why isn't this simple option available to add from the "Controls" in the Action button setup? Seems that Apple could have done that with minimal effort, like you can assign to toggle Dark mode and it says whether it's on or off.
 
Last edited:
Is there a way to make it show the state of the orientation lock after the shortcut has been executed? I noticed in shortcuts there is a "Get orientation" status, and it returns whatever the current mode is, but i dont know how to make it display after the toggle has been executed.
This action is a bit misleading. It doesn't get the orientation lock status. It gets the orientation of the device at the time it runs (ex. Face Up, Face Down, Portrait Upside Down, Landscape Left, etc.).

Unfortunately, it doesn't look like there is an action that can get the orientation lock status. You would have to build a more complex shortcut to accomplish what you're wanting by keeping track of the state elsewhere.

Something like this...

Pre-setup:
  • Create a file on your phone called OrientationLockStatus.txt, and put 'Off' in it. (Do this in the Files app.)
Shortcut:
  • Read this file (Get File from Folder action)
  • If 'Off'
    • Turn orientation lock on
    • Text action set to 'On'
    • Set variable 'Status' to value of Text action
  • Otherwise
    • Turn orientation lock off
    • Text action set to 'Off'
    • Set variable 'Status' to to value of Text action
  • Save 'Status' variable to OrientationLockStatus.txt
  • Use 'Show Alert' or 'Show Notification' to show the 'Status' variable value.
EDIT: You can use an app called "Data Jar" to store the variables/states in there instead of in a file. It may simplify things a bit.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.