diff options
| author | Dustin Mierau <dustin@mierau.me> | 2023-12-04 14:31:12 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2023-12-04 14:31:12 -0800 |
| commit | b1a176ba3da2c7cf815084f0f8109008fe763809 (patch) | |
| tree | 5bbf52900d5dab9091216cc0f1e5dc84ad69cc9f /Hotline/Views/HotlineState.swift | |
| parent | 471546236b8991f61d26c0e3aa8ee48b83b983af (diff) | |
Starting to get app views displaying data (roughly)
Diffstat (limited to 'Hotline/Views/HotlineState.swift')
| -rw-r--r-- | Hotline/Views/HotlineState.swift | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Hotline/Views/HotlineState.swift b/Hotline/Views/HotlineState.swift new file mode 100644 index 0000000..9ae4940 --- /dev/null +++ b/Hotline/Views/HotlineState.swift @@ -0,0 +1,24 @@ +import Foundation +import SwiftUI + +@Observable +class HotlineState { + var agreementPresented = false + var trackerPresented = true + + func presentTracker() { + self.trackerPresented = true + } + + func dismissTracker() { + self.trackerPresented = false + } + + func presentAgreement() { + self.agreementPresented = true + } + + func dismissAgreement() { + self.agreementPresented = false + } +} |