TM-SGNL-iOS/SignalUI/Views/OWSTextView.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

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
}
}