使用故事板 + 结构构建 XCode UI

Building XCode UI with storyboard + struct

我正在尝试更新我的应用程序的 StoreKit 功能。我现有的应用程序使用情节提要来构建 UI。我正在学习的应用程序 (https://www.raywenderlich.com/15410082-storekit-testing-in-xcode-12-getting-started) and merging uses a struct based approach. Is it possible to combine the two? This video does a better job of explaining my problem and a few things I've tried... https://youtu.be/IdIR-eYOTUw

是的,你可以,(https://www.avanderlee.com/swiftui/integrating-swiftui-with-uikit) 查看 link 它很容易解释/