Answers for "xcode how to get aspect ratio of device"

0

xcode how to get aspect ratio of device

let deviceWidth = UIScreen.main.bounds.width * UIScreen.main.scale
let deviceHeight = UIScreen.main.bounds.height * UIScreen.main.scale
let testDeviceAspectRatio = deviceHeight / deviceWidth
Posted by: Guest on September-07-2020

Code answers related to "xcode how to get aspect ratio of device"

Code answers related to "Swift"

Browse Popular Code Answers by Language