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 dd421c7 commit 3e5f06cCopy full SHA for 3e5f06c
Sources/ComponentsKit/TextInput/Models/TextInputVM.swift
@@ -149,7 +149,9 @@ extension TextInputVM {
149
}
150
151
private func height(forRows rows: Int) -> CGFloat {
152
- // TODO: [2] Show a warning if number of rows less than 1
+ if rows < 1 {
153
+ assertionFailure("Number of rows in TextInput must be greater than or equal to 1")
154
+ }
155
let numberOfRows = max(1, rows)
156
return self.preferredFont.uiFont.lineHeight * CGFloat(numberOfRows) + 2 * self.contentPadding
157
0 commit comments