Doesn't work at all
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 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 i thought the problem of dropping iOS 15 is NavigationStack in iOS 16 which replaces NavigationView. Why did you drop iOS 16 too?