DeviceKit v3.0.0 Release Notes

Release Date: 2020-01-20 // almost 2 years ago
  • ๐Ÿš€ Releasedate: 2020-01-19

    pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master'
    #pod 'DeviceKit', '~> 3.0'
    

    ๐Ÿ’ฅ Breaking changes

    • The enum for the Apple TV HD has been renamed from .appleTV4 to .appleTVHD. (#211)
    • ๐Ÿ—„ .allSimulatorXSeriesDevices has been deprecated and replaced by .allSimulatorDevicesWithSensorHousing. (#212)
    • ๐Ÿ—„ .allXSeriesDevices has been deprecated and replaced by .allDevicesWithSensorHousing. (#212)

    Camera

    • CameraTypes has been renamed to CameraType. (#212)
    • ๐Ÿ—„ CameraType.normal has been deprecated and replaced by CameraType.wide. (#212)
    • ๐Ÿ—„ .allDevicesWithNormalCamera has been deprecated and replaced by .allDevicesWithWideCamera. (#212)
    • ๐Ÿ—„ .hasNormalCamera has been deprecated and replaced by .hasWideCamera. (#212)

    ๐Ÿ†• New features

    • ๐Ÿ‘ You can now check which devices support wireless charging through the following variables: Device.allDevicesWithWirelessChargingSupport and Device.current.supportsWirelessCharging (#209)
    • ๐Ÿ†• New .safeDescription variable that will provide you with a safe version of the .description variable. (#212)
      • Example: "iPhone Xส€" vs "iPhone XR"

    ๐Ÿ›  Bugfixes

    • ๐Ÿ‘ .allDevicesWith3dTouchSupport contained .iPhoneSE which was incorrect. (#226)
    • Some variables would return incorrect values when running on the simulator. (#227)