ContactsSuggestionTextField

public final class ContactsSuggestionTextField : UITextField

Custom Textfield used for attaching a custom accessory view acting as a contacts picker to the keyboard’s input accessory view.

Note

NSContactsUsageDescription should be set in Info.plist of the app for the UITextfield subclass to work as this subclass accesses contacts data.
  • Block which is called when a user selects a contact in the accessory view, returns a string version of e-mail / phone number.

    Declaration

    Swift

    public var contactSelectedHandler: ((String) -> Void)?
  • Utitized to customise the accessory view’s appearance.

    Declaration

    Swift

    public func customize(block: (ContactCustomizationBuilder) -> Void)

    Parameters

    block

    customization closure.