mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
19 lines
953 B
Swift
19 lines
953 B
Swift
import Defaults
|
|
|
|
extension Defaults.Keys {
|
|
static let layout = Key<ListingLayout>("listingLayout", default: .cells)
|
|
static let tabSelection = Key<TabSelection>("tabSelection", default: .subscriptions)
|
|
static let searchQuery = Key<String>("searchQuery", default: "")
|
|
static let openChannel = Key<Channel?>("openChannel")
|
|
|
|
static let searchSortOrder = Key<SearchSortOrder>("searchSortOrder", default: .relevance)
|
|
static let searchDate = Key<SearchDate?>("searchDate")
|
|
static let searchDuration = Key<SearchDuration?>("searchDuration")
|
|
static let openVideoID = Key<String>("videoID", default: "")
|
|
static let showingVideoDetails = Key<Bool>("showingVideoDetails", default: false)
|
|
|
|
static let selectedPlaylistID = Key<String?>("selectedPlaylistID")
|
|
static let showingAddToPlaylist = Key<Bool>("showingAddToPlaylist", default: false)
|
|
static let videoIDToAddToPlaylist = Key<String?>("videoIDToAddToPlaylist")
|
|
}
|