I'm trying to use a Hosting Controller to include a SwiftUI View in an existing Storyboard Tab Bar Controller. I already connected a Hosting View Controller to the Tab Bar Controller on Storyboard using the Relationship Segue. Below is what I tried from reading other posts, but all I get is a black screen. Any help would be appreciated. Thank you.
import UIKit
import SwiftUI
class SingleSearchHost: UIHostingController<SingleSearch>{
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder, rootView: SingleSearch())
}
}