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/HotlineView.swift | |
| parent | 471546236b8991f61d26c0e3aa8ee48b83b983af (diff) | |
Starting to get app views displaying data (roughly)
Diffstat (limited to 'Hotline/Views/HotlineView.swift')
| -rw-r--r-- | Hotline/Views/HotlineView.swift | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Hotline/Views/HotlineView.swift b/Hotline/Views/HotlineView.swift index 67ef067..fe67f79 100644 --- a/Hotline/Views/HotlineView.swift +++ b/Hotline/Views/HotlineView.swift @@ -1,13 +1,22 @@ import SwiftUI struct HotlineView: View { + @Environment(HotlineState.self) private var appState @Environment(HotlineClient.self) private var hotline @Environment(HotlineTrackerClient.self) private var tracker - @State private var isTrackerVisible = false + @State private var isTrackerVisible = true var body: some View { + @Bindable var config = appState + NavigationStack { + ServerView() + } + .sheet(isPresented: $config.agreementPresented) { + AgreementView(text: hotline.agreement!) + } + .sheet(isPresented: $config.trackerPresented) { TrackerView() } } |