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

Fix the isZoomed() function. #198

Merged
merged 1 commit into from
Aug 29, 2019
Merged

Fix the isZoomed() function. #198

merged 1 commit into from
Aug 29, 2019

Conversation

Zandor300
Copy link
Member

Credits to @vvit, see #195.

This removes the need to explicitly ignore iPhone X and iPhone Xs.

@@ -624,11 +624,9 @@ public enum Device {

public var isZoomed: Bool? {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Prefer non-optional booleans over optional booleans.

@devicekit-danger-bot
Copy link

devicekit-danger-bot commented Aug 29, 2019

2 Warnings
⚠️ Plist changed, don’t forget to localize your plist values
⚠️ Source/Device.generated.swift#L1198 - Prefer empty collection over optional collection.

SwiftLint found issues

Warnings

File Line Reason
Device.generated.swift 625 Prefer non-optional booleans over optional booleans.
Device.generated.swift 1198 Prefer empty collection over optional collection.

Generated by 🚫 Danger

@denisenepraunig
Copy link
Collaborator

Test Data from iPhone XR:
device: iPhone Xʀ
isZoomed: true
nativeScale: 2.208
scale: 2.0

device: iPhone Xʀ
isZoomed: false
nativeScale: 2.0
scale: 2.0

Copy link
Collaborator

@denisenepraunig denisenepraunig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@denisenepraunig denisenepraunig merged commit 7e67858 into master Aug 29, 2019
@Zandor300 Zandor300 deleted the fix-iszoomed branch September 2, 2019 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants