You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
480 B
21 lines
480 B
//
|
|
// UITextViewFixed.swift
|
|
// elpha-ios
|
|
//
|
|
// Created by Dwayne Harris on 11/6/18.
|
|
// Copyright © 2018 Elpha. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
@IBDesignable class UITextViewFixed: UITextView {
|
|
override func layoutSubviews() {
|
|
super.layoutSubviews()
|
|
|
|
let inset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
|
|
|
contentInset = inset
|
|
textContainerInset = inset
|
|
textContainer.lineFragmentPadding = 0
|
|
}
|
|
}
|