From cdbf82f553c649593c067fe71dbb5267b43f69bc Mon Sep 17 00:00:00 2001 From: Alfonso Grillo Date: Fri, 27 Oct 2023 17:20:11 +0200 Subject: [PATCH] Update docs --- .../WysiwygComposerView/WysiwygComposerViewModel.swift | 3 +-- .../WysiwygComposerViewModelProtocol.swift | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModel.swift b/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModel.swift index 46bc0ce30..ab120d23d 100644 --- a/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModel.swift +++ b/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModel.swift @@ -65,8 +65,7 @@ public class WysiwygComposerViewModel: WysiwygComposerViewModelProtocol, Observa } /// Whether the composer should take any keyboard input. - /// When set to `false`, the underlying text won't change. - /// Otherwise `replaceText(range:,replacementText:)` is evaluated. + /// When set to `false`, `replaceText(range:,replacementText:)` returns `false` as well. public var shouldReplaceText = true /// Published value for the composer plain text mode. diff --git a/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift b/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift index e15091255..0f435eef4 100644 --- a/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift +++ b/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift @@ -27,11 +27,6 @@ public protocol WysiwygComposerViewModelProtocol: AnyObject { /// Update the composer compressed required height if it has changed. func updateCompressedHeightIfNeeded() - /// Whether the composer should take any keyboard input. - /// When set to `false`, the underlying text won't change. - /// Otherwise `replaceText(range:,replacementText:)` is evaluated. - var shouldReplaceText: Bool { get set } - /// Replace text in the model. /// /// - Parameters: