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 authored May 12, 2023
1 parent 2c46ae3 commit c255e4b
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 c255e4b

Please sign in to comment.