UXDivers / Grial-UI-Kit-Support

This is our public repository for customers to report bugs about Grial UI Kit for Xamarin Forms
61 stars 26 forks source link

OrientationLock #834

Closed viamatt closed 1 year ago

viamatt commented 1 year ago

Is there any documentation on how to lock the orientation of a Grial based app to portrait, I see the usual ios method GetSupportedInterfaceOrientations is wired up to a Grial method so assume somewhere I can set the apps allowed orientation mask?

dirivero commented 1 year ago

Hi! You can do this:

DependencyService.Get<IOrientationLockService>().LockOrientation(OrientationLock.Portrait);