Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.14 KB

MultiLineField.md

File metadata and controls

57 lines (37 loc) · 1.14 KB

MultiLineField

@available(iOS 9.0, *) public class MultiLineField: UITextView

Inheritance

UITextView, UITextViewDelegate

Nested Type Aliases

WillValueChangeHandler

public typealias WillValueChangeHandler = (_ sender: UITextView, _ newValue: String, _ input: String) -> Bool

DidValueChangeHandler

public typealias DidValueChangeHandler = (String) -> Void

Initializers

init(value:keyboardType:)

public init(value: String, keyboardType type: UIKeyboardType)

Methods

willInputUpdateHandler(_:)

@discardableResult public func willInputUpdateHandler(_ willInputUpdateHandler: @escaping WillValueChangeHandler) -> Self

inputHandler(_:)

@discardableResult public func inputHandler(_ inputHandler: @escaping DidValueChangeHandler) -> Self

textView(_:shouldChangeTextIn:replacementText:)

public func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool

textViewDidChange(_:)

public func textViewDidChange(_ textView: UITextView)