http://www.albertopasca.it/whiletrue/swift-uidevice-orientations-using-ios12/
Swift - UIDevice orientations using iOS12