get the width and height of screen in Swift
let frameWidth: CGFloat = self.view.frame.width let frameHeight: CGFloat = self.view.frame.height let statusBarHeight: CGFloat = UIApplication.shared.statusBarFrame.height