mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-05-16 16:14:49 -04:00
32 lines
727 B
Swift
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)
|
|
}
|
|
}
|
|
}
|