31 lines
629 B
Swift
31 lines
629 B
Swift
//
|
|
// LinkTextView.swift
|
|
// Tusker
|
|
//
|
|
// Created by Shadowfacts on 1/18/20.
|
|
// Copyright © 2020 Shadowfacts. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class LinkTextView: UITextView {
|
|
|
|
override init(frame: CGRect, textContainer: NSTextContainer?) {
|
|
super.init(frame: frame, textContainer: textContainer)
|
|
commonInit()
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
commonInit()
|
|
}
|
|
|
|
private func commonInit() {
|
|
delaysContentTouches = false
|
|
isScrollEnabled = false
|
|
isEditable = false
|
|
isUserInteractionEnabled = true
|
|
}
|
|
|
|
}
|