Mist/Mist/Views/Activity/ActivitySectionHeaderView.swift
2023-06-13 16:57:15 +10:00

32 lines
727 B
Swift

//
// ActivitySectionHeaderView.swift
// Mist
//
// Created by Nindi Gill on 25/6/2022.
//
import SwiftUI
struct ActivitySectionHeaderView: View {
var section: MistTaskSection
private let length: CGFloat = 24
var body: some View {
HStack {
Text(section.description)
.font(.title2)
.foregroundColor(.secondary)
Spacer()
ScaledImage(name: section.image, length: length)
}
.padding()
}
}
struct ActivitySectionHeaderView_Previews: PreviewProvider {
static var previews: some View {
ForEach(MistTaskSection.allCases) { section in
ActivitySectionHeaderView(section: section)
}
}
}