小编doe*_*ost的帖子

在带有 UIViewControllerRepresentable 的 SwiftUI 应用程序中使用 qualtrics

我正在尝试使用 qualtrics 制作一个简单的 swiftui 应用程序,并且我正在尝试使用 uiviewrepresentable 来使其工作

@main
struct QualtricsPocApp: App {
var body: some Scene {
    WindowGroup {
        ContentView()
    }
}

init() {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
            // Override point for customization after application launch.
            // i have the actual intercept id's here i just removed them
            Qualtrics.shared.initializeProject(brandId: "brand", projectId: "proj", extRefId: "ref", completion: { (myInitializationResult) in print(myInitializationResult);})

            return true

      }
   }
}


struct QualtricsViewRep: UIViewControllerRepresentable {

typealias UIViewControllerType = UIViewController

func …
Run Code Online (Sandbox Code Playgroud)

uikit ios qualtrics swift swiftui

5
推荐指数
1
解决办法
374
查看次数

标签 统计

ios ×1

qualtrics ×1

swift ×1

swiftui ×1

uikit ×1