diff options
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() } } |