TextViewTextMonitor

public class TextViewTextMonitor : BaseNotificationMonitor

A TextViewTextMonitor instance monitors a text view for changes to its text.

  • Encapsulates changes to the text of the text view.

    See more

    Declaration

    Swift

    public enum Event
  • Specifies which events to monitor.

    See more

    Declaration

    Swift

    public struct Options : OptionSet
  • Initializes a new TextViewTextMonitor.

    Declaration

    Swift

    public init(textView: UITextView,
                options: Options = .all,
                queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    textview

    The text view to monitor.

    options

    The options that specify which events to monitor. By default, all events are monitored.

    queue

    The operation queue on which the handler executes. By default, the main operation queue is used.

    handler

    The handler to call when the text of the text view changes.

  • The text view being monitored.

    Declaration

    Swift

    public let textView: UITextView
  • Declaration

    Swift

    public override func addNotificationObservers()