mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-28 16:00:40 +01:00
28 lines
675 B
Swift
28 lines
675 B
Swift
import SwiftUI
|
|
import Timeline
|
|
import Env
|
|
import Network
|
|
|
|
struct TimelineTab: View {
|
|
@StateObject private var routeurPath = RouterPath()
|
|
|
|
var body: some View {
|
|
NavigationStack(path: $routeurPath.path) {
|
|
TimelineView()
|
|
.withAppRouteur()
|
|
.withSheetDestinations(sheetDestinations: $routeurPath.presentedSheet)
|
|
.toolbar {
|
|
ToolbarItem(placement: .navigationBarLeading) {
|
|
Button {
|
|
routeurPath.presentedSheet = .statusEditor(replyToStatus: nil)
|
|
} label: {
|
|
Image(systemName: "square.and.pencil")
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
.environmentObject(routeurPath)
|
|
}
|
|
}
|