Skip to content

Commit e539c85

Browse files
make text input resistant to compression
1 parent 4b98a2a commit e539c85

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Sources/ComponentsKit/Components/TextInput/SUTextInput.swift

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,14 @@ public struct SUTextInput<FocusValue: Hashable>: View {
5555
TextEditor(text: self.$text)
5656
.contentMargins(self.model.contentPadding)
5757
.transparentScrollBackground()
58-
.frame(
59-
minHeight: self.model.minTextInputHeight,
60-
maxHeight: max(
61-
self.model.minTextInputHeight,
62-
min(
63-
self.model.maxTextInputHeight,
64-
self.textEditorPreferredHeight
65-
)
58+
.frame(minHeight: self.model.minTextInputHeight)
59+
.frame(height: max(
60+
self.model.minTextInputHeight,
61+
min(
62+
self.model.maxTextInputHeight,
63+
self.textEditorPreferredHeight
6664
)
67-
)
65+
))
6866
.lineSpacing(0)
6967
.font(self.model.preferredFont.font)
7068
.foregroundStyle(self.model.foregroundColor.color)

0 commit comments

Comments
 (0)