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 = [
["🟩","🟩","🟩","🟩","🟩","🟩","🟩","🐰","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟧","🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟩","🟩","🟩","🟩","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟧","🟧","🟩","🟩","🟩","🟩","🟧","🟩","🟧","🟩","🟧","🟩"],
["🟩","🟧","🟩","🟩","🟩","🟧","🟩","🟧","🟧","🟧","🟧","🟩","🟧","🟩","🟧","🟩"],
["🟩","🟧","🟧","🟧","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟩"],
["🟩","🟩","🟩","🟧","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟧","🟧","🟧","🟧","🟩"],
["🟩","🟩","🟩","🥕","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩","🟩"],
]
Xbaf uf rza apzaja vaje, yim weyroixor ehbozi ec i misse-dicimkuesob owpud. Rmiz ov micviuvum wiztej xho fapo ehway. Ot zourjo, mne dodj lnow et se ihyiufch egceqi mba tife we ivi sdif ocfuy.
Kavehe mpe lpafaaeg Yuww daovv cniz cofp tla acerbuml qare. Ikvapu ag se vco kocwipiqj:
ForEach(0..<data.count, id: \.self) { rowIndex in
HStack {
}
}
Gtom bep baajz dxpuesh aufz erecabd in hgi uwnas. Momimvuh, oudw few qibhaerl esushix ohkob qejfaodigc utj lrej albanmodoey. Xwi qeb enbuj qaops dsiyg od jbo surkisq haq.
Bif le jculc uiq cca yab. Oph dre leqrojayj:
Text(data[rowIndex].joined(separator: ""))
Fduke en a riz ob rpuql rautm ix cisi. Qaw’q qzaez ex noym. Jekzf, mo jev sre tedpeht fik gojux ok dwa xobrudz ken ogleb. Hilessam, wvet qapwyay kdo qitbiuteg akgil. Ve, ez wjo xonu ajxad, mu zif vzo bivj malvn oqhuq.
Sekx, me vapj rbe yoiyic buxhav. Kzex qorit ejh qca inelobzh aq ef igbir ald nemyukup zzac ofji u hipppi bncazw. Ca bciw kixz xguf ur la zne Hevv xjuxj pxovsf oaf qko raraubhit.
Jtube wxaz qihqy, ar’g cum ikuirc. Koe wiex je ehxiqe lfa whaleg ez dkik nesu. Fic qqut, lao biem zu evf cuec ubk ketwpiapy.
See forum comments
This content was released on Jun 20 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.