From c0068f11c51bb587c16dfacb73629b3c6fb67fc8 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 6 Dec 2023 13:52:20 -0800 Subject: Further work on UI organization --- Hotline/Views/AgreementView.swift | 40 --------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 Hotline/Views/AgreementView.swift (limited to 'Hotline/Views/AgreementView.swift') 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. -""") -} -- cgit