IceCubesApp/IceCubesApp/App/Tabs/TimelineTab.swift

28 lines
675 B
Swift
Raw Normal View History

2022-11-29 10:46:02 +00:00
import SwiftUI
import Timeline
2022-12-22 09:53:36 +00:00
import Env
2022-11-29 11:18:06 +00:00
import Network
2022-11-29 10:46:02 +00:00
2022-12-01 08:05:26 +00:00
struct TimelineTab: View {
2022-11-29 10:46:02 +00:00
@StateObject private var routeurPath = RouterPath()
var body: some View {
NavigationStack(path: $routeurPath.path) {
2022-11-29 11:18:06 +00:00
TimelineView()
2022-11-29 10:46:02 +00:00
.withAppRouteur()
2022-12-20 08:37:07 +00:00
.withSheetDestinations(sheetDestinations: $routeurPath.presentedSheet)
.toolbar {
ToolbarItem(placement: .navigationBarLeading) {
Button {
routeurPath.presentedSheet = .statusEditor(replyToStatus: nil)
} label: {
Image(systemName: "square.and.pencil")
}
}
}
2022-11-29 10:46:02 +00:00
}
.environmentObject(routeurPath)
}
}