Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alfogrillo committed Oct 27, 2023
1 parent 526467c commit b76d69c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b76d69c

Please sign in to comment.