From b1a176ba3da2c7cf815084f0f8109008fe763809 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Mon, 4 Dec 2023 14:31:12 -0800 Subject: Starting to get app views displaying data (roughly) --- Hotline/Views/HotlineView.swift | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Hotline/Views/HotlineView.swift') 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() } } -- cgit