On the iPhone X in portrait mode, if you set a bottom constraint to safe area to 0, you will end up with an extra space at the bottom of the screen. How do you get programma
UIApplication.shared.windows.first?.safeAreaInsets.bottom ?? 0.0
iOS 13 and up