I used AMScrollingNavbar, and customize it, it works perfectly on all devices but behave differently in iPhone X.
Asked
Active
Viewed 264 times
1

AyAz
- 2,027
- 2
- 21
- 28
-
Try detecting when Device is iPhone X , Do something Different for it Like some different Constraints – iOS Geek Oct 12 '17 at 04:20
-
@iOSGeek i did not used any constraints in bar items, – AyAz Oct 12 '17 at 04:24
-
Hello Ayaz , you should use safe auto layout guide .follow the instruction by visit pasted link. https://stackoverflow.com/questions/44492404/safe-area-of-xcode-9 – Muhammad Noman Oct 12 '17 at 06:02
-
Possible duplicate of [Safe Area of Xcode 9](https://stackoverflow.com/questions/44492404/safe-area-of-xcode-9) – Muhammad Noman Oct 12 '17 at 06:02
1 Answers
0
Add a LaunchImage Image of size 1125px × 2436px in Portrait Mode & 2436px × 1125px in Landscape Mode in Assets.
It will fix the issue of Black Area, while it will create a gap of 20 pixels, which you fix by setting Constraints.
Reference
https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/launch-screen/

Chatar Veer Suthar
- 15,541
- 26
- 90
- 154