AvdLee / RocketSimApp

Enhancing the iOS simulator for productivity
604 stars 20 forks source link

RocketSim Connect Setup should mention where to paste the code #527

Closed AvdLee closed 3 months ago

AvdLee commented 3 months ago

Right now, it's a bit unclear where the method should be called.

SwiftUI:

@main
struct YourSwiftUIApp: App {

    init() {
        loadRocketSimConnect()
    }

    var body: some Scene {
        // ...
    }
}

AppDelegate

import UIKit

@main
class AppDelegate: NSObject, UIApplicationDelegate {

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        loadRocketSimConnect()

        /// ...
    }
}
AvdLee commented 3 months ago

This will be fixed in 12.11.2:

CleanShot 2024-07-01 at 14 42 06@2x