1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-15 23:00:32 +05:30
yattee/Apple TV/OptionRowView.swift

20 lines
396 B
Swift
Raw Normal View History

2021-07-08 04:09:18 +05:30
import SwiftUI
struct OptionRowView<Content: View>: View {
let label: String
let controlView: Content
init(_ label: String, @ViewBuilder controlView: @escaping () -> Content) {
self.label = label
self.controlView = controlView()
}
var body: some View {
HStack {
Text(label)
Spacer()
controlView
}
}
}