From 8a8f3a6000433e9d027bf69a3a2b4b25e8143115 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Wed, 30 Sep 2026 23:57:22 +0200 Subject: [PATCH] Restore search field activation when selecting the search tab on iOS 27 iOS 27 changed the default TabSearchActivation so a role: .search tab no longer focuses the search field on selection. Opt back into the iOS 26 behavior with .tabViewSearchActivation(.searchTabSelection). --- Yattee/Views/Navigation/UnifiedTabView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Yattee/Views/Navigation/UnifiedTabView.swift b/Yattee/Views/Navigation/UnifiedTabView.swift index 7312ecc5..9800736d 100644 --- a/Yattee/Views/Navigation/UnifiedTabView.swift +++ b/Yattee/Views/Navigation/UnifiedTabView.swift @@ -342,6 +342,9 @@ extension View { MiniPlayerView(isTabAccessory: true) } .tabBarMinimizeBehavior(behavior) + // iOS 27 stopped focusing the search field when the search tab is + // selected; restore the iOS 26 behavior explicitly. + .tabViewSearchActivation(.searchTabSelection) } else { self }