I have a toolbar with user info (leading alignment) and some buttons (trailing):
view
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
VStack {
Text("...")
Text("...")
}
}
ToolbarItem(placement: .navigationBarTrailing) {
// buttons
}
}
But if the text is really long it takes up all the space and doesn't leave anything to the buttons. Like this:

What I need is to specify compression resistance for buttons, so they always have enough space and text just takes what's left. How do I do that?


