1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 22:00:31 +05:30
yattee/Shared/Defaults.swift

15 lines
655 B
Swift
Raw Normal View History

2021-06-27 04:59:55 +05:30
import Defaults
extension Defaults.Keys {
static let layout = Key<ListingLayout>("listingLayout", default: .cells)
2021-06-28 20:32:13 +05:30
static let searchQuery = Key<String>("searchQuery", default: "")
2021-07-08 04:09:18 +05:30
static let searchSortOrder = Key<SearchSortOrder>("searchSortOrder", default: .relevance)
static let searchDate = Key<SearchDate?>("searchDate")
static let searchDuration = Key<SearchDuration?>("searchDuration")
2021-07-08 22:48:36 +05:30
static let selectedPlaylistID = Key<String?>("selectedPlaylistID")
static let showingAddToPlaylist = Key<Bool>("showingAddToPlaylist", default: false)
static let videoIDToAddToPlaylist = Key<String?>("videoIDToAddToPlaylist")
2021-06-27 04:59:55 +05:30
}