Add ArticleFetcherType and change state restoration to use new type.

This commit is contained in:
Maurice Parker
2019-11-14 15:06:32 -06:00
parent 48fef65bc4
commit 0d66259650
22 changed files with 290 additions and 230 deletions

26
Shared/UserInfoKey.swift Normal file
View File

@@ -0,0 +1,26 @@
//
// UserInfoKey.swift
// NetNewsWire
//
// Created by Maurice Parker on 11/14/19.
// Copyright © 2019 Ranchero Software. All rights reserved.
//
import Foundation
typealias UserInfoDictionary = [AnyHashable: Any]
struct UserInfoKey {
static let view = "view"
static let article = "article"
static let articles = "articles"
static let navigationKeyPressed = "navigationKeyPressed"
static let objects = "objects"
static let feed = "feed"
static let url = "url"
static let author = "author"
static let articlePath = "articlePath"
static let feedIdentifier = "feedIdentifier"
}