In Objective-C we can get device width and height by using following code :
CGRect sizeRect = [UIScreen mainScreen].applicationFrame float width = sizeRect.
Since you're looking for the device screen size the simplest way is:
let screenSize = UIScreen.mainScreen().bounds.size let width = screenSize.width let height = screenSize.height