---
title: "prepareInterface(for:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/ascredentialproviderviewcontroller/prepareinterface(for:)-69elg"
---

# prepareInterface(for:)

Prepares the interface to display a prompt to save a password credential.

## Declaration

```swift
func prepareInterface(for savePasswordRequest: ASSavePasswordRequest)
```

## Discussion

Discussion The system calls this method to tell your extension’s view controller to prepare to present a prompt to save a password credential. After calling this method, the system presents the view controller to the user. Upon success, call completeSavePasswordRequest(completionHandler:). Always provide a way for someone to cancel the operation from your view controller, for example, by including a Cancel button in the navigation bar. When someone cancels the operation, call ASCredentialProviderExtensionContext/cancelRequest(with:), using userCanceled.
