mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
29 lines
539 B
Swift
29 lines
539 B
Swift
import SwiftUI
|
|
|
|
#if os(iOS) || os(macOS) || os(visionOS)
|
|
|
|
import SwiftUI
|
|
|
|
struct SectionHeaderView: View {
|
|
var systemImage: String?
|
|
let title: String
|
|
|
|
var body: some View {
|
|
HStack {
|
|
if let systemImage = systemImage {
|
|
Image(systemName: systemImage)
|
|
}
|
|
Text(title)
|
|
.lineLimit(1)
|
|
.font(.headline)
|
|
.foregroundColor(.secondary)
|
|
Spacer()
|
|
}
|
|
#if os(macOS)
|
|
.padding(.bottom, 8)
|
|
#endif
|
|
}
|
|
}
|
|
|
|
#endif
|