metatext/Views/UIKit/Table View Cells/AnnouncementTableViewCell.swift

16 lines
500 B
Swift
Raw Normal View History

2021-04-25 19:38:36 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import ViewModels
final class AnnouncementTableViewCell: SeparatorConfiguredTableViewCell {
var viewModel: AnnouncementViewModel?
override func updateConfiguration(using state: UICellConfigurationState) {
guard let viewModel = viewModel else { return }
contentConfiguration = AnnouncementContentConfiguration(viewModel: viewModel).updated(for: state)
accessibilityElements = [contentView]
}
}