Skip to content

Commit

Permalink
suggest helpers (comments) for iphone/ipad/iPod screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
nikans committed Sep 19, 2018
1 parent bbd1068 commit 21f548b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/Size.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,27 @@
public enum Size: Int, Comparable {
case unknownSize = 0
#if os(iOS)
/// iPhone 4, 4s, iPod Touch 4th gen.
case screen3_5Inch
/// iPhone 5, 5s, 5c, SE, iPod Touch 5-6th gen.
case screen4Inch
/// iPhone 6, 6s, 7, 8
case screen4_7Inch
/// iPhone 6+, 6s+, 7+, 8+
case screen5_5Inch
/// iPhone X, Xs
case screen5_8Inch
/// iPhone Xr
case screen6_1Inch
/// iPhone Xs Max
case screen6_5Inch
/// iPad Mini
case screen7_9Inch
/// iPad
case screen9_7Inch
/// iPad Pro (10.5-inch)
case screen10_5Inch
/// iPad Pro (12.9-inch)
case screen12_9Inch
#elseif os(OSX)
case screen11Inch
Expand Down

0 comments on commit 21f548b

Please sign in to comment.