Not support on iOS 16.0
ankitpanchotiya99138 opened this issue · comments
Ankit panchotiya commented
As per the documentation Routing support iOS 16.0 version as well but after new update it's not.
James Sedlacek commented
It supports iOS 16.0
You just need to make a Router
that conforms to RoutableObject
& uses the ObservableObject
protocol + @Published
properties instead of the @Observable
macro.
James Sedlacek commented
public final class Router<Routes: Routable>: RoutableObject, ObservableObject {
public typealias Destination = Routes
@Published public var stack: [Routes] = []
public init() {}
}
Something like this