increase the size of the view by device size ios swift code example Example: swift get device screen size let screenSize: CGRect = UIScreen.main.bounds