Signal-iOS/SignalUI/Views/OWSTextField.swift
Evan Hahn 173d8e793c
Swiftify OWSTextField
A pretty simple conversion. We had to mark it `open` so it could be
subclassed in other targets, but that was about the only difficult part.
2022-11-28 17:51:27 -06:00

24 lines
455 B
Swift

//
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
@objc
open class OWSTextField: UITextField {
public override init(frame: CGRect) {
super.init(frame: frame)
applyTheme()
}
public required init?(coder: NSCoder) {
super.init(coder: coder)
applyTheme()
}
private func applyTheme() {
keyboardAppearance = Theme.keyboardAppearance
}
}