The ToolbarSpacer split into separate circles was the wrong read — with the inline-large title row in place, the expected header is the single grouped pill (the system default for adjacent trailing items). Dropped the spacer and the availability fork; the two trailing items now share one pill next to the title. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -110,16 +110,9 @@ struct ContentView: View {
|
|||||||
#endif
|
#endif
|
||||||
.toolbar {
|
.toolbar {
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
// Each action gets its own full-size glass circle (system-app style)
|
// Adjacent trailing items share one glass pill (the system default).
|
||||||
// instead of sharing one compact pill.
|
|
||||||
if #available(iOS 26.0, *) {
|
|
||||||
ToolbarItem(placement: .topBarTrailing) { settingsButton }
|
ToolbarItem(placement: .topBarTrailing) { settingsButton }
|
||||||
ToolbarSpacer(.fixed, placement: .topBarTrailing)
|
|
||||||
ToolbarItem(placement: .topBarTrailing) { addHostButton }
|
ToolbarItem(placement: .topBarTrailing) { addHostButton }
|
||||||
} else {
|
|
||||||
ToolbarItem { settingsButton }
|
|
||||||
ToolbarItem(placement: .primaryAction) { addHostButton }
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
ToolbarItem(placement: .primaryAction) {
|
ToolbarItem(placement: .primaryAction) {
|
||||||
addHostButton
|
addHostButton
|
||||||
|
|||||||
Reference in New Issue
Block a user