Files
Gaze/Gaze/Views/Components/SetupHeader.swift
2026-01-15 22:31:48 -05:00

35 lines
829 B
Swift

//
// SetupHeader.swift
// Gaze
//
// Created by Mike Freno on 1/15/26.
//
import SwiftUI
struct SetupHeader: View {
let icon: String
let title: String
let color: Color
var body: some View {
VStack(spacing: 16) {
Image(systemName: icon)
.font(.system(size: 60))
.foregroundColor(color)
Text(title)
.font(.system(size: 28, weight: .bold))
}
.padding(.top, 20)
.padding(.bottom, 30)
}
}
#Preview("SetupHeader") {
VStack(spacing: 40) {
SetupHeader(icon: "eye.fill", title: "Look Away Reminder", color: .accentColor)
SetupHeader(icon: "eye.circle", title: "Blink Reminder", color: .green)
SetupHeader(icon: "figure.stand", title: "Posture Reminder", color: .orange)
}
}