How to correct Tab Bar height issue on iPhone X

On iOS 12.1 I’ve solved this issue by overriding safeAreaInsets in the UITabBar subclass: class TabBar: UITabBar { private var cachedSafeAreaInsets = UIEdgeInsets.zero override var safeAreaInsets: UIEdgeInsets { let insets = super.safeAreaInsets if insets.bottom < bounds.height { cachedSafeAreaInsets = insets } return cachedSafeAreaInsets } } For iOS 13.0 onward, class TabBar: UITabBar { private var … Read more

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

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