27 lines
635 B
Swift
27 lines
635 B
Swift
//
|
|
// Copyright 2022 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import UIKit
|
|
|
|
open class OWSTextView: UITextView {
|
|
|
|
override init(frame: CGRect, textContainer: NSTextContainer?) {
|
|
super.init(frame: frame, textContainer: textContainer)
|
|
self.disableAiWritingTools()
|
|
applyTheme()
|
|
dataDetectorTypes = []
|
|
}
|
|
|
|
required public init?(coder: NSCoder) {
|
|
super.init(coder: coder)
|
|
self.disableAiWritingTools()
|
|
applyTheme()
|
|
dataDetectorTypes = []
|
|
}
|
|
|
|
private func applyTheme() {
|
|
keyboardAppearance = Theme.keyboardAppearance
|
|
}
|
|
}
|