UIHostingController- A UIKit view controller manages a SwiftUI view hierarchy. It is intended when integrating SwiftUI views into a UIKit view hierarchy.
Present a SwiftUI view in the UIKit view controller
let swiftCustomUIView = SwiftCustomUIView()
let hostingController = UIHostingController(rootView: swiftCustomUIView)
present(hostingController, animated: true, completion: nil)
let hostingController = UIHostingController(rootView: swiftCustomUIView)
present(hostingController, animated: true, completion: nil)