Last active
November 6, 2017 23:17
-
-
Save glowcap/58b2d5f8b426325c92823c48ecaacb3f to your computer and use it in GitHub Desktop.
iOS11 iPhoneX if
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if #available(iOS 11, *) { | |
| // if iOS11 parameters isn't enough | |
| if UIDevice().type == .iPhoneX { | |
| // iPhone X parameters | |
| } else { | |
| // iOS11 parameters | |
| } | |
| } else { | |
| // original parameters | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment