From f01735fc41b987c3db1006b8036ce58e16febd50 Mon Sep 17 00:00:00 2001 From: Rajdeep Kwatra Date: Sat, 16 Nov 2024 15:04:28 +1100 Subject: [PATCH] Expose writing tools via EditorView --- Proton/Sources/Swift/Editor/EditorView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Proton/Sources/Swift/Editor/EditorView.swift b/Proton/Sources/Swift/Editor/EditorView.swift index 44a3fd49..d29b5317 100644 --- a/Proton/Sources/Swift/Editor/EditorView.swift +++ b/Proton/Sources/Swift/Editor/EditorView.swift @@ -224,6 +224,12 @@ open class EditorView: UIView { set { richTextView.lineNumberFormatting = newValue } } + @available(iOSApplicationExtension 18.0, *) + public var writingToolsBehavior: UIWritingToolsBehavior { + get { richTextView.writingToolsBehavior } + set { richTextView.writingToolsBehavior = newValue } + } + public override var bounds: CGRect { didSet { guard oldValue != bounds else { return }