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..3ba62ca07 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:)` must return `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..8e21d4a0e 100644 --- a/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift +++ b/platforms/ios/lib/WysiwygComposer/Sources/WysiwygComposer/Components/WysiwygComposerView/WysiwygComposerViewModelProtocol.swift @@ -28,8 +28,7 @@ public protocol WysiwygComposerViewModelProtocol: AnyObject { 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. + /// When set to `false`, `replaceText(range:,replacementText:)` must return `false` as well. var shouldReplaceText: Bool { get set } /// Replace text in the model.