The UIViewReservedRegion UIKit API is interesting on the Duo - you can query it ...

@jamesthomson@mastodon.social

The UIViewReservedRegion UIKit API is interesting on the Duo - you can query it for any areas in your views that you should stay away from.

I drew the results here, and the bars in the middle are the “division regions" which appear when the phone is partially folded, the others are “occlusion regions” where things like the dynamic island live.

Doesn't help me with the corners, safeAreaLayoutRegionWithCornerAdaptation isn’t giving me enough clearance, so I need to figure something else out…