mirror of
https://github.com/yattee/yattee.git
synced 2024-12-14 22:30:32 +05:30
20 lines
416 B
Swift
20 lines
416 B
Swift
import SwiftUI
|
|
|
|
struct CoverSectionRowView<Content: View>: View {
|
|
let label: String?
|
|
let controlView: Content
|
|
|
|
init(_ label: String? = nil, @ViewBuilder controlView: @escaping () -> Content) {
|
|
self.label = label
|
|
self.controlView = controlView()
|
|
}
|
|
|
|
var body: some View {
|
|
HStack {
|
|
Text(label ?? "")
|
|
Spacer()
|
|
controlView
|
|
}
|
|
}
|
|
}
|