Skip to content

Commit

Permalink
fix: add padding for SecureTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Sep 21, 2024
1 parent 7e0e6d1 commit a84d638
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ struct SecureTextField: View {
Image(systemName: showText ? "eye.slash.fill" : "eye.fill")
}
}
.padding(10)
.onChange(of: focus) { newValue in
// if the PasswordField is focused externally, then make sure the correct field is actually focused
if newValue != nil {
Expand Down

0 comments on commit a84d638

Please sign in to comment.