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 :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Comment on Xcode Simulator m1 - can't pick images
nice its worked to install 13.6 for me
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’21
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 :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
noo not sure how to do that..
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
yea but not sure how to do that
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
where..?? i have a filter list of Toggles
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
it works fine now but I can't see how you want me to do what you say
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
the Toggle filters are already divided in 10 filters of each view to show them all in a list
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swiftui performance
cluster the map annotations
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on How to manage view when model the same but different views?
here you can make your two diffrent views on iPhone and iPad just put your code under each and edit accordingly
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
no im still facing the issues..?? the code complies fine and run but the 37 bool still don't work... I can't se how you wanna do what you say
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swift: How to add 47 Bool filter to json List
as I understand it you just suggests another way to choose the bool and not and solution to my problem where im unable to divide the bool op in the "filteredHavneplaner" function soo all of them work
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Swiftui performance
no but with MapView you can
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22