Skip to content

Commit 81ca67d

Browse files
gianpispidenisenepraunig
authored andcommitted
Wireless charger (devicekit#209)
* Minor changes Added the allMiniDevices and allSimulatorMiniDevices arrays for iPad mini * added supportsWirelessCharging variable * added wireless charging behaviour to every device, added iPad 7 support * removed whitespace * removed space in init parameters
1 parent 4a1c9aa commit 81ca67d

File tree

2 files changed

+81
-61
lines changed

2 files changed

+81
-61
lines changed

Source/Device.generated.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,16 @@ public enum Device {
728728
public var has3dTouchSupport: Bool {
729729
return isOneOf(Device.allDevicesWith3dTouchSupport)
730730
}
731+
732+
/// All devices that support wireless charging.
733+
public static var allDevicesWithWirelessChargingSupport: [Device] {
734+
return [.iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax]
735+
}
736+
737+
/// Returns whether or not the device supports wireless charging
738+
public var supportsWirelessCharging: Bool {
739+
return isOneOf(Device.allDevicesWithWirelessChargingSupport)
740+
}
731741
#elseif os(tvOS)
732742
/// All TVs
733743
public static var allTVs: [Device] {

0 commit comments

Comments
 (0)