From e04a937eedc9f200c827c59eed766fe3532b8a54 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Mon, 29 Sep 2025 15:02:54 +0200 Subject: [PATCH] fix for nav bar showing an empty button in the media timeline --- .../View/MediaEventsTimelineScreen.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ElementX/Sources/Screens/MediaEventsTimelineScreen/View/MediaEventsTimelineScreen.swift b/ElementX/Sources/Screens/MediaEventsTimelineScreen/View/MediaEventsTimelineScreen.swift index 2dc2d2083..11831dbe6 100644 --- a/ElementX/Sources/Screens/MediaEventsTimelineScreen/View/MediaEventsTimelineScreen.swift +++ b/ElementX/Sources/Screens/MediaEventsTimelineScreen/View/MediaEventsTimelineScreen.swift @@ -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() + } } }