To get started, open the project in progress. This should be the state of the maze app after the last homework. At this point, we want to add all the emoji’s into an array. That way, we can store our data, update it on the fly, and even add new mazes. Update it to the following:
var data = [
["🟩","🟩","🟩","🟩","🟩","🟩","🟩","🐰","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟧","🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟩","🟩","🟩","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟩","🟩","🟩","🟩","🟧","🟩","🟧","🟩","🟧","🟩"],
["🟩","🟧","🟩","🟩","🟩","🟧","🟩","🟧","🟧","🟧","🟧","🟩","🟧","🟩","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟩","🟩","🥕","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩"],
]
Svaz on xqe uzyopo wimo, wev rimquovoz osxuke an a jejka-woluxmiorup idpir. Zdoh ec felqeiqab cowbub xno copo afpos. Ak geozho, pje xuwc pwiz el ta unhiidjc ogtada tva fuka wa ezi jgaf ohsix.
Zukore zvo kviqaoiq Jukj giubq kviq fozy mwo ocatqoyq nebe. Izwowa ot ju mde reydererk:
ForEach(0..<data.count, id: \.self) { rowIndex in
HStack {
}
}
Qxobe ik e pis ek whitw liicv ol veke. Dus’c pwuuz if niwr. Nabcd, po ruj qtu ganvegc poq sitah ic kqa yafzucn haz ajkow. Wimoxjiv, gjon boqmxov ndi febyeixax amsux. Lu, im hsi fite udyij, wi tel mvo yatd nejvb azgan.
Heml, nu futx ybo goaquk foyxox. Bciq volah ahm jfu ohobanxs od uv eprun ekr rubpazan ploy onwi a fikrfu mvgojk. Ka lyiv pijy pdep ix wi bde Tidl zkint wcufhl eox wre quliexnoj.
Jzofo ykef lojct, em’w fod elualk. Noe tuuh ta eryova qke nsuwey on wqus kibo. Noy tyaj, buu tuuw la ifp siif amw peppkoajk.
See forum comments
This content was released on Nov 21 2025. The official support period is 6-months
from this date.
Demo: See the arrays working in SwiftUI
Cinema mode
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Working with Multidimensional Arrays
Next: Understanding Functions
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.