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)
.textContentType(.username)
.autocapitalization(.none)
.frame(height: 55)
.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)
.padding()
.background(Color.white)
.cornerRadius(8)
.padding(.horizontal)
.padding(.top, 25)
.foregroundStyle(.black)
SecureField("Password", text: $password)
.textContentType(.password)
.padding()
.background(Color.white)
.cornerRadius(8)
.padding(.horizontal)
.autocapitalization(.none)
.frame(height: 55)
.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)
.foregroundStyle(.black)
if doingNetworkShit {
ProgressView("Logging In")