什麼是 swiftui-uikit-interop?
橋接 UIKit 和 SwiftUI — 使用 UIViewRepresentable/UIViewControllerRepresentable 將 UIKit 視圖/視圖控制器包裝在 SwiftUI 中,使用 UIHostingController 將 SwiftUI 嵌入 UIKit 中,並處理 Coordinator 委託模式。將相機預覽、地圖視圖、Web 視圖、郵件撰寫、文件掃描器、PDF 渲染器、具有屬性文字的文字視圖或任何第三方 UIKit SDK 整合到 SwiftUI 應用程式中時使用。當將 UIKit 應用程式增量遷移到 SwiftUI 時,或需要本機 SwiftUI 中尚未提供的 UIKit 功能時,也可以使用。 來源:dpearson2699/swift-ios-skills。