Contents

prepareInterfaceForUserChoosingTextToInsert()

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

Declaration

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