mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +00:00
19 lines
550 B
Swift
19 lines
550 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import UIKit
|
|
import ViewModels
|
|
|
|
struct CompositionAttachmentContentConfiguration {
|
|
let viewModel: CompositionAttachmentViewModel
|
|
let parentViewModel: CompositionViewModel
|
|
}
|
|
|
|
extension CompositionAttachmentContentConfiguration: UIContentConfiguration {
|
|
func makeContentView() -> UIView & UIContentView {
|
|
CompositionAttachmentView(configuration: self)
|
|
}
|
|
|
|
func updated(for state: UIConfigurationState) -> CompositionAttachmentContentConfiguration {
|
|
self
|
|
}
|
|
}
|