Skip to content

Commit

Permalink
Change style type
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Dec 12, 2024
1 parent f371365 commit b661399
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ extension LoginView {
.padding(.bottom)

TextField("Email", text: $email)
.textFieldStyle(SymbolTextField(symbolName: "person.crop.circle"))
.textFieldStyle(SymbolTextFieldStyle(symbolName: "person.crop.circle"))

TextField("Password", text: $password)
.textFieldStyle(SymbolTextField(symbolName: "lock.fill"))
.textFieldStyle(SymbolTextFieldStyle(symbolName: "lock.fill"))
.padding(.bottom)

Group {
Expand Down Expand Up @@ -136,7 +136,7 @@ extension LoginView {
}
}

private struct SymbolTextField: TextFieldStyle {
private struct SymbolTextFieldStyle: TextFieldStyle {
let symbolName: String

func _body(configuration: TextField<Self._Label>) -> some View {
Expand Down

0 comments on commit b661399

Please sign in to comment.