18 lines
387 B
Swift
18 lines
387 B
Swift
|
import SwiftUI
|
||
|
import Timeline
|
||
|
import Account
|
||
|
import Routeur
|
||
|
|
||
|
extension View {
|
||
|
func withAppRouteur() -> some View {
|
||
|
self.navigationDestination(for: RouteurDestinations.self) { destination in
|
||
|
switch destination {
|
||
|
case let .accountDetail(id):
|
||
|
AccountView(accountId: id)
|
||
|
case let .statusDetail(id):
|
||
|
StatusDetailView(statusId: id)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|