Post

Replies

Boosts

Views

Activity

Comment on Swift: How to add 47 Bool filter to json List
its a local json data driven app where I have 47 facilities bool under each item and there are 373 items and I wanna filter the 47 facility Bool under each on the 373 items and the way I have set it up is like the Landmark tutorial List as shown in the code posted... but its only the first 10 of the 47 filters that work and yaa I have hit the 10 view limit a few places but here it just escalate further in the code now and that's where im stuck soo your more elegant solution is welcome :)
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
` var filteredHavneplaner: [Havneplan] {         userData.havneplaner.filter { havneplan in           (!showFavoritesOnly || havneplan.isFavorite)             && (filters.minlaengde < havneplan.laengde)             && (filters.minbredde < havneplan.bredde)             && (filters.mindybgang < havneplan.dybgang)             && (filter == .all || filter.rawValue == havneplan.category.rawValue)             && (filtertwo == .all || filtertwo.rawValue == havneplan.typehavn.rawValue)         }     } ` Im stuck here where the 47 bool get stack up
Jan ’22