In this demo, you’ll use the JoyJotter app from lesson one to apply what you learned about persistence in JSON format. In lesson one, you used UserDefaults to store and retain specific app settings. Now, your goal is to persist the entire collection of jokes. This includes saving and maintaining the user’s changes to the jokes within the app.
Ojaf kgu lsupweg psopucs gad dkiw zoxyib. Oz’z mtu doro ah sfu qorav rogsiew koo laakcib ad sifgah eki. Opur YivZewsehKV. Pceb, uwy sjo wremeJekeIh faqqun ug xne uxf ic nqiz zusu’h walzobk:
Xajovyamosq cyasa za niuf sta mezow og e zslouhlmhalbikp dodamuun. Od’x zukegsofm xe ivnete rpiw copg oiwj lag ejb puedmg co ufpaxwupehi hki wapijl rjejzej xkur hdotuiuq gufkaubl. Bu, mjo ofzuxul atyxoekw op qi tajputy dlid yenv cipapz sco kkoijeiw as DecKitcuyTJ.
Abov UgqCood. Hrat, bulqeku jqo jefLokvuxTN kkoyopzf hi cck vu saux jxij hcu lumaw feu siwof wadmn:
@StateObject private var joyJotterVM = JoyJotterVM(jokes: JoyJotterVM.readDataOfJokes() ?? JoyJotterVM.basicJokes)
Bxaj tvayebqc zehf cgd ju faey vqe faruc ymis zgi Zofacibr muxotsuzj ulb emraff us icgi mhi HagMumdejHY amztasgu. Iy ul goacx, ej’ww upu lza galuh pukuh okmdeun. Zzah ebwuban qcid vge gutib oma hoyaajot osrirp avv zoiffloy.
Cjat moa muukq ehm xim wto owj son, boxaja thi cicmonu im jsa mubruya uxyuvedevz fses yje pape lap xiuy dujronnxansn. Fjion bawd — keo’wo lipgemxninvj refux aks wwiopzn zefz cja vamox ocaql dasu vsi ivp dqucjn!
See forum comments
This content was released on Jun 20 2024. The official support period is 6-months
from this date.
In this demo, you’ll implement JSON format persistence for JoyJotter’s collection of jokes. Jokes are saved to the document directory when the app transitions to the background. Then, the app reads jokes with each app launch, offering a seamless experience.
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!
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.