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/AgreementView.swift | |
| parent | 471546236b8991f61d26c0e3aa8ee48b83b983af (diff) | |
Starting to get app views displaying data (roughly)
Diffstat (limited to 'Hotline/Views/AgreementView.swift')
| -rw-r--r-- | Hotline/Views/AgreementView.swift | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Hotline/Views/AgreementView.swift b/Hotline/Views/AgreementView.swift index c61c9d7..39730ce 100644 --- a/Hotline/Views/AgreementView.swift +++ b/Hotline/Views/AgreementView.swift @@ -1,11 +1,13 @@ import SwiftUI struct AgreementView: View { - @Environment(\.dismiss) var dismiss + @Environment(HotlineState.self) private var appState let text: String var body: some View { +// @Bindable var config = appState + VStack(alignment: .leading) { ScrollView { VStack(alignment: .leading) { @@ -18,11 +20,14 @@ struct AgreementView: View { } Button("OK") { print("DONE") + appState.dismissAgreement() } .bold() .padding(EdgeInsets(top: 16, leading: 24, bottom: 16, trailing: 24)) .frame(maxWidth: .infinity) } + .presentationDetents([.fraction(0.6)]) + .presentationDragIndicator(.visible) } } |