metatext/Views/UIKit/Content Configurations/AutocompleteItemContentConfiguration.swift

20 lines
506 B
Swift
Raw Normal View History

2021-02-15 08:47:30 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import UIKit
import ViewModels
struct AutocompleteItemContentConfiguration {
let item: AutocompleteItem
let identityContext: IdentityContext
}
extension AutocompleteItemContentConfiguration: UIContentConfiguration {
func makeContentView() -> UIView & UIContentView {
AutocompleteItemView(configuration: self)
}
func updated(for state: UIConfigurationState) -> AutocompleteItemContentConfiguration {
self
}
}