UIDevice

In this short Swift code example, you will learn how to determine device orientation in Swift. Determine device orientation when the view is about to appear Determine device orientation when device is being rotated to Landscape or Portrait import UIKit class ViewController: UIViewController { var textView:UITextView? override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_…

Read More Determine Device Orientation in Swift