mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Implement the flow for leaving a space. (#4568)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
import Compound
|
||||
import SwiftUI
|
||||
|
||||
extension View {
|
||||
@@ -55,6 +56,18 @@ extension View {
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
func backportSafeAreaBar(edge: VerticalEdge,
|
||||
alignment: HorizontalAlignment = .center,
|
||||
spacing: CGFloat? = nil,
|
||||
content: () -> some View) -> some View {
|
||||
if #available(iOS 26.0, *) {
|
||||
safeAreaBar(edge: edge, alignment: alignment, spacing: spacing, content: content)
|
||||
} else {
|
||||
safeAreaInset(edge: edge, alignment: alignment, spacing: spacing) { content().background(Color.compound.bgCanvasDefault.ignoresSafeArea()) }
|
||||
}
|
||||
}
|
||||
|
||||
@ViewBuilder func backportScrollEdgeEffectHidden() -> some View {
|
||||
if #available(iOS 26, *) {
|
||||
scrollEdgeEffectHidden()
|
||||
|
||||
Reference in New Issue
Block a user