aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views/AgreementView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Hotline/Views/AgreementView.swift')
-rw-r--r--Hotline/Views/AgreementView.swift40
1 files changed, 0 insertions, 40 deletions
diff --git a/Hotline/Views/AgreementView.swift b/Hotline/Views/AgreementView.swift
deleted file mode 100644
index 39730ce..0000000
--- a/Hotline/Views/AgreementView.swift
+++ /dev/null
@@ -1,40 +0,0 @@
-import SwiftUI
-
-struct AgreementView: View {
- @Environment(HotlineState.self) private var appState
-
- let text: String
-
- var body: some View {
-// @Bindable var config = appState
-
- VStack(alignment: .leading) {
- ScrollView {
- VStack(alignment: .leading) {
- Text(text)
- .fontDesign(.monospaced)
- .padding()
- .dynamicTypeSize(.small)
- .textSelection(.enabled)
- }
- }
- 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)
- }
-}
-
-#Preview {
- AgreementView(text: """
-Welcome!
-
-Take it on real one.
-""")
-}