Improve continue filter, remove recommended for now

This commit is contained in:
Jackson Harper
2023-04-05 14:12:41 +08:00
parent 95fd847ae2
commit 8c02168710
2 changed files with 10 additions and 9 deletions

View File

@ -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) {

View File

@ -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: