<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialProviderViewController/prepareInterfaceForUserChoosingTextToInsert()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialProviderViewController(im)prepareInterfaceForUserChoosingTextToInsert"
  },
  "title" : "prepareInterfaceForUserChoosingTextToInsert()"
}
-->

# prepareInterfaceForUserChoosingTextToInsert()

Prepare the view controller to show a list of all insertable text with user selectable fields.

```
func prepareInterfaceForUserChoosingTextToInsert()
```

## Discussion

This method is called by the system to prepare the extension’s view controller to present a list of any insertable text with selectable fields.

In order for your extension to be presented in the list of options for text insertion request, your
extension needs to specify a true value for the Information Property List key `ProvidesTextToInsert`
under the `ASCredentialProviderExtensionCapabilities` dictionary.

```
Info.plist
├─ NSExtension
    ├─ NSExtensionAttributes
        ├─ ASCredentialProviderExtensionCapabilities
            ├─ ProvidesTextToInsert => true
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)