mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-06-08 00:09:31 +00:00
18 lines
348 B
Swift
18 lines
348 B
Swift
|
import Foundation
|
||
|
import SwiftUI
|
||
|
|
||
|
public enum RouteurDestinations: Hashable {
|
||
|
case accountDetail(id: String)
|
||
|
case statusDetail(id: String)
|
||
|
}
|
||
|
|
||
|
public class RouterPath: ObservableObject {
|
||
|
@Published public var path: [RouteurDestinations] = []
|
||
|
|
||
|
public init() {}
|
||
|
|
||
|
public func navigate(to: RouteurDestinations) {
|
||
|
path.append(to)
|
||
|
}
|
||
|
}
|