Skip to content

Commit

Permalink
Wireless charger (#209)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
gianpispi authored and denisenepraunig committed Oct 5, 2019
1 parent 4a1c9aa commit 81ca67d
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 61 deletions.
10 changes: 10 additions & 0 deletions Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,16 @@ public enum Device {
public var has3dTouchSupport: Bool {
return isOneOf(Device.allDevicesWith3dTouchSupport)
}

/// All devices that support wireless charging.
public static var allDevicesWithWirelessChargingSupport: [Device] {
return [.iPhone8, .iPhone8Plus, .iPhoneX, .iPhoneXS, .iPhoneXSMax, .iPhoneXR, .iPhone11, .iPhone11Pro, .iPhone11ProMax]
}

/// Returns whether or not the device supports wireless charging
public var supportsWirelessCharging: Bool {
return isOneOf(Device.allDevicesWithWirelessChargingSupport)
}
#elseif os(tvOS)
/// All TVs
public static var allTVs: [Device] {
Expand Down
Loading

0 comments on commit 81ca67d

Please sign in to comment.