Files
Pulse/Sources/PulseUI/Views/SectionHeaderView.swift
2024-07-14 08:55:21 -04:00

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