DeviceScreenSize

public enum DeviceScreenSize

Apple devices, this enum only contais first in a line/screensize for each device (iPhone 6 is a predecesor of iPhone 7 thus only 6 is shown)

  • iPhone 4

    Declaration

    Swift

    case iPhone4
  • iPhone 5

    Declaration

    Swift

    case iPhone5
  • iPhone 6

    Declaration

    Swift

    case iPhone6
  • iPhone 6+

    Declaration

    Swift

    case iPhone6Plus
  • iPad

    Declaration

    Swift

    case iPad
  • iPad Pro (large screen)

    Declaration

    Swift

    case iPadProLarge
  • Return pixel size of the selected device

    Declaration

    Swift

    public static func size(for type: DeviceScreenSize) -> CGSize