metatext/Views/CompositionAttachmentContentConfiguration.swift

20 lines
550 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
2021-01-03 01:22:17 +00:00
let parentViewModel: CompositionViewModel
2020-12-19 06:30:19 +00:00
}
extension CompositionAttachmentContentConfiguration: UIContentConfiguration {
func makeContentView() -> UIView & UIContentView {
CompositionAttachmentView(configuration: self)
}
func updated(for state: UIConfigurationState) -> CompositionAttachmentContentConfiguration {
self
}
}