Initial project setup - Phases 1-3 complete
This commit is contained in:
20
UI/SharedComponents/ToggleHeaderView.swift
Normal file
20
UI/SharedComponents/ToggleHeaderView.swift
Normal file
@@ -0,0 +1,20 @@
|
||||
import SwiftUI
|
||||
|
||||
struct ToggleHeaderView: View {
|
||||
let title: String
|
||||
let description: String
|
||||
@Binding var isEnabled: Bool
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 8) {
|
||||
Toggle(title, isOn: $isEnabled)
|
||||
.font(.headline)
|
||||
|
||||
Text(description)
|
||||
.font(.subheadline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.padding()
|
||||
.background(Color(.systemBackground))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user