How does Dragon Crashes Sample Safe Area Work?

I’m not talking about the obvious script “SafeAreaBorder.cs”. That onen is commented out.
I’ve done the following setup in the sample project and fresh project with same version.
Create scene, add UI Document to an object and create new panel setting & visual element that is flex single color. The result below.

In the sample the object respects the safe area even though the script isn’t used. I’ve tried clearing library, creating a new sample project, but same thing happens. So what is going on? It was kind of obvious something was amiss when the Border Color & Multiplier of SafeAreaBorder.cs didn’t do anything to the view.

Hi!

Are you referring to the gray cutout at the top? If so, it doesn’t seem like it’s something setup by UITK. In that very project, every scene that you create will get that cutout in the simulator. You may try asking in the Android/iOS channel and see if they know of a config that can turn this behaviour on by default.

As for the SafeAreaBorder.cs, it might be a bug. The reason for the border color and multiplier not visibly taking effect, is because the result of the computed value is negative which means the margins is applied outwards.