Skip to content

Commit

Permalink
Fixes #6
Browse files Browse the repository at this point in the history
Overlapped placeholder after set text.
  • Loading branch information
KennethTsang committed Mar 6, 2017
1 parent e43d1cf commit a251d37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GrowingTextView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "GrowingTextView"
s.version = "0.2.0"
s.version = "0.2.1"
s.summary = "UITextView on Swift3. Support of auto growing, placeholder and length limit."

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 6 additions & 0 deletions Pod/Classes/GrowingTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ import UIKit
didSet { setNeedsDisplay() }
}

override open var text: String! {
didSet {
setNeedsDisplay()
}
}

fileprivate weak var heightConstraint: NSLayoutConstraint?

// Initialize
Expand Down

0 comments on commit a251d37

Please sign in to comment.