Fix UITextView inner margin to zero
This commit is contained in:
parent
8424cedbe6
commit
85ea29e8f6
1 changed files with 2 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ class TextViewTableViewCell: ContentTableViewCell {
|
|||
@IBOutlet weak var contentTextView: UITextView!
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
self.contentTextView.textContainer.lineFragmentPadding = 0
|
||||
self.contentTextView.textContainerInset = .zero
|
||||
}
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue