Just provide a matching password in 'prepareInterfaceToProvideCredential'
Do not show the password list. This is not the task of this method.
This commit is contained in:
parent
bc2d9aa8e8
commit
4b05d5b2ae
1 changed files with 4 additions and 7 deletions
|
|
@ -60,14 +60,11 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
|
|||
}
|
||||
|
||||
override func prepareInterfaceToProvideCredential(for credentialIdentity: ASPasswordCredentialIdentity) {
|
||||
guard let identifier = credentialIdentity.recordIdentifier else {
|
||||
return
|
||||
passcodelock.presentPasscodeLockIfNeeded(self) {
|
||||
self.view.isHidden = true
|
||||
} after: { [unowned self] in
|
||||
self.credentialProvider.credentials(for: credentialIdentity)
|
||||
}
|
||||
passcodelock.presentPasscodeLockIfNeeded(self, after: { [unowned self] in
|
||||
self.credentialProvider.identifier = credentialIdentity.serviceIdentifier
|
||||
self.passwordsViewController.navigationItem.prompt = identifier
|
||||
self.passwordsViewController.showPasswordsWithSuggestion(matching: identifier)
|
||||
})
|
||||
}
|
||||
|
||||
@objc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue