Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBreaking changes for 2.0 #168
Conversation
|
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! |
|
…hone XR.
|
Just changed it to using small caps in 3297936. |
|
Also slapped in those guards: d8b5102 |
…rent.
|
Just changed everything over to solely |
|
Just noticed; Small caps s is just the same as a lowercase s. |
|
You are awesome! |
| @@ -617,9 +615,10 @@ public enum Device { | |||
| return Device.realDevice(from: self) | |||
| } | |||
|
|
|||
| public var isZoomed: Bool { | |||
| public var isZoomed: Bool? { | |||
| guard isCurrent else { return nil } | |||
| // TODO: Longterm we need a better solution for this! | |||
This comment has been minimized.
This comment has been minimized.
This comment was marked as spam.
This comment was marked as spam.
devicekit-danger-bot
commented
Mar 29, 2019
•
SwiftLint found issuesWarnings
Generated by |
|
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. |
|
Looks good to me |
|
Another warning that needs fixing:
|
…faceDeviceBatteryState. (Thanks robbiet480)
|
@robbiet480 Thanks for the catch! Fixed it in 11353eb. |
|
@denisenepraunig LGTM! |
802e405
into
devicekit:master
Zandor300 commentedMar 4, 2019
•
edited
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.