Question d’entretien chez Fidelity Investments

How do you use UIKit in SwiftUI, vice versa?

Réponse à la question d'entretien

Utilisateur anonyme

25 oct. 2024

Create a UIHostingController object when you want to integrate SwiftUI views into a UIKit view hierarchy. To represent UIKit views and view controllers in SwiftUI, you create types that conform to the UIViewRepresentable and UIViewControllerRepresentable protocols.