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:
parent
a541e5b9f3
commit
9f344f39a6
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue