17 lines
370 B
Swift
17 lines
370 B
Swift
import SwiftUI
|
|
|
|
struct SectionHeader: View {
|
|
let title: String
|
|
let icon: String
|
|
|
|
var body: some View {
|
|
HStack(spacing: 8) {
|
|
Image(systemName: icon)
|
|
.font(.title2)
|
|
.foregroundColor(.accentColor)
|
|
Text(title)
|
|
.font(.title2)
|
|
.fontWeight(.bold)
|
|
}
|
|
}
|
|
} |