mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
Fix the search tab's layout now that its built against os27
This commit is contained in:
@@ -409,6 +409,7 @@ private struct NavigationTabCoordinatorView<Tag: Hashable>: View {
|
||||
}
|
||||
}
|
||||
.backportTabBarMinimizeBehaviorOnScrollDown()
|
||||
.backportTabViewSearchActivationOnSearchTabSelection()
|
||||
.introspect(.tabView, on: .supportedVersions, customize: configureAppearance)
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,15 @@ extension View {
|
||||
}
|
||||
}
|
||||
|
||||
/// iOS 27 only detaches the search tab and docks its field at the bottom when selecting the tab activates search.
|
||||
@ViewBuilder func backportTabViewSearchActivationOnSearchTabSelection() -> some View {
|
||||
if #available(iOS 27.0, *) {
|
||||
tabViewSearchActivation(.searchTabSelection)
|
||||
} else {
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
func backportSafeAreaBar(edge: VerticalEdge,
|
||||
alignment: HorizontalAlignment = .center,
|
||||
|
||||
Reference in New Issue
Block a user