MessagingViewController

open class MessagingViewController : UIHostingController<MessagingView>

This class is meant to be used by UIKit like a standard UIViewController. It will host the SwiftUI AssistantView with default parameters.

Do not use this class if you are using SwiftUI in your project, it is recommended to directly work with AssistantView. Do not use with Storyboards.

let publisher = <#some MessagingPublisher#>
let vc = MessagingViewController(MessagingViewModel(publisher: publisher))
self.navigationController?.pushViewController(vc, animated: true)