Skip to content

Instantly share code, notes, and snippets.

@rxtr007
Last active October 2, 2019 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rxtr007/3f5aabe0f52518c7a1764bdc4aafcd8c to your computer and use it in GitHub Desktop.
Save rxtr007/3f5aabe0f52518c7a1764bdc4aafcd8c to your computer and use it in GitHub Desktop.
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