SwiftfulRouting icon indicating copy to clipboard operation
SwiftfulRouting copied to clipboard

Doesn't work at all

Open gerchicov-vg opened this issue 1 month ago • 2 comments

Added navigation inside the app file:

import SwiftUI
import SwiftfulRouting

@main
struct AdsDemoApp: App {
    var body: some Scene {
        WindowGroup {
            RouterView(addNavigationStack: false) { router in
                SplashScreen(router: router)
            }
        }
    }
}

got error:

Cannot convert value of type 'AnyRouter' to expected argument type 'Environment<AnyRouter>'

possibly it is because of your weird ios support - on release page you write that you drop ios 15 support but in readme you have 14+ and 17+ version support. What about ios 16+?

gerchicov-vg avatar Oct 20 '25 06:10 gerchicov-vg

@gerchicov-vg It definitely does work. The weird iOS support would put iOS 16 in the iOS 14+ bucket. Therefore you should use version 5.3.6. The release is here: https://github.com/SwiftfulThinking/SwiftfulRouting/releases/tag/5.3.6 and you can read the Readme for that one, which has some different APIs from the current version.

SwiftfulThinking avatar Oct 22 '25 23:10 SwiftfulThinking

@SwiftfulThinking i thought the problem of dropping iOS 15 is NavigationStack in iOS 16 which replaces NavigationView. Why did you drop iOS 16 too?

gerchicov-vg avatar Oct 23 '25 06:10 gerchicov-vg