You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/07/16 10:48:11 UTC
[GitHub] [cordova-plugin-inappbrowser] NielCloete edited a comment on issue #773: Auto rotate to landscape in iOS
NielCloete edited a comment on issue #773:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/773#issuecomment-881356134
For any future lurkers who don't want to fork, I managed to solve this by creating a little Swift extension class in the XCode project.
Add this to the swift file:
`import Foundation
import CordovaPlugins`
`extension CDVWKInAppBrowserViewController {
override open var shouldAutorotate: Bool {
return true
}
override open var supportedInterfaceOrientations : UIInterfaceOrientationMask {
return .allButUpsideDown
}
}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org