端末の縦向き横向き判定【Swift】
if UIDevice.current.orientation.isPortraint { print("縦向き") } if UIDevice.current.orientation.isLandscape { print("横向き") }
if UIDevice.current.orientation.isPortraint { print("縦向き") } if UIDevice.current.orientation.isLandscape { print("横向き") }