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 = ""
var body: some View {
VStack {
SecureField("Password", text: $password) {
// do something
}
.textContentType(.newPassword)
SecureField("Confirm Password", text: $confirmPassword) {
// do something
}
.textContentType(.newPassword)
}
}
When I select the secureField it doesn't suggest a strong password.
Edit:
After further testing and comments below I have added an associated Domain and uploaded the following web credentials file to my webserver at example.com/.well-known/apple-app-site-association.txt:
{
"webcredentials": {
"apps": [ " TEAMID.com.example.AppName" ]
}
}
My capabilities currently are Associated Domains and Autofill Credential Provider set to YES.
When I try to use Strong Passwords I get the following error message:
Cannot show Automatic Strong Passwords for app bundleID: com.example.AppName due to error: Cannot identify the calling app's process. Check teamID and bundleID in your app's application-identifier entitlement
Not sure where to go from here.