Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gngrwzrd/91fb978f4d722578574e3dcef9601028 to your computer and use it in GitHub Desktop.
Save gngrwzrd/91fb978f4d722578574e3dcef9601028 to your computer and use it in GitHub Desktop.
///Options that your UITextFieldDelegate or UITextViewDelegate can
///implement to provide some return key type options to the field navigator.
protocol FormFieldNavigationReturnKeyTypeOptions {
///Whether or not the field navigator can set return type.
var fieldNavigatorCanSetReturnKeyType:Bool { get set }
///The return key type that the field navigator should set.
var fieldNavigatorReturnKeyType:UIReturnKeyType? { get set }
///The return key type that the field navigator should set when the
///input is last.
var fieldNavigatorReturnKeyTypeWhenLast:UIReturnKeyType? { get set }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment