Skip to content

Commit

Permalink
Setting selectedRange updates caret position (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Mar 17, 2024
1 parent ed2f83f commit 78983bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Runestone/TextView/Core/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ open class TextView: UIScrollView {
}
}
set {
textInputView.selectedRange = newValue
textInputView.selectedTextRange = IndexedRange(newValue)
}
}
/// The current selection range of the text view as a UITextRange.
Expand Down

0 comments on commit 78983bc

Please sign in to comment.