Reformat code
This commit is contained in:
@@ -5,10 +5,10 @@ import SwiftUI
|
||||
|
||||
public extension View {
|
||||
@ViewBuilder
|
||||
func tabViewBottomAccessoryCompat<Content: View>(
|
||||
func tabViewBottomAccessoryCompat(
|
||||
isEnabled: Bool = true,
|
||||
useSystemAccessory: Bool = true,
|
||||
@ViewBuilder content: @escaping () -> Content
|
||||
@ViewBuilder content: @escaping () -> some View
|
||||
) -> some View {
|
||||
if isEnabled {
|
||||
if #available(iOS 26.0, *), useSystemAccessory {
|
||||
@@ -24,7 +24,6 @@ import SwiftUI
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private struct TabViewBottomAccessoryContainer<Content: View>: View {
|
||||
@@ -61,6 +60,5 @@ import SwiftUI
|
||||
static let horizontalPadding: CGFloat = 20
|
||||
static let topPadding: CGFloat = 8
|
||||
static let bottomPadding: CGFloat = 12
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -98,14 +98,14 @@ import SwiftUI
|
||||
}
|
||||
#else
|
||||
.sheet(isPresented: $showCardManagement, onDismiss: {
|
||||
Task { await cardConfiguration.reload() }
|
||||
}, content: {
|
||||
if #available(iOS 16.0, *) {
|
||||
CardManagementSheet().presentationDetents([.large]).presentationDragIndicator(.visible)
|
||||
} else {
|
||||
CardManagementSheet()
|
||||
}
|
||||
})
|
||||
Task { await cardConfiguration.reload() }
|
||||
}, content: {
|
||||
if #available(iOS 16.0, *) {
|
||||
CardManagementSheet().presentationDetents([.large]).presentationDragIndicator(.visible)
|
||||
} else {
|
||||
CardManagementSheet()
|
||||
}
|
||||
})
|
||||
#endif
|
||||
#endif
|
||||
.onAppear {
|
||||
|
||||
@@ -110,7 +110,7 @@ public struct CoreView: View {
|
||||
}
|
||||
}
|
||||
#if os(iOS)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user