@@ -18,6 +18,10 @@ internal enum Device: CustomStringConvertible {
18
18
case iPhone14Plus( Orientation )
19
19
case iPhone14Pro( Orientation )
20
20
case iPhone14ProMax( Orientation )
21
+ case iPhone15( Orientation )
22
+ case iPhone15Plus( Orientation )
23
+ case iPhone15Pro( Orientation )
24
+ case iPhone15ProMax( Orientation )
21
25
22
26
internal enum Orientation {
23
27
@@ -61,6 +65,19 @@ internal enum Device: CustomStringConvertible {
61
65
[ . iPhone14ProMax( . portrait) , . iPhone14ProMax( . landscape) ]
62
66
}
63
67
68
+ internal static var iPhone15 : [ Self ] {
69
+ [ . iPhone15( . portrait) , . iPhone15( . landscape) ]
70
+ }
71
+ internal static var iPhone15Plus : [ Self ] {
72
+ [ . iPhone15Plus( . portrait) , . iPhone15Plus( . landscape) ]
73
+ }
74
+ internal static var iPhone15Pro : [ Self ] {
75
+ [ . iPhone15Pro( . portrait) , . iPhone15Pro( . landscape) ]
76
+ }
77
+ internal static var iPhone15ProMax : [ Self ] {
78
+ [ . iPhone15ProMax( . portrait) , . iPhone15ProMax( . landscape) ]
79
+ }
80
+
64
81
internal static var allTestDevices : [ Self ] {
65
82
portraitTestDevices + landscapeTestDevices
66
83
}
@@ -75,7 +92,11 @@ internal enum Device: CustomStringConvertible {
75
92
. iPhone14( . portrait) ,
76
93
. iPhone14Plus( . portrait) ,
77
94
. iPhone14Pro( . portrait) ,
78
- . iPhone14ProMax( . portrait)
95
+ . iPhone14ProMax( . portrait) ,
96
+ . iPhone15( . portrait) ,
97
+ . iPhone15Plus( . portrait) ,
98
+ . iPhone15Pro( . portrait) ,
99
+ . iPhone15ProMax( . portrait)
79
100
]
80
101
}
81
102
@@ -89,7 +110,11 @@ internal enum Device: CustomStringConvertible {
89
110
. iPhone14( . landscape) ,
90
111
. iPhone14Plus( . landscape) ,
91
112
. iPhone14Pro( . landscape) ,
92
- . iPhone14ProMax( . landscape)
113
+ . iPhone14ProMax( . landscape) ,
114
+ . iPhone15( . landscape) ,
115
+ . iPhone15Plus( . landscape) ,
116
+ . iPhone15Pro( . landscape) ,
117
+ . iPhone15ProMax( . landscape)
93
118
]
94
119
}
95
120
@@ -114,23 +139,31 @@ internal enum Device: CustomStringConvertible {
114
139
internal var name : String {
115
140
switch self {
116
141
case let . iPhone8( orientation) :
117
- return " iPhone 8 - \( orientation) "
142
+ " iPhone 8 - \( orientation) "
118
143
case let . iPhoneSE( orientation) :
119
- return " iPhone SE - \( orientation) "
144
+ " iPhone SE - \( orientation) "
120
145
case let . iPhoneX( orientation) :
121
- return " iPhone X - \( orientation) "
146
+ " iPhone X - \( orientation) "
122
147
case let . iPhone13( orientation) :
123
- return " iPhone 13 - \( orientation) "
148
+ " iPhone 13 - \( orientation) "
124
149
case let . iPhone13mini( orientation) :
125
- return " iPhone 13 mini - \( orientation) "
150
+ " iPhone 13 mini - \( orientation) "
126
151
case let . iPhone14( orientation) :
127
- return " iPhone 14 - \( orientation) "
152
+ " iPhone 14 - \( orientation) "
128
153
case let . iPhone14Plus( orientation) :
129
- return " iPhone 14 Plus - \( orientation) "
154
+ " iPhone 14 Plus - \( orientation) "
130
155
case let . iPhone14Pro( orientation) :
131
- return " iPhone 14 Pro - \( orientation) "
156
+ " iPhone 14 Pro - \( orientation) "
132
157
case let . iPhone14ProMax( orientation) :
133
- return " iPhone 14 Pro Max - \( orientation) "
158
+ " iPhone 14 Pro Max - \( orientation) "
159
+ case let . iPhone15( orientation) :
160
+ " iPhone 15 - \( orientation) "
161
+ case let . iPhone15Plus( orientation) :
162
+ " iPhone 15 Plus - \( orientation) "
163
+ case let . iPhone15Pro( orientation) :
164
+ " iPhone 15 Pro - \( orientation) "
165
+ case let . iPhone15ProMax( orientation) :
166
+ " iPhone 15 Pro Max - \( orientation) "
134
167
}
135
168
}
136
169
}
0 commit comments