Is there a way of detecting whether a Xojo iOS app is running on a device that has a home indicator bar? (i.e. iPhone X, 11, 12, etc)
I know that we can use the BottomLayoutGuide in constraints, but I’ve got a situation where it would be helpful to know whether the home indicator is used on the device.
I am not aware of any declares for this.
In my apps I test the device’s screen ratio. If height / width is greater or equal to 2, assume it is an iPhone X-series.
This does not work for iPads of course.
Reference : The Ultimate Guide To iPhone Resolutions
This might help objective c - Identify iPhones with Notch Programmatically - Stack Overflow
Thanks, Jeremie: I’ve been doing something similar myself.