Stub out goToNextUnread for SceneModel

This commit is contained in:
Maurice Parker 2020-07-19 13:28:22 -05:00
parent 3cbb4da788
commit de10e81e31
3 changed files with 9 additions and 0 deletions

View File

@ -72,6 +72,7 @@ struct ArticleToolbarModifier: ViewModifier {
ToolbarItem(placement: .bottomBar) {
Button {
sceneModel.goToNextUnread()
} label: {
AppAssets.nextUnreadArticleImage.font(.title3)
}

View File

@ -51,6 +51,13 @@ final class SceneModel: ObservableObject {
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
/// Marks all the articles in the Timeline as read

View File

@ -108,6 +108,7 @@ struct SceneNavigationView: View {
}
ToolbarItem {
Button {
sceneModel.goToNextUnread()
} label: {
AppAssets.nextUnreadArticleImage
}