Skip to content

Commit

Permalink
Merge pull request #13 from hstdt/main
Browse files Browse the repository at this point in the history
Support multistage text input
  • Loading branch information
kyle-n authored Dec 4, 2020
2 parents 2a97484 + 311f16f commit bb10b61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/HighlightedTextEditor/HighlightedTextEditor.iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public struct HighlightedTextEditor: UIViewRepresentable, HighlightingTextEditor
}

public func textViewDidChange(_ textView: UITextView) {

// For Multistage Text Input
guard textView.markedTextRange == nil else { return }

self.parent.text = textView.text
selectedTextRange = textView.selectedTextRange
}
Expand Down

0 comments on commit bb10b61

Please sign in to comment.