Can't see what you type in on login screen in dark mode

This commit is contained in:
Trey t
2025-04-23 11:52:30 -05:00
parent 8cafb39a65
commit 3a23e6a223

View File

@@ -24,22 +24,21 @@ struct LoginView: View {
TextField("Email", text: $email) TextField("Email", text: $email)
.textContentType(.username) .textContentType(.username)
.autocapitalization(.none) .autocapitalization(.none)
.frame(height: 55) .padding()
.textFieldStyle(PlainTextFieldStyle()) .background(Color.white)
.padding([.horizontal], 4) .cornerRadius(8)
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 255/255, green: 255/255, blue: 255/255, alpha: 1))) .padding(.horizontal)
.cornerRadius(Constants.buttonRadius)
.padding(.top, 25) .padding(.top, 25)
.foregroundStyle(.black)
SecureField("Password", text: $password) SecureField("Password", text: $password)
.textContentType(.password) .textContentType(.password)
.padding()
.background(Color.white)
.cornerRadius(8)
.padding(.horizontal)
.autocapitalization(.none) .autocapitalization(.none)
.frame(height: 55) .foregroundStyle(.black)
.textFieldStyle(PlainTextFieldStyle())
.padding([.horizontal], 4)
.overlay(RoundedRectangle(cornerRadius: 16).stroke(Color(uiColor: .clear))).background(Color(uiColor: .init(red: 255/255, green: 255/255, blue: 255/255, alpha: 1)))
.cornerRadius(Constants.buttonRadius)
if doingNetworkShit { if doingNetworkShit {
ProgressView("Logging In") ProgressView("Logging In")