From f7372d647380428bbac1b8e9cc4b1014be08ff38 Mon Sep 17 00:00:00 2001 From: redstrate <54911369+redstrate@users.noreply.github.com> Date: Wed, 3 Jun 2020 21:54:12 -0400 Subject: [PATCH] Disable auto correction and capitalization for username field --- MobileFort/MobileFort/ContentView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MobileFort/MobileFort/ContentView.swift b/MobileFort/MobileFort/ContentView.swift index 3f5b29a..f4d32de 100644 --- a/MobileFort/MobileFort/ContentView.swift +++ b/MobileFort/MobileFort/ContentView.swift @@ -50,6 +50,8 @@ struct MainView: View { NavigationView { VStack { TextField("Username", text: $username) + .disableAutocorrection(true) + .autocapitalization(.none) NavigationLink(destination: ProfileView(username: username)) { Text("Show Feed") }