Breaking changes for 2.0 - #168
Conversation
…through the gyb file.
… hasn't been updated for a new device yet. (Fixes devicekit#165)
|
Wow thank you for that PR :) Thanks for the fix of #164, that looks awesome, totally missed that yesterday, that’s definitely the way to go! This is also a todo list for me since I’m mobile only this month and I don’t know off the top of my head:
Thank you for working on this! |
|
|
Just changed it to using small caps in 3297936. |
|
Also slapped in those guards: d8b5102 |
|
Just changed everything over to solely |
|
Just noticed; Small caps s is just the same as a lowercase s. |
|
You are awesome! 😎 that is super cool Zander! I really like it :) |
| public var isZoomed: Bool { | ||
| public var isZoomed: Bool? { | ||
| guard isCurrent else { return nil } | ||
| // TODO: Longterm we need a better solution for this! |
There was a problem hiding this comment.
| TODOs should be resolved (Longterm we need a better solu…). |
This comment has been minimized.
This comment has been minimized.
SwiftLint found issuesWarnings
Generated by 🚫 Danger |
Since this function is generated with a switch for all devices, this needs to be this long.
This is required because Swift 5 isn't supported in Xcode 10.1.
|
We can set something like this up, sure, but since I won’t have the time to contribute or manage very much going forward, I’d like to leave that up to @denisenepraunig |
|
@Zandor300 I am fine with WhatsApp or Telegram for direct communication - for questions I have to Dennis I will contact him directly. You can drop me a mail with your number to denise dot nepraunig at gmail dot com. |
… description test.
denisenepraunig
left a comment
There was a problem hiding this comment.
Looks good to me 😊
|
Another warning that needs fixing: |
…faceDeviceBatteryState. (Thanks robbiet480)
|
@robbiet480 Thanks for the catch! Fixed it in 11353eb. |
|
@denisenepraunig LGTM! |
Fixes #149
Closes #130
Fixes #167
Fixes #165
Closes #174 (Both Swift 5 and the
@unknownin switch)Closes #159
Fixes #164 not being defined in the gyb file.
Fixes #166 not being defined in the gyb file.
Changelog
Breaking changes
Device()constructor has been made private in favour of usingDevice.currentto matchUIDevice.current..iPhoneXS,.iPhoneXSMaxand.iPhoneXRto match proper formatting..descriptionfor the iPhone Xs, iPhone Xs Max and iPhone Xʀ have been changed to contain small caps formatting for the s and the ʀ part..descriptionfor the iPad 5 and iPad 6 have been changed to the proper names; iPad (5th generation) and iPad (6th generation)..name,.systemName,.systemVersion,.model,.localizedModel,.batteryStateand.batteryLevelwill now all return nil when you try to get its value when the device you are getting it from isn't the current one. (eg.Device.iPad6.namewhile running on iPad 5)New features
.allDevicesWithRoundedDisplayCornersand.hasRoundedDisplayCornersvalues to check if a device has rounded display corners. (eg. iPhone Xs and iPad Pro (3rd generation)).allDevicesWithSensorHousingand.hasSensorHousingvalues to check if a device has a screen cutout for the sensor housing. (eg. iPhone Xs)Bugfixes
.isPadand.isPhoneare now giving correct outputs again.