Skip to content

Commit

Permalink
Merge pull request #75 from RunningBack33/preview-devices
Browse files Browse the repository at this point in the history
Add new snapshot devices to stencil
  • Loading branch information
BarredEwe authored Nov 5, 2024
2 parents 17faf9d + 89fea4c commit 309527e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Templates/PreviewTests.stencil
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ class PreviewTests: XCTestCase {
private extension PreviewDevice {
func snapshotDevice() -> ViewImageConfig? {
switch rawValue {
case "iPhone 15", "iPhone 14", "iPhone 13", "iPhone 12", "iPhone 11", "iPhone 10":
case "iPhone 16 Pro Max", "iPhone 15 Pro Max", "iPhone 14 Pro Max", "iPhone 13 Pro Max", "iPhone 12 Pro Max":
return .iPhone13ProMax
case "iPhone 16 Pro", "iPhone 15 Pro", "iPhone 14 Pro", "iPhone 13 Pro", "iPhone 12 Pro":
return .iPhone13Pro
case "iPhone 16", "iPhone 15", "iPhone 14", "iPhone 13", "iPhone 12", "iPhone 11", "iPhone 10":
return .iPhoneX
case "iPhone 6", "iPhone 6s", "iPhone 7", "iPhone 8":
return .iPhone8
Expand Down

0 comments on commit 309527e

Please sign in to comment.