Swift Obtenha tamanho da tela do dispositivo

let screenSize: CGRect = UIScreen.main.bounds
Mobile Star