Navigation | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/18272812-swiftui-fundamentals/lessons/11

Hi Catie,

In section 8 of the first part of this course, we worked with a “tracks” constant, an array of Tracks objects that you created as a property of the struct named “MeowMix”.

However, in this lesson (lesson 11), you’ve set up the data, “artData” as an array of
Artwork objects but as a standalone constant, not as a property of a struct.

Why the different approaches here? Is there a reason for this that I’m not seeing? Why … ?

Thanks in advance!

Mary