metatext/Views/CompositionAttachmentCollectionViewCell.swift

16 lines
556 B
Swift
Raw Normal View History

2020-12-17 06:48:06 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
2020-12-19 06:30:19 +00:00
import ViewModels
2020-12-17 06:48:06 +00:00
class CompositionAttachmentCollectionViewCell: UICollectionViewCell {
2020-12-19 06:30:19 +00:00
var viewModel: CompositionAttachmentViewModel?
override func updateConfiguration(using state: UICellConfigurationState) {
guard let viewModel = viewModel else { return }
contentConfiguration = CompositionAttachmentContentConfiguration(viewModel: viewModel).updated(for: state)
backgroundConfiguration = UIBackgroundConfiguration.clear().updated(for: state)
}
2020-12-17 06:48:06 +00:00
}