Is there any API to move items out of a reserved region's way?

We can currently get the reserved region's sizes. But as far as I can see, we still need to manually move items out of the way of those regions. Or is there any API besides ArrangementView (e.g. for List items) that does this automatically for us?

Answered by Frameworks Engineer in 906509022

We can currently get the reserved region's sizes. But as far as I can see, we still need to manually move items out of the way of those regions.

That's correct.

Or is there any API besides ArrangementView (e.g. for List items) that does this automatically for us?

Some built-in container classes do this as well, like UISplitViewController. The more "automatic" API that handles responding to reserved regions for you is ArrangementView.

I'd recommend you watch the the "Strike a pose with adaptive layouts on iPhone Duo" as it goes over this in detail:

https://developer.apple.com/videos/play/tech-talks/111463/

Accepted Answer

We can currently get the reserved region's sizes. But as far as I can see, we still need to manually move items out of the way of those regions.

That's correct.

Or is there any API besides ArrangementView (e.g. for List items) that does this automatically for us?

Some built-in container classes do this as well, like UISplitViewController. The more "automatic" API that handles responding to reserved regions for you is ArrangementView.

I'd recommend you watch the the "Strike a pose with adaptive layouts on iPhone Duo" as it goes over this in detail:

https://developer.apple.com/videos/play/tech-talks/111463/

Is there any API to move items out of a reserved region's way?
 
 
Q