mirror of
https://github.com/metabolist/metatext.git
synced 2024-10-02 08:11:58 +00:00
15 lines
556 B
Swift
15 lines
556 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import UIKit
|
|
import ViewModels
|
|
|
|
class CompositionAttachmentCollectionViewCell: UICollectionViewCell {
|
|
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)
|
|
}
|
|
}
|