The only work solution for me now is to remove Spacer in code above, see below:
.toolbar {
// header
ToolbarItemGroup {
Button {
dismiss()
} label: {
Image(systemName: "chevron.backward")
}
.background(Color.yellow)
Text(LocalizedStringKey("title"))
.font(
.system(size: 17)
.weight(.semibold)
)
.background(Color.yellow)
Button {
print("click")
} label: {
Text("Click")
}
.background(Color.yellow)
}
}
But the elements will no surprisingly lie in the corner.
Post
Replies
Boosts
Views
Activity
Hi @DTS Engineer thanks this helps!
Do you know why not using inline mode would result in the blank field? Is there some invisible spacing between toolbar and the first sub-element it modifies?