func textViewShouldReturn()

in Sources/TwitterTextEditor/TextView.swift [26:45]


    func textViewShouldReturn(_ textView: TextView) -> Bool

    /**
     Delegate callback when the text view changed base writing direction.

     - Parameters:
       - textView: A `TextView` that changed the base writing direction.
       - writingDirection: The current base writing direction.
       - range: A range of text where the base writing direction changed.
     */
    func textView(_ textView: TextView,
                  didChangeBaseWritingDirection writingDirection: NSWritingDirection,
                  forRange range: UITextRange)
}

/**
 A delegate for handling pasting and dropping that extends `UITextPasteDelegate` for `TextView`.
 */
@objc
protocol TextViewTextPasteDelegate: UITextPasteDelegate {