safeAreaBar and the Fold

When using safeAreaBar, what’s the best way to keep its content on just one side of the fold in book mode? Would you recommend using the .division reserved region to adjust the layout manually, or is there a more built-in SwiftUI approach?

Hello, could you please share more about the specific behavior you are trying to implement? That may influence our recommendations. Thank you!

For example:

I did try this:

ArrangementView {
// View 1
     .safeAreaBar(edge: .bottom) {
          Button("Continue") { // }
     }
} secondary: {
// View 2
}

Or this(which somewhat works)

ArrangementView {
// View 1
} secondary: {
// View 2
     .safeAreaBar(edge: .bottom) {
          Button("Continue") { // }
     }
}

But ideally there is a way to set something like .followPrimaryVIew() or whatever, just wondering how you would do it 😊

Or even better: .safeAreaBottom would simply put in the safeArea of the primary view by default when partly folded

safeAreaBar and the Fold
 
 
Q