Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wireless charger #209

Merged
merged 10 commits into from
Oct 5, 2019
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