Как центрировать вертикально scrollview swiftui
/// Custom vertical scroll view with centered content vertically
///
struct VScrollView<Content>: View where Content: View {
@ViewBuilder let content: Content
var body: some View {
GeometryReader { geometry in
ScrollView(.vertical) {
content
.frame(width: geometry.size.width)
.frame(minHeight: geometry.size.height)
}
}
}
}
Quaint Quail