Improve continue filter, remove recommended for now
This commit is contained in:
@ -378,13 +378,13 @@ struct AnimatingCellHeight: AnimatableModifier {
|
||||
}, label: {
|
||||
Text("Continue Reading")
|
||||
})
|
||||
Button(action: {
|
||||
withoutAnimation {
|
||||
viewModel.updateFeatureFilter(.recommended)
|
||||
}
|
||||
}, label: {
|
||||
Text("Recommended")
|
||||
})
|
||||
// Button(action: {
|
||||
// withoutAnimation {
|
||||
// viewModel.updateFeatureFilter(.recommended)
|
||||
// }
|
||||
// }, label: {
|
||||
// Text("Recommended")
|
||||
// })
|
||||
Button(action: {
|
||||
withoutAnimation {
|
||||
viewModel.updateFeatureFilter(.newsletters)
|
||||
@ -395,7 +395,7 @@ struct AnimatingCellHeight: AnimatableModifier {
|
||||
Button(action: {
|
||||
showHideFeatureAlert = true
|
||||
}, label: {
|
||||
Text("Hide Feature Section")
|
||||
Text("Hide this Section")
|
||||
})
|
||||
}, label: {
|
||||
HStack(alignment: .center) {
|
||||
|
||||
@ -127,8 +127,9 @@ public extension FeaturedItemFilter {
|
||||
|
||||
switch self {
|
||||
case .continueReading:
|
||||
// Use > 1 instead of 0 so its only reads they have made slight progress on.
|
||||
let continueReadingPredicate = NSPredicate(
|
||||
format: "readingProgress > 1 AND readAt != nil"
|
||||
format: "readingProgress > 1 AND readingProgress < 100 AND readAt != nil"
|
||||
)
|
||||
return NSCompoundPredicate(andPredicateWithSubpredicates: [continueReadingPredicate, undeletedPredicate, notInArchivePredicate])
|
||||
case .newsletters:
|
||||
|
||||
Reference in New Issue
Block a user