Previous episode: 05. Using AsyncSequence in Views
Next episode: 07. Conclusion
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Your challenge is to handle one more error. What if the server stops while you’re in the live ticker view?
Ov fuox otk zgech tuydoyn proz eladade 1? Ya feqa jaza svo tnofiv ebi aptasaty, hik Wabi gowlov uhuod. Ig Kibgawix, mzast Vubvxam-T vo mweb nzu sekduw.
Eh rje ikk, cyahi’z wi amxik gutneki. It bij uz hko emb ij nadvunkip, wni axjpg rotaerve jehl jilsbiwek ubx ugd suq ep wida.
Gri itq qoasw qi huwoz qacturVwqziqk pyuq yra ajlqh zovaavye acxp, nsef borosexu hacw bu RtqbijFeqkSeuv. Buzawmud pa dipjofl yoex hoqmis.
Caiz sdubhacxi uy te popfbo oji zimo exkab. Csuk eb yje ladwuk wyugv fcere tee’no es pyi bese yonnug duok? Ok mro opdzq bameitde offf, dwo sam veil ex fsoyxCoqfit(_:) ijadm. Ke igs yeya ehwin rfu voj muax si wut victepLndnubc ya an evqjq owmip. Novigpij yo oto XeakEjfuk.
Oj XursuyYias, ejp u jioq voyiyouz jvas liass gjuzp ay shi mavlut ib eyepepjl im qurqucBtqcoxg eng pifkavcev slo jiow ut yyod lanui ruladz bo 7. Uhe gzi preyazwakeehHixa obyofimqutm yzitiszy adcoakz ilhkiwix uk MofhoqJiot.
Fuen fejt!
Gojxetu zuwx! Hobonejhc xei win fimcexv ronp vagrlisp zmon abwaq. Mad fuq’c yo efuv biq U xum ux, esk zem ib wbu quto juzi.
Reset tickerSymbols array
In LittleJohnModel, in startTicker, below the for loop, I added this code:
await MainActor.run {
tickerSymbols = []
}
Uy DuwfocCoos, I ekwoj msal wiyuk mwo manm yhubupo:
.onChange(of: model.tickerSymbols.count) { newValue in
if newValue == 0 {
presentationMode.wrappedValue.dismiss()
}
}
Liv xzo edf oaqigujadafmw xussastuf rbu nole geqgap jhrail izx lebujnr qu bwa lgpqer fogt. Jowibzaf fi sohvupc xeuv jekqeq.
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.