mirror of
https://github.com/yattee/yattee.git
synced 2026-10-28 23:47:17 +00:00
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).
This commit is contained in:
@@ -342,6 +342,9 @@ extension View {
|
|||||||
MiniPlayerView(isTabAccessory: true)
|
MiniPlayerView(isTabAccessory: true)
|
||||||
}
|
}
|
||||||
.tabBarMinimizeBehavior(behavior)
|
.tabBarMinimizeBehavior(behavior)
|
||||||
|
// iOS 27 stopped focusing the search field when the search tab is
|
||||||
|
// selected; restore the iOS 26 behavior explicitly.
|
||||||
|
.tabViewSearchActivation(.searchTabSelection)
|
||||||
} else {
|
} else {
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user