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

Answer: Xcode: Could not locate device support files Well, I found non of the answers logged out here aren’t complete and sustainable. So here we go. Most importantly don’t waste your time and internet bandwidth downloading Xcode just to resolve this issue which you can do within few MBs and little bit of OS know-how!!! … Read more

Extra bottom space/padding on iPhone X?

In iOS 11, views have a safeAreaInsets property. If you get the bottom property of these insets you can get the height of the bottom padding while on iPhone X: if #available(iOS 11.0, *) { let bottomPadding = view.safeAreaInsets.bottom // … } (likewise for the top padding with status bar)

Can we test Face ID in simulator?

Simulator does not recognise a face but allows you to simulate a matching and non-matching faces, if you’ve enabled Enrolled option from Face ID. Add following code to your view controller and try with Face-ID import LocalAuthentication class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() localAuthentication() } func localAuthentication() -> Void { let laContext … Read more

What is the top bar height of iPhone X?

The display on iPhone X, however, is 145pt taller than a 4.7″ display, resulting in roughly 20% additional vertical space for content. for more information you get HIG for iphone X from apple documents and detail description in here1 and here2 status bar height previously 20pt, now 44pt Because of the sensors on top of … Read more