Apple offer the batteryState in the UIDevice class:
Month: October 2018
Swift – UIDevice orientations using iOS12
In iOS12 Apple introduced a new way to check if your device is in “flat” mode, or better is on your desk.
Let’s take a look at the reference:
Comparison: 720p vs 1080p vs 1080i vs 4K
WTF?
Sorry.
I’ve lost completely all my blog posts. About 15 years of work, tutorials and articles.
I’m recovering everything, post by post. I’ll be back soon!
Thanks.
START TRANSACTION; DROP DATABASE whiletrue; COMMIT;