Skip to content

Commit

Permalink
Added ablity to add interaction to Editor (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeep authored Jun 20, 2024
1 parent 393b5ff commit fc71514
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Proton/Sources/Swift/Editor/EditorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,12 @@ open class EditorView: UIView {
return richTextView.sizeThatFits(size)
}

/// Adds an interaction to the view.
/// - Parameter interaction: The interaction object to add to the view.
open override func addInteraction(_ interaction: UIInteraction) {
richTextView.addInteraction(interaction)
}

/// Asks UIKit to make this object the first responder in its window.
/// - Returns:
/// `true` if this object is now the first-responder or `false` if it is not.
Expand Down

0 comments on commit fc71514

Please sign in to comment.