2021-06-26 23:29:55 +00:00
|
|
|
import Defaults
|
|
|
|
|
|
|
|
extension Defaults.Keys {
|
|
|
|
static let layout = Key<ListingLayout>("listingLayout", default: .cells)
|
|
|
|
static let tabSelection = Key<TabSelection>("tabSelection", default: .subscriptions)
|
2021-06-28 15:02:13 +00:00
|
|
|
static let searchQuery = Key<String>("searchQuery", default: "")
|
|
|
|
static let openChannel = Key<Channel?>("openChannel")
|
2021-07-07 22:39:18 +00:00
|
|
|
|
|
|
|
static let searchSortOrder = Key<SearchSortOrder>("searchSortOrder", default: .relevance)
|
2021-07-09 14:53:53 +00:00
|
|
|
static let searchDate = Key<SearchDate?>("searchDate")
|
|
|
|
static let searchDuration = Key<SearchDuration?>("searchDuration")
|
2021-07-07 22:39:18 +00:00
|
|
|
static let openVideoID = Key<String>("videoID", default: "")
|
|
|
|
static let showingVideoDetails = Key<Bool>("showingVideoDetails", default: false)
|
2021-07-08 17:18:36 +00:00
|
|
|
|
|
|
|
static let selectedPlaylistID = Key<String?>("selectedPlaylistID")
|
2021-07-09 14:53:53 +00:00
|
|
|
static let showingAddToPlaylist = Key<Bool>("showingAddToPlaylist", default: false)
|
|
|
|
static let videoIDToAddToPlaylist = Key<String?>("videoIDToAddToPlaylist")
|
2021-06-26 23:29:55 +00:00
|
|
|
}
|