Skip to content

Commit 86fe96a

Browse files
authored
Fix multiline label having opposite meangin (#96)
1 parent cc65d5b commit 86fe96a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NextGrowingTextView/NextGrowingInternalTextView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ internal class NextGrowingInternalTextView: UITextView {
8484
}
8585
set {
8686
if newValue {
87-
placeholderDisplayLabel.numberOfLines = 1
88-
placeholderDisplayLabel.adjustsFontSizeToFitWidth = true
89-
} else {
9087
placeholderDisplayLabel.numberOfLines = 0
9188
placeholderDisplayLabel.adjustsFontSizeToFitWidth = false
89+
} else {
90+
placeholderDisplayLabel.numberOfLines = 1
91+
placeholderDisplayLabel.adjustsFontSizeToFitWidth = true
9292
}
9393
updatePlaceholder()
9494
}

0 commit comments

Comments
 (0)