-
Without our ability to detect the iPhone X skin in the simulator, all of my custom code to nicely place UI elements around the top inset cannot be seen unless I see it on an actual device. So, is there a way to detect iPhone X skin from within our code?
-
is this code the definitive test if an actual device is an iPhone X? Or how should it be adjusted?
local f=(string.find( system.getInfo(“architectureInfo”),“iPhone10,3”)~= nil) or
(string.find(system.getInfo(“architectureInfo”),“iPhone10,6” )~= nil)
if f==true then
– true means this code runs if on an actual iPhone X+ device, including future phones with insets?
end