Add public initializer with frame and textContainer for ExpandableTextView (#193)

* Expose public initializer with frame and textContainer for ExpandableTextView

* add override keyword
This commit is contained in:
Zhao Wang 2016-08-07 13:36:48 -07:00 committed by Diego Sánchez
parent a541e5b9f3
commit 9f344f39a6
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ public class ExpandableTextView: UITextView {
self.commonInit()
}
override public init(frame: CGRect, textContainer: NSTextContainer?) {
super.init(frame: frame, textContainer: textContainer)
self.commonInit()
}
override public var contentSize: CGSize {
didSet {
self.invalidateIntrinsicContentSize()