metatext/Views/CompositionAttachmentContentConfiguration.swift

19 lines
504 B
Swift
Raw Normal View History

2020-12-19 06:30:19 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import ViewModels
struct CompositionAttachmentContentConfiguration {
let viewModel: CompositionAttachmentViewModel
}
extension CompositionAttachmentContentConfiguration: UIContentConfiguration {
func makeContentView() -> UIView & UIContentView {
CompositionAttachmentView(configuration: self)
}
func updated(for state: UIConfigurationState) -> CompositionAttachmentContentConfiguration {
self
}
}