fix for nav bar showing an empty button in the media timeline

This commit is contained in:
Mauro Romito
2025-09-29 15:02:54 +02:00
committed by Mauro
parent f8a175ff35
commit e04a937eed
@@ -223,9 +223,13 @@ struct MediaEventsTimelineScreen: View {
}
}
ToolbarItem(placement: .primaryAction) {
// Reserve the space trailing space to match the back button.
CompoundIcon(\.search).hidden()
if #available(iOS 26, *) {
ToolbarSpacer()
} else {
ToolbarItem(placement: .primaryAction) {
// Reserve the space trailing space to match the back button.
CompoundIcon(\.search).hidden()
}
}
}