File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 88
99Pod ::Spec . new do |s |
1010 s . name = "GrowingTextView"
11- s . version = "0.5.1 "
11+ s . version = "0.5.2 "
1212 s . summary = "UITextView on Swift 3 and Swift 4. Support auto growing, placeholder and length limit."
1313
1414# This description is used to generate tags and improve search results.
Original file line number Diff line number Diff line change @@ -135,8 +135,9 @@ open class GrowingTextView: UITextView {
135135 // Workaround to for incorrect scroll position on Swift4
136136 self . heightConstraint!. constant += 0.0000001
137137 self . isGrowing = false
138+ } else {
139+ self . scrollRangeToVisible ( NSMakeRange ( - 1 , 0 ) ) // Scroll to bottom
138140 }
139- self . scrollRangeToVisible ( NSMakeRange ( - 1 , 0 ) ) // Scroll to bottom
140141 } else {
141142 self . scrollRangeToVisible ( NSMakeRange ( 0 , 0 ) ) // Scroll to top
142143 }
You can’t perform that action at this time.
0 commit comments