UIScreen
class UIScreen : NSObject, UITraitEnvironment
-
Returns the screen width.
Declaration
Swift
public static var width: CGFloat { get } -
Returns the screen height.
Declaration
Swift
public static var height: CGFloat { get } -
Returns if the screen size is iPhone X’s or bigger.
Declaration
Swift
public static var isiPhoneXOrBigger: Bool { get } -
Returns if the detected device has a large screen equivelaent to plus models’.
Declaration
Swift
public static var isiPhonePlus: Bool { get } -
Returns if the detected device has a large screen.
Declaration
Swift
public static var isLarge: Bool { get } -
Returns if the detected device has a small screen.
Declaration
Swift
public static var isSmall: Bool { get }
UIScreen Extension Reference