Questions tagged [securefield]
9 questions
5
votes
2 answers
.newPassword for SecureField to choose Strong Password not working using SwiftUI and iOS14
I am trying to use the Strong Password suggestion functionality in a SecureField using SwiftUI but it isn't working. Just wondering if I'm doing something wrong or it's a bug.
@State var password: String = ""
@State var confirmPassword: String =…

alionthego
- 8,508
- 9
- 52
- 125
3
votes
0 answers
SecureField in SwiftUI resets its value if I go to another field and retype
I have a Group of a SecureField and a TextField in order to simulate the ability to toggle the password from hidden to showing. The TextField works as intended even if I go to another field or anywhere on the view so it makes me think that my…

kleo
- 31
- 2
2
votes
2 answers
toggle isSecureTextEntry in SwiftUI for SecureField
I wanted to implement feature to show and hide the password in SecureField.
below is code for SecureField
I had added button which will get detected to show and hide the text in SecureField.
But swiftUI does not have feature similar to…

sweta dodiya
- 49
- 1
- 5
1
vote
3 answers
SwiftUI View with TextField and SecureField buggy on macOS (shows strange view)
On macOS I need a SwiftUI form that has a TextField (for email) and then a SecureField (for password). Seems simple, but when I start typing in the TextField a strange view appears below the field:
Some observations:
This does not happen if the…

rene
- 1,975
- 21
- 33
1
vote
1 answer
Swift: TextField clearing itself after isSecureTextEntry set
I'm having some difficulty implementing a custom textfield in SwiftUI. I'm trying to create a password field, however I'm having to dip into UIKit because I need to react when the field is focused, and (unlike with the standard TextField in SwiftUI)…

DevB1
- 1,235
- 3
- 17
- 43
1
vote
1 answer
SwiftUI - Detect taps in a disabled SecureField?
I am writing an iOS app using SwiftUI. As part of the data presented, I need to have a password field with a show/hide button that toggles between hidden/visible. To do this, I'm using a combination of SwiftUI's SecureField and TextField controls.…

Shadowman
- 11,150
- 19
- 100
- 198
0
votes
0 answers
iOS TextField Strong password autofill, even if we don't want it
I am using two textField password & confirmPassword
My iCloud Keychain is turned On.
@State private var email: String = ""
@State private var password: String = ""
@State private var passwordConfirmation: String = ""
var body: some…

Amit
- 556
- 1
- 7
- 24
0
votes
0 answers
SecureField not calling onSubmit when Password system popover is presented
The onSubmit is not called on Enter if the passwords system popover is presented
SecureField("Password", text: $password)
.textContentType(.password)
.textFieldStyle(FTextFieldStyle())
.focused($focusedField, equals: .password)
…

Peter Lapisu
- 19,915
- 16
- 123
- 179
0
votes
1 answer
Type '()' cannot conform to 'View' on SWIFT
I'm getting this error when I try to validate password field under a SecureTextField field.
any thoughts? I did similar with an TextField for Email validation and works just fine! my issue is with the password validation "If"
HStack…

Jorge Lopez
- 3
- 3