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