Files
2022-08-06 21:44:59 -04:00

24 lines
486 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// The MIT License (MIT)
//
// Copyright (c) 20202022 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)
}
}
}
}