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:


A Boolean value indicating whether the specified orientation is face up or face down.

Alberto Pasca
Latest posts by Alberto Pasca (see all)
%d bloggers like this: