Files
bundesmessenger-ios/Riot/Modules/Common/Cells/TextFieldTableViewCell.swift
T
2025-01-23 12:19:12 +01:00

28 lines
716 B
Swift

//
// Copyright 2020-2024 New Vector Ltd.
//
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
// Please see LICENSE files 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
}
}