Skip to content

Commit

Permalink
Merge branch 'mhausherr-master' into feature/merge-prs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zandor300 committed Jan 15, 2024
2 parents cbcb39b + 10aa40f commit 326aac5
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 106 deletions.
10 changes: 10 additions & 0 deletions Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,16 @@ public enum Device {
public var hasLidarSensor: Bool {
return isOneOf(Device.allDevicesWithALidarSensor) || isOneOf(Device.allDevicesWithALidarSensor.map(Device.simulator))
}

/// All devices that have a USB-C connectivity.
public static var allDevicesWithUSBCConnectivity: [Device] {
return [.iPhone15, .iPhone15Plus, .iPhone15Pro, .iPhone15ProMax, .iPad10, .iPadAir4, .iPadAir5, .iPadMini6, .iPadPro12Inch5, .iPadPro12Inch6]
}

/// Returns whether or not the device has a USB-C power supply.
public var hasUSBCConnectivity: Bool {
return isOneOf(Device.allDevicesWithUSBCConnectivity) || isOneOf(Device.allDevicesWithUSBCConnectivity.map(Device.simulator))
}
#elseif os(tvOS)
/// All TVs
public static var allTVs: [Device] {
Expand Down
Loading

0 comments on commit 326aac5

Please sign in to comment.