Swift mendapatkan ukuran layar perangkat

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