Last active
October 2, 2019 11:43
-
-
Save rxtr007/3f5aabe0f52518c7a1764bdc4aafcd8c 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
var hasTopNotch: Bool { | |
if #available(iOS 11.0, *) { | |
return UIApplication.shared.delegate?.window??.safeAreaInsets.top ?? 0 > 20 | |
} | |
return false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment