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

19 lines
417 B
Swift
Raw Normal View History

2021-01-15 10:13:10 +00:00
// Copyright © 2021 Metabolist. All rights reserved.
import UIKit
import ViewModels
struct EmojiContentConfiguration {
let emoji: PickerEmoji
}
extension EmojiContentConfiguration: UIContentConfiguration {
func makeContentView() -> UIView & UIContentView {
EmojiView(configuration: self)
}
func updated(for state: UIConfigurationState) -> EmojiContentConfiguration {
self
}
}