Classes

The following classes are available globally.

Special Text Field Class That Displays An AutoComplete Table, As You Type

  • This class extends the standard UITextField widget to provide a realtime “dropdown” menu of possible autocomplete choices (in a table and modal-style screen). The dropdown is always displayed below the text field, and is attached to the main window root view (so it appears over everything else). It is not modal. If the user selects a value from the table, that entire string is entered into the text field, and the dropdown is dismissed. The dropdown is dismissed whenever focus leaves the text item. When focus is set to the text field, the current text is evaluated, and a dropdown may appear, if required. If the autofill functionality is not available, or is explicitly deactivated, the text item behaves exactly like a standard UITextField. NB: When assigning a delegate, the caller needs to be a UITextFieldDelegate, even if they are not using any of the delegate functionality. This is because we “piggyback” on the built-in delegate. This also means that the delegate must be an NSObject.

    See more

    Declaration

    Swift

    @IBDesignable
    open class RVS_AutofillTextField : UITextField
    extension RVS_AutofillTextField: UITableViewDataSource
    extension RVS_AutofillTextField: UITableViewDelegate

One Element of the Data Source Array

  • This is what the protocol needs to provide to the widget. It is one element of an Array. The purpose of this type, is to allow data context to be attached to a value, and to allow the Array type to be extended.

    See more

    Declaration

    Swift

    public class RVS_AutofillTextFieldDataSourceType
    extension RVS_AutofillTextFieldDataSourceType: CustomDebugStringConvertible
    extension RVS_AutofillTextFieldDataSourceType: CustomStringConvertible
    extension RVS_AutofillTextFieldDataSourceType: Equatable
    extension RVS_AutofillTextFieldDataSourceType: Comparable