Questions tagged [iphone-x]

Only use this tag for questions that specifically apply to the Apple iPhone X device. Use the [ios] tag for questions related to iOS. Hardware questions generally belonging to the iPhone X should be in the Ask Different community.

iPhone X is a mobile phone produced by Apple. Its key features include a 5.8 inch edge-to-edge "Super Retina Display", a dual-camera setup with extended AR compatibilities and the Face ID face recognition system.

Product page

641 questions
285
votes
38 answers

Detect if the device is iPhone X

My iOS app uses a custom height for the UINavigationBar which leads to some problems on the new iPhone X. Does someone already know how to reliable detect programmatically (in Objective-C) if an app is running on iPhone X? EDIT: Of course checking…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
139
votes
32 answers

iOS 11 iPhone X simulator UITabBar icons and titles being rendered on top covering eachother

Anyone having issue with the iPhone X simulator around the UITabBar component? Mine seem to be rendering the icons and title on top of each other, I'm not sure if I'm missing anything, I also ran it in the iPhone 8 simulator, and one actual devices…
adrian chen
  • 1,538
  • 2
  • 9
  • 9
137
votes
12 answers

How do I use Safe Area Layout programmatically?

Since I don't use storyboards to create my views, I was wondering if there's the "Use Safe Area Guides" option programmatically or something like that. I've tried to anchor my views to view.safeAreaLayoutGuide but they keep overlapping the top…
Phillip
  • 4,276
  • 7
  • 42
  • 74
136
votes
11 answers

Seeing black bars at the top and bottom of the iPhone X Simulator

Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects: the App does not use the full screen space (top and bottom area is black) a strange white bar beneath the title bar Does anybody know what is happening here and…
Darko
  • 9,655
  • 9
  • 36
  • 48
130
votes
9 answers

Cordova app not displaying correctly on iPhone X (Simulator)

I tested my Cordova-based app yesterday on the iPhone X Simulator in Xcode 9.0 (9A235) and it didn't look good. Firstly, instead of filling the full screen area, there was a black area above and below the app content. And worse, between the app…
DaveAlden
  • 30,083
  • 11
  • 93
  • 155
82
votes
14 answers

safeAreaInsets in UIView is 0 on an iPhone X

I am updating my app to adapt it for iPhone X. All views work fine by now except one. I have a view controller that presents a custom UIView that covers the whole screen. Before I was using UIScreen.main.bounds to find out the size of the view…
Joan Cardona
  • 3,463
  • 2
  • 25
  • 43
81
votes
5 answers

iPhone X / 8 / 8 Plus CSS media queries

What are the CSS media queries corresponding to Apple's new devices ? I need to set the body's background-color to change the X's safe area background color.
nathan
  • 9,329
  • 4
  • 37
  • 51
75
votes
10 answers

React Native SafeAreaView background color - How to assign two different background color for top and bottom of the screen?

I'm using SafeAreaView from React Native 0.50.1 and it's working pretty good except for the one part. I assigned the orange background color to the SafrAreaView but can't figure out to change the bottom unsafe area background to black. Here is the…
Skate to Eat
  • 2,554
  • 5
  • 21
  • 53
68
votes
9 answers

Safe area layout guides in xib files - iOS 10

I started adapting my app for iPhone X and found an issue in Interface Builder. The safe area layout guides are supposed to be backwards compatible, according to official Apple videos. I found that it works just fine in storyboards. But in my XIB…
Tiago Lira
  • 2,543
  • 1
  • 18
  • 17
61
votes
8 answers

What is the top bar height of iPhone X?

I would like to know exact height of top bar of iPhone X. Could you please mention the status bar and navigation bar height of iPhone X. Please help me.
IKKA
  • 6,297
  • 7
  • 50
  • 88
59
votes
5 answers

Can we test Face ID in simulator?

Can we test biometric authentication using the simulator? The iPhone X Simulator shows a menu for Face ID enrollment, but after enabling that, what can I do? How it will recognize a face for authentication?
technerd
  • 14,144
  • 10
  • 61
  • 92
56
votes
6 answers

iPhone X hide home indicator on view controller

I have a view controller that takes up the whole screen from top to bottom. I would like to hide the home bar indicator on the bottom of the screen on iPhone X devices. How can I do this in iOS 11?
Vlad
  • 5,727
  • 3
  • 38
  • 59
50
votes
8 answers

How to fix Xcode error: Could not locate device support files on iPhone with Xcode

I have this error for the new iPhone X: Could not locate device support files. This iPhone X (Model A1865, A1901, A1902, A1903) is running iOS 11.1 (15B93), which may not be supported by this version of Xcode. I'm running the latest version of…
user2888798
  • 688
  • 1
  • 6
  • 14
50
votes
7 answers

Extra bottom space/padding on iPhone X?

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 programmatically the height of this extra padding ? I managed to manually determine…
standousset
  • 1,092
  • 1
  • 10
  • 25
49
votes
4 answers

Getting a white space at bottom of iPhone X screen (Xcode 9)

I'm using Xcode 9 for my project and I'm getting a white space at the bottom, here is the screenshot: Also I'm using storyboard to design with 4 inches (iphone 5s/SE) as layout. How to avoid the white space?
Harish
  • 537
  • 1
  • 4
  • 9
1
2 3
42 43