fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Change implementation for checking device orientation #1443

Closed ichan-mb closed 2 years ago

ichan-mb commented 2 years ago

Currently on iOS polling mechanism to check device orientation is using an old API that is deprecated and when I observe it takes more CPU usage.

This PR it replaces the [[UIApplication sharedApplication] statusBarOrientation] API with the [[UIDevice currentDevice] orientation] and can reduce CPU usage up to 1% when the app is in an idle state. And this PR is also fixed some bad indentation

This PR contains: