levibostian / Wendy-iOS

Build offline first iOS mobile apps. Remove loading screens, perform tasks instantly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter function not satisfying all use cases

levibostian opened this issue · comments

Given this code:

struct GroceryStoreItem: Codable {
    let price: Double
    let name: String
}

Wendy.shared.addTask(tag: WendyTasks.addGroceryListItem, data: GroceryStoreItem(price: 5, name: "White bread"))

I want to:

Wendy.shared.filter {
  // How many Grocery store list item tasks are there in the queue? 
}

I cannot satisfy this use case.