mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 13:50:32 +05:30
18 lines
849 B
Swift
18 lines
849 B
Swift
import Defaults
|
|
|
|
extension Defaults.Keys {
|
|
static let instances = Key<[Instance]>("instances", default: [])
|
|
static let accounts = Key<[Instance.Account]>("accounts", default: [])
|
|
static let defaultAccountID = Key<String?>("defaultAccountID")
|
|
|
|
static let trendingCategory = Key<TrendingCategory>("trendingCategory", default: .default)
|
|
static let trendingCountry = Key<Country>("trendingCountry", default: .us)
|
|
|
|
static let selectedPlaylistID = Key<String?>("selectedPlaylistID")
|
|
static let showingAddToPlaylist = Key<Bool>("showingAddToPlaylist", default: false)
|
|
static let videoIDToAddToPlaylist = Key<String?>("videoIDToAddToPlaylist")
|
|
|
|
static let recentlyOpened = Key<[RecentItem]>("recentlyOpened", default: [])
|
|
static let quality = Key<Stream.ResolutionSetting>("quality", default: .hd720pFirstThenBest)
|
|
}
|