metatext/Views/UIKit/Table View Cells/AnnouncementTableViewCell.swift
Justin Mazzocchi 3f7a6a26aa
Announcements
2021-04-25 22:24:17 -07:00

15 lines
500 B
Swift

// 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]
}
}