We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a782821 commit 2fc6954Copy full SHA for 2fc6954
Sources/StreamChatSwiftUI/Utils/Common/InputTextView.swift
@@ -113,12 +113,7 @@ class InputTextView: UITextView {
113
114
open func setTextViewHeight() {
115
var heightToSet = minimumHeight
116
- var contentHeight = contentSize.height
117
- if contentHeight < TextSizeConstants.minThreshold
118
- && contentHeight != minimumHeight {
119
- contentSize.height = minimumHeight
120
- contentHeight = minimumHeight
121
- }
+ let contentHeight = sizeThatFits(bounds.size).height
122
123
if contentHeight <= minimumHeight {
124
heightToSet = minimumHeight
0 commit comments