how to get the total size of ipad as cgsize in swift code example Example: swift get device screen size let screenSize: CGRect = UIScreen.main.bounds