Home queue

This commit is contained in:
Arkadiusz Fal
2022-12-19 00:10:05 +01:00
parent 8ab42322fc
commit bdb1f032a9
6 changed files with 101 additions and 8 deletions

View File

@@ -34,6 +34,10 @@ private struct InQueueListingKey: EnvironmentKey {
static let defaultValue = false
}
private struct NoListingDividersKey: EnvironmentKey {
static let defaultValue = false
}
enum ListingStyle: String, CaseIterable, Defaults.Serializable {
case cells
case list
@@ -113,4 +117,8 @@ extension EnvironmentValues {
set { self[InQueueListingKey.self] = newValue }
}
var noListingDividers: Bool {
get { self[NoListingDividersKey.self] }
set { self[NoListingDividersKey.self] = newValue }
}
}