How to set bottom safe area to XIB in iOS?
I want to open custom popup view(designed in XIB) which is displaying from bottom but rightnow in iPhoneX simulator, it displayed from bottom of the screen. i want to open popup in safe area. Result in iPhone-X And XIB Layout with constraints. Solution in simple words: Remove bottom constraint with superview and attach it (bottom constraint) with bottom (anchor) layout constraint of 'Safe Area' Follow these steps to find solution: Enable 'Safe Area Layout', if not enabled. Remove 'Bottom constraint' if it shows you connection with with Super view and re-attach with safe layout bottom anchor.