mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
24 lines
486 B
Swift
24 lines
486 B
Swift
// The MIT License (MIT)
|
||
//
|
||
// Copyright (c) 2020–2022 Alexander Grebenyuk (github.com/kean).
|
||
|
||
import SwiftUI
|
||
|
||
struct InfoRow: View {
|
||
let title: String
|
||
let details: String?
|
||
|
||
var body: some View {
|
||
HStack {
|
||
Text(title)
|
||
.lineLimit(1)
|
||
Spacer()
|
||
if let details = details {
|
||
Text(details)
|
||
.lineLimit(1)
|
||
.foregroundColor(.secondary)
|
||
}
|
||
}
|
||
}
|
||
}
|