31 lines
532 B
Swift
31 lines
532 B
Swift
|
//
|
||
|
// 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))
|
||
|
}
|
||
|
}
|