From 5a498c7ebf49002f68de6b9552560ac9b25644fc Mon Sep 17 00:00:00 2001 From: Dongkyu Kim Date: Mon, 30 Oct 2023 00:43:36 +0900 Subject: [PATCH] Remove `TextField` from `RootView` --- Demo/iOS/Views/RootView.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Demo/iOS/Views/RootView.swift b/Demo/iOS/Views/RootView.swift index baba374..d11df42 100644 --- a/Demo/iOS/Views/RootView.swift +++ b/Demo/iOS/Views/RootView.swift @@ -16,9 +16,7 @@ struct RootView: View { @State private var showingWebAuthenticationSessionOptionsForm = false @State private var webAuthenticationSessionCallbackURL: URL? = nil - - @State private var text = "" - + var body: some View { NavigationView { List { @@ -76,7 +74,7 @@ struct RootView: View { } } - TextField("Text field", text: $text) + TextField("Text field", text: .constant("Hello")) Section(header: Text("NaiveSafariView" + "\n" + "(Just for comparison. Do not use in practice.)").textCase(nil)) { Button(action: { showingNaiveSafariViewSheet = true }) {