The native scale factor for the physical screen.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
var nativeScale: CGFloat { get }
The native scale factor for the physical screen.
SDKs
Framework
var nativeScale: CGFloat { get }
var bounds: CGRect
The bounding rectangle of the screen, measured in points.
var native Bounds: CGRect
The bounding rectangle of the physical screen, measured in pixels.
var scale: CGFloat
The natural scale factor associated with the screen.