fuselibs
fuselibs copied to clipboard
SystemUI.DeviceMargins for Android
Currently DeviceMargins
just reports float4(0)
for Android. I suspect there is someway to get at the unsafe areas on devices that have margins.
I don't have any devices with bevels to play around with this, thus couldn't implement it. I've marked the window().deviceMargins
as experimental for now. It works on iOS using safeAreaInsets
.
This seems ugly to do on android. For example https://gist.github.com/hamakn/8939eb68a920a6d7a498
@mortoray I can test for you