UIScreen
public extension UIScreen
-
The width of the screen relative to the orientation.
Declaration
Swift
static var relativeWidth: CGFloat { get }
-
The height of the screen relative to the orientation.
Declaration
Swift
static var relativeHeight: CGFloat { get }
-
The width of the device in portrait mode.
Declaration
Swift
static var portraitWidth: CGFloat { get }
-
The height of the device in portrait mode.
Declaration
Swift
static var portraitHeight: CGFloat { get }
-
The width of the device in landscape mode.
Declaration
Swift
static var landscapeWidth: CGFloat { get }
-
The height of the device in landscape mode.
Declaration
Swift
static var landscapeHeight: CGFloat { get }
-
The size of the device. Note: Orientation is taken into account.
Declaration
Swift
static func screenSize() -> CGSize
Return Value
The CGSize of the screen.