Post

Replies

Boosts

Views

Activity

Reply to Core Data and SwiftUI in Xcode 12
I have encountered the same issue. Changing to storyboard will not help. When you set back to swift UI the checkboxes disappear. It is annoying. I need Core Data for my apps. Apple has shown so many "amazing" things and nobody even mentioned, that lacking Core Data in Swift UI would be a great drawback. Making apps like "which books do I read now" makes not much sense. I need much more data than 7 book titles. I hope they will change it.
Jun ’20
Reply to How to filter a segmented picker in SwiftUI?
I think the line ForEach(0..<decks.filter{$0.heroClass == yourClass}.count) ist the problem. First of all, use ' , id: \.self ' after count, before the closing bracket - but this will not solve the problem. The second thing is, that Your "filtering" is only producing the smaller "count" number, but You still address the whole "decks" array, and it will show only several first results of the array (the number will be equal to how many matches were found), but not the ones, You want to show, as I suppose. Also please try to unpack ' $0.heroClass ' like this: ' $0.heroClass ?? "" ' Hope I could help.
Jun ’20