Skip to content
Discussion options

You must be logged in to vote

Interesting, I got another approach working (with help of this: hotwired/hotwire-native-android#167 (reply in thread)):

import HotwireNative
import UIKit

let baseURL = URL(string: "https:/my-secured-url")!

class SceneDelegate: UIResponder, UIWindowSceneDelegate {
    var window: UIWindow?
    
    private lazy var navigator = Navigator(configuration: .init(name: "main", startLocation: baseURL), delegate: self)
    
    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        window?.rootViewController = navigator.rootViewController
        navigator.start()
    }
}

extension SceneDelegate: NavigatorDelegate {
    

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@janpeterka
Comment options

Answer selected by janpeterka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants