mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +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()
|
.backportTabBarMinimizeBehaviorOnScrollDown()
|
||||||
|
.backportTabViewSearchActivationOnSearchTabSelection()
|
||||||
.introspect(.tabView, on: .supportedVersions, customize: configureAppearance)
|
.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
|
@ViewBuilder
|
||||||
func backportSafeAreaBar(edge: VerticalEdge,
|
func backportSafeAreaBar(edge: VerticalEdge,
|
||||||
alignment: HorizontalAlignment = .center,
|
alignment: HorizontalAlignment = .center,
|
||||||
|
|||||||
Reference in New Issue
Block a user