Replacement for deprecated attemptRotationToDeviceOrientation function – Ios swift
I have been using the attemptRotationToDeviceOrientation function to change the orientation of some ViewController when the user presses a button. However, as of iOS 16, this function has been officially deprecated. What can I use as the replacement?