Skip to content

Commit

Permalink
fix bug where tapping TextAreaRow always puts the cursor at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
littlebobert committed May 11, 2023
1 parent 2c46ae3 commit fe8dfa7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/Rows/TextAreaRow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ open class _TextAreaCell<T> : Cell<T>, UITextViewDelegate, AreaCell where T: Equ

super.init(style: style, reuseIdentifier: reuseIdentifier)

let textView = UITextView()
let textView: UITextView
if #available(iOS 16, *) {
textView = UITextView(usingTextLayoutManager: false)
} else {
textView = UITextView()
}
self.textView = textView
textView.translatesAutoresizingMaskIntoConstraints = false
textView.keyboardType = .default
Expand Down

0 comments on commit fe8dfa7

Please sign in to comment.