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

31 lines
705 B
Swift

//
// Copyright 2021-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 Foundation
import Reusable
class TitleHeaderView: UITableViewHeaderFooterView {
@IBOutlet weak var label: UILabel!
func update(title: String) {
label.text = title.uppercased()
}
}
extension TitleHeaderView: NibReusable {}
extension TitleHeaderView: Themable {
func update(theme: Theme) {
contentView.backgroundColor = theme.headerBackgroundColor
label.textColor = theme.headerTextSecondaryColor
label.font = theme.fonts.body
}
}