UIScreen

public extension UIScreen
  • The size of the device. Note: Orientation is taken into account.

    Declaration

    Swift

    static func screenSize() -> CGSize

    Return Value

    The CGSize of the screen.