Created
October 9, 2018 19:31
-
-
Save AttiaMo/1d3b5cd23311b7a3f3c717cfa85d8f9a to your computer and use it in GitHub Desktop.
This file contains 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
class var isIphoneXOrBigger: Bool { | |
// 812.0 on iPhone X, XS. | |
// 896.0 on iPhone XS Max, XR. | |
return UIScreen.main.bounds.height >= 812 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment