mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Home settings
This commit is contained in:
@@ -4,11 +4,11 @@ import Foundation
|
||||
struct FavoritesModel {
|
||||
static let shared = FavoritesModel()
|
||||
|
||||
@Default(.showFavoritesInHome) var showFavoritesInHome
|
||||
@Default(.favorites) var all
|
||||
@Default(.visibleSections) var visibleSections
|
||||
|
||||
var isEnabled: Bool {
|
||||
visibleSections.contains(.home)
|
||||
showFavoritesInHome
|
||||
}
|
||||
|
||||
func contains(_ item: FavoriteItem) -> Bool {
|
||||
|
Reference in New Issue
Block a user