Stub out goToNextUnread for SceneModel
This commit is contained in:
parent
3cbb4da788
commit
de10e81e31
@ -72,6 +72,7 @@ struct ArticleToolbarModifier: ViewModifier {
|
|||||||
|
|
||||||
ToolbarItem(placement: .bottomBar) {
|
ToolbarItem(placement: .bottomBar) {
|
||||||
Button {
|
Button {
|
||||||
|
sceneModel.goToNextUnread()
|
||||||
} label: {
|
} label: {
|
||||||
AppAssets.nextUnreadArticleImage.font(.title3)
|
AppAssets.nextUnreadArticleImage.font(.title3)
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,13 @@ final class SceneModel: ObservableObject {
|
|||||||
subscribeToToolbarChangeEvents()
|
subscribeToToolbarChangeEvents()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: Navigation API
|
||||||
|
|
||||||
|
/// Goes to the next unread item found in Sidebar and Timeline order, top to bottom
|
||||||
|
func goToNextUnread() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: Article Management API
|
// MARK: Article Management API
|
||||||
|
|
||||||
/// Marks all the articles in the Timeline as read
|
/// Marks all the articles in the Timeline as read
|
||||||
|
@ -108,6 +108,7 @@ struct SceneNavigationView: View {
|
|||||||
}
|
}
|
||||||
ToolbarItem {
|
ToolbarItem {
|
||||||
Button {
|
Button {
|
||||||
|
sceneModel.goToNextUnread()
|
||||||
} label: {
|
} label: {
|
||||||
AppAssets.nextUnreadArticleImage
|
AppAssets.nextUnreadArticleImage
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user