mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
@@ -8,7 +8,7 @@ struct FavoritesModel {
|
||||
@Default(.visibleSections) var visibleSections
|
||||
|
||||
var isEnabled: Bool {
|
||||
visibleSections.contains(.favorites)
|
||||
visibleSections.contains(.home)
|
||||
}
|
||||
|
||||
func contains(_ item: FavoriteItem) -> Bool {
|
||||
|
@@ -5,7 +5,7 @@ final class NavigationModel: ObservableObject {
|
||||
static var shared: NavigationModel!
|
||||
|
||||
enum TabSelection: Hashable {
|
||||
case favorites
|
||||
case home
|
||||
case subscriptions
|
||||
case popular
|
||||
case trending
|
||||
@@ -21,7 +21,7 @@ final class NavigationModel: ObservableObject {
|
||||
|
||||
var stringValue: String {
|
||||
switch self {
|
||||
case .favorites:
|
||||
case .home:
|
||||
return "favorites"
|
||||
case .subscriptions:
|
||||
return "subscriptions"
|
||||
|
Reference in New Issue
Block a user