Skip to content

Commit 2fc6954

Browse files
Fixed issue with resizing composer
1 parent a782821 commit 2fc6954

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Sources/StreamChatSwiftUI/Utils/Common/InputTextView.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,7 @@ class InputTextView: UITextView {
113113

114114
open func setTextViewHeight() {
115115
var heightToSet = minimumHeight
116-
var contentHeight = contentSize.height
117-
if contentHeight < TextSizeConstants.minThreshold
118-
&& contentHeight != minimumHeight {
119-
contentSize.height = minimumHeight
120-
contentHeight = minimumHeight
121-
}
116+
let contentHeight = sizeThatFits(bounds.size).height
122117

123118
if contentHeight <= minimumHeight {
124119
heightToSet = minimumHeight

0 commit comments

Comments
 (0)