Caps-iOS/Caps/Views/SettingsStatisticRow.swift

31 lines
532 B
Swift
Raw Normal View History

2022-06-10 21:20:49 +02:00
//
// SettingsStatisticRow.swift
// Caps
//
// Created by CH on 26.05.22.
//
import SwiftUI
struct SettingsStatisticRow: View {
let label: String
let value: String
var body: some View {
HStack {
Text(label)
Spacer()
Text(value)
}
}
}
struct SettingsStatisticRow_Previews: PreviewProvider {
static var previews: some View {
SettingsStatisticRow(label: "Label", value: "Value")
.previewLayout(.fixed(width: 375, height: 40))
}
}