28 lines
677 B
Swift
28 lines
677 B
Swift
//
|
|
// Copyright 2020-2024 New Vector Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
// Please see LICENSE in the repository root for full details.
|
|
//
|
|
|
|
import UIKit
|
|
import Reusable
|
|
|
|
/// Table view cell with only a text field spanning the whole content view, insets can be configured via `textField.insets`
|
|
class TextFieldTableViewCell: UITableViewCell {
|
|
|
|
@IBOutlet weak var textField: InsettedTextField!
|
|
|
|
}
|
|
|
|
extension TextFieldTableViewCell: NibReusable {}
|
|
|
|
extension TextFieldTableViewCell: Themable {
|
|
|
|
func update(theme: Theme) {
|
|
theme.applyStyle(onTextField: textField)
|
|
textField.placeholderColor = theme.placeholderTextColor
|
|
}
|
|
|
|
}
|