diff --git a/Sources/PreviewDevice/Device.swift b/Sources/PreviewDevice/Device.swift index 3ed0734..01bd723 100644 --- a/Sources/PreviewDevice/Device.swift +++ b/Sources/PreviewDevice/Device.swift @@ -42,6 +42,14 @@ public enum Device: String { case iphone14Plus = "iPhone 14 Plus" case iphone14Pro = "iPhone 14 Pro" case iphone14ProMax = "iPhone 14 Pro Max" + case iphone15 = "iPhone 15" + case iphone15Plus = "iPhone 15 Plus" + case iphone15Pro = "iPhone 15 Pro" + case iphone15ProMax = "iPhone 15 Pro Max" + case iphone16 = "iPhone 16" + case iphone16Plus = "iPhone 16 Plus" + case iphone16Pro = "iPhone 16 Pro" + case iphone16ProMax = "iPhone 16 Pro Max" // MARK: - iPad diff --git a/Tests/PreviewDeviceTests/DeviceIphoneTests.swift b/Tests/PreviewDeviceTests/DeviceIphoneTests.swift index def8bb0..b454232 100644 --- a/Tests/PreviewDeviceTests/DeviceIphoneTests.swift +++ b/Tests/PreviewDeviceTests/DeviceIphoneTests.swift @@ -178,4 +178,26 @@ final class DeviceIphoneTests: XCTestCase { let iphone: Device = .iphone14ProMax XCTAssertEqual(iphone.rawValue, "iPhone 14 Pro Max") } + + // MARK: - Iphone 15, 15 Plus, 15 Pro, 15 Pro Max + + func testIphone15HasCorrectName() { + let iphone: Device = .iphone15 + XCTAssertEqual(iphone.rawValue, "iPhone 15") + } + + func testIphone15PlusHasCorrectName() { + let iphone: Device = .iphone15Plus + XCTAssertEqual(iphone.rawValue, "iPhone 15 Plus") + } + + func testIphone15ProHasCorrectName() { + let iphone: Device = .iphone15Pro + XCTAssertEqual(iphone.rawValue, "iPhone 15 Pro") + } + + func testIphone15ProMaxHasCorrectName() { + let iphone: Device = .iphone15ProMax + XCTAssertEqual(iphone.rawValue, "iPhone 15 Pro Max") + } }