save(password:for:title:)
Save or update a password credential to the user’s preferred password manager in the system.
Declaration
@MainActor func save(password: ASPasswordCredential, for scope: ASAutoFillURLScope, title: String? = nil) async throwsParameters
- password:
The password credential to save.
- scope:
The scope to associate this credential with.
- title:
A custom title that credential managers may use to name the account.
Discussion
This functionality is equivalent to the saving behavior that occurs when submitting a form with a password field. The credential will be associated with the scope.