23 lines
484 B
Swift
23 lines
484 B
Swift
import SwiftUI
|
|
|
|
public struct DashboardCardLine: View {
|
|
private let label: String
|
|
private let value: String
|
|
|
|
public init(_ label: String, _ value: String) {
|
|
self.label = label
|
|
self.value = value
|
|
}
|
|
|
|
public var body: some View {
|
|
HStack {
|
|
Text(label)
|
|
.font(.subheadline)
|
|
.foregroundColor(.secondary)
|
|
Spacer()
|
|
Text(value)
|
|
.font(.subheadline)
|
|
}
|
|
}
|
|
}
|