NetNewsWire/Multiplatform/Shared/SceneModel.swift

38 lines
697 B
Swift
Raw Normal View History

2020-06-28 21:21:43 +02:00
//
// SceneModel.swift
// NetNewsWire
//
// Created by Maurice Parker on 6/28/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import Foundation
import Account
2020-06-28 21:21:43 +02:00
final class SceneModel: ObservableObject {
var sidebarModel: SidebarModel?
2020-06-30 18:03:33 +02:00
var timelineModel: TimelineModel?
2020-06-28 21:21:43 +02:00
}
// MARK: SidebarModelDelegate
extension SceneModel: SidebarModelDelegate {
2020-06-29 13:16:48 +02:00
func unreadCount(for feed: Feed) -> Int {
// TODO: Get the count from the timeline if Feed is the current timeline
return feed.unreadCount
}
}
2020-06-30 18:03:33 +02:00
// MARK: TimelineModelDelegate
extension SceneModel: TimelineModelDelegate {
func timelineRequestedWebFeedSelection(_: TimelineModel, webFeed: WebFeed) {
}
}