NetNewsWire/Multiplatform/Shared/Timeline/TimeilneToolbarModifier.swift

58 lines
1018 B
Swift
Raw Normal View History

//
// TimeilneToolbarModifier.swift
// NetNewsWire
//
// Created by Maurice Parker on 7/5/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import SwiftUI
struct TimelineToolbarModifier: ViewModifier {
func body(content: Content) -> some View {
content
.toolbar {
#if os(iOS)
2020-07-05 22:11:45 +02:00
ToolbarItem(placement: .navigation) {
Button(action: {
}, label: {
AppAssets.filterInactiveImage
.font(.title3)
}).help("Filter Read Articles")
}
ToolbarItem {
Button(action: {
}, label: {
AppAssets.markAllAsReadImage
.foregroundColor(.accentColor)
}).help("Mark All As Read")
}
2020-07-05 22:11:45 +02:00
ToolbarItem {
Spacer()
}
2020-07-05 22:11:45 +02:00
ToolbarItem(placement: .automatic) {
RefreshProgressView()
}
2020-07-05 22:11:45 +02:00
ToolbarItem {
Spacer()
}
2020-07-05 22:11:45 +02:00
ToolbarItem {
Button(action: {
}, label: {
AppAssets.nextUnreadArticleImage
.font(.title3)
}).help("Next Unread")
}
2020-07-05 22:11:45 +02:00
#endif
}
}
}