mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
20 lines
514 B
Swift
20 lines
514 B
Swift
import Combine
|
|
import DivKit
|
|
import SwiftUI
|
|
|
|
struct DivViewControllerSwiftUIAdapter: UIViewControllerRepresentable {
|
|
let jsonPublisher: JsonPublisher
|
|
let divKitComponents: DivKitComponents
|
|
let debugParams: DebugParams
|
|
|
|
func makeUIViewController(context _: Context) -> UIViewController {
|
|
DivViewController(
|
|
jsonPublisher: jsonPublisher,
|
|
divKitComponents: divKitComponents,
|
|
debugParams: debugParams
|
|
)
|
|
}
|
|
|
|
func updateUIViewController(_: UIViewController, context _: Context) {}
|
|
}
|