Checklist - Creating a multidimensional array of checklist items

Is it possible to create a multidimensional array for the checklist items via the ChecklistItem data model instead of an array? I am trying to add the items into a multidimensional array so that I can then match the items to another array for the purpose of grouping items into sections, i.e. an appointments section, shopping section, meetings, etc. I have tried several options but getting stuck with the ChecklistItem data model because when I change var items = ChecklistItem to var items = [ChecklistItem], Swift doesn’t like the syntax. Specifically I have tried various methods and usually end up with either an empty multidimensional array or some kind of can’t convert [ChecklistItem] to String error.

I tried adding my Playground code that I am working with to replicate what I am trying to do but I received an error that I can’t create the post with that code included.

@jamakaca Please check out this thread when you get a chance:

I hope it helps!

This topic was automatically closed after 166 days. New replies are no longer allowed.