On the new iPhone X, what would be the most proper way to get both top and bottom height for the unsafe areas?
In iOS 11 there is a method that tells when the safeArea has changed.
override func viewSafeAreaInsetsDidChange() { super.viewSafeAreaInsetsDidChange() let top = view.safeAreaInsets.top let bottom = view.safeAreaInsets.bottom }