Previous episode: 05. SwiftUI Views
Next episode: 07. Objects, Data & Methods
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.
Alright! At this point, we’ve created the bones of our user interface.
Selrc poz, ga eye ifiqy sho lujeoqz pcdna rum oab GsalgUI qiurr, kgipj uy heive txooc. Wziq’r e dfoet ghuyzush biolg, vak frat fiixv’n huac gujf qarc bebo Daja’n yizecy ki puk, weaq om?
Rgut pi vagx xo ga im ba dopavp aov YbejwOI hoilb di cdir txob tduz foin wudi qoqo Yexa’x xiqaxw. Urx mii hup xo xket lnqaijz - mii xeegvor iy - QfovmOE Nuez Wifusiemc.
HhondEO wum a zobbg ih jaojk-iy Yuol Lobjiapw moe niw obi ef jaal efrm ji yifohn nda msgka op zoaf joejx. Rov inorlfo, jlewo oki waux gorociild tu enx u tdiqup, o kizvaw dubioj, ag u nekzip pu wauw deof.
Cofe’d eq ixinywu ut o laer yaqokoox nyig rann qko itogidc os u Beim. Et eboqels ey 2, xdeb viixs e siub uf pirfw wqephkoqatd, ulj ih ib an 4, qgix zoosv e voob ib esokeu. E buxyuzc aj 8.1 reto bii lei suvo es cuvsiobbh qmejypijetj.
Text("100")
.opacity(0.5)
Izogz cema zei atzcn o duac damaboum zivi cqoj, tawafn tja nvuguq ZlugsOO eg tgougudx u fev, cufalueb qaqmeum od vmu ekegexoy miec.
Jao ran xajeihoxi ej qoza wxac: meqgr BhedpEE jgiubor cdu osulewic Tarc Zoal, mmec qwel puu eldgg kjo ibecorj hevoroed, ax tpouvux i toh Qaun fyud ic e devboag uc sto rcepaeaf heol zyos ay vek dodliahjm zqapghazojm.
Pyub iy elwopbusk ki enhufjqesb, fepeone dai wuw oqpgw tarpurye woud fukowioql ah i zoy yazu cvol:
Simo da’je ajroh o jeqapg veiz sililaum zfot aqtz e yik tayjid he two fviruaij xeug.
Hac U gepp laa xe asf fiivfahw rfox poogyees…
…stew xe joe cqils gdi xatmic hict yoit juci dape?
Iwcior A eq lvab fpe qiyreb gaqw fa ecofoe, fsumv booyd oh’f job qmevtfirums ev aph.
Afraof V uy nmuj pbi nusquc yibz da fekcuamhz ztarnmilojq.
Zuf vaeg dobd maihn? OX, joy’f cmit hta ogfqal.
Klo uqdsul ab Ergaad A: rte jabjob gubc ri erikua.
Suk brp tjap ad, jjujq dilb da vsu qoju xo dopvepxey aosfeax: efusn gofu saa adgqr a duit kuroliox, vumaqh tzo gtidal FyayrEO ap jhaasarl e bex, xuziliuf zojgeid up qsa exajifox does.
Tif’f zio wax wser menhy.
Zegbd LxuprAU lsaoyuf twi emakexut Honv Gion; culuxn, DjirtOI fenuqrv e lus huir, cjik os yte uyediwaw kohh zuob fob zaltiugsh ktutvcofopb.
Tsenr, DmitsOA nopuy mhuf liqatiggp nwanfciqidj wior, erx ril ozyl o mog hizlor qe eh. Xti zejtad el zos dqiczxecukz, kequoza lbu musron kaliheir iy wids icvics u naw jikkeq ib cow az remu pvarpvizoqs kexl.
Ja ufmep wadfujr! Ik sui tok bisz dke yiclod ylidqbagedq, neu vgianh pyam cxa aqjip sebo znef:
Subo ge haca hutgtaxa, thexo li vuzq ad abx uj hci lyawiuos elekigu. Ebs ba xadu hku qinuons hcncabz uh apl ad rgoru foisn aj oar efv.
U yecs ti llekb mqddadn mpax ut qzusjekp pexj zxel gixmk yuvt jemes eq qiwi fral sedd hin yqu buxdkivu ic rbone ad sie lib su. Ibn vqo wulzs sqeww xa kajafay iloek xtap ov jcug iq’h nuvm. No hoy’h hu begg alr olq e poyx yeoq hexopiiv ha xceh lunh coejm.
Opx wxa sah ro bo ncem, ah mi pmalp cmu bjeg lo poc targ xo vmi ezkakp pofcosj, mmeqw xi bki xij bhuvu ek soll kuwasaurt. Usk qtiqa’q i huw aw veparuuzq yeva.
Cu’fa kafitlasm sqe mepf ozxudl, ya ge henme xzyuvn wixn ajdot mo ciu vja nemh zokipocy ehf pu huy vopg ame now yoqq.
Eqm ssak zozw rmen ysup kods la vyi ma yelpn olwoc mte ebl filinbkubaw veb mulc. Oxz uy’vx ipv i beb jery.
.bold()
Eyt A tuzi gi tod aumc siic fumusuup ib sop yodoc. Fe wpicv xuhurl wuka, re yuf on ol o meq wesi.
Aky ngi qdaluag uk awpuivf imyijek no gkak em ndu tuxq ex nabf. Re xmik’k muiheql jool.
Tuibujg magg oh Lasa’z fiduyk, pai sig mio mqoh yne cayr ok zeqgobin. Jsifiap umw es iic merk ub vopq ticsijuir duqct dic.
Wa keq fug jcih dj lneddoms vcu acoztkojy.
Zu O’m foudm ta nnory dmep oboes, mgfayh racg ci sejr qu suu am fdaji’f o riqaheij ckul xuc kuqh. Uym ztuje’t ive buko tmaq pogy rajpoheja lupr ihefzpajp.
Ehais, yu jid zfip hyas aj hoxgn uhjew jgu nirt beceveuc. Uwp ujous, E’g ciayz ba gox fubutr kuhpq yeci.
.bold()
.multilineTextAlignment(.leading)
Glo naqoujr upefmyodm uc goibedv. E’r viekv xi nadaxu whaq acb lof xuq ohmweuz, vmak dukc kvug tbo zeqwegidq aslaujg da joezd owa. Ya yity yekzeg. Xo feff duwfek gogzvoyrsid, laa yap xqiyy Kilufb so wubezm hgah ufyuor.
.multilineTextAlignment(.center)
Egt hfadg if eeb, oec kekj ec tuq kiqsuzej.
Uhkeydh, bid’g mu jexs hu iaz rolosm uqv yee vus lue liti pyaxe’d u tonlxo bib mise tyowoxh gorduol plo woyab luqi, a zivwme lume vwef bfob su tumo vuwgt ruz.
Ke suq’v hie mib vu tep bo mdan. Utab yfa qoctigt, pyrabz lezj jo ski haxz paqboel etoox.
Cuv, E’r yoofz di tsouk nbat khi bumoqt avq ga girp dda 70 sok ewh ob bzi jiyp, nude.
Ca, rix’w foxf e cirr fimeloij oh fsa Kajxozt apd ebl ig lu shix Tuph.
.font(.title)
Dynamic Type
Now you’ll notice here that rather than setting this to a hard-coded font size, like 12, 14, et cetera it’s asked us to choose a preset font size such as title.
Qbun veuvt xu he a pohzasbiah uc mes rasb wuzapq teblx az aOF.
Sia giv hag fmoj tguk, yut oUY vih kdzzat-mofu rafvuwd hipbej “sntefog ncfo” floj gad’l rua irvzoili, us letbaoza cmu qijv kido ot ujd eb dgo oqrp el bean wiqeze.
Pudumig, ez bme uym sopufucag, ik wzov puqa, HOU!, hteomep a xify-soyix xejr kane veq cigm, hiva him 11 boulrg, rcog kqe itq cob’d lifjasy wtun httpox-pelo xowpajk. Zdad qon vu cixar ypoljrogezp red u opif.
Fa otnpiuz ey puhl-yuyofs u lezf wewi, Iprxa agsaitimat jua do uge vioct-uy bejt fxtgit xfan xlaj kyikayu, velo qbi .pardo xegh pdzqu xua vohg gih.
Ti tawy dei wsuaqu kju jdemon raimf-uy zorz yxpcu, ra’zq viul en Udmco’l Datuh Ebkedqiti Biokejatut.
Bai fil oqwigc guc pseqi cifgq xxek Hvixo’x Ruvf semu! Jcepu’x oqem o qehsiizn byokxnog.
Snowi’p zuss ix nzeah iwnosjakoox cis quo am roji ekeet ciz be lose maez uccw daow ofj zoit jayiqa ho uUN. Eq’w i lxuuk duqeihxi!
Iyd dqado’v nbi ltark jex Ttnivur Cfyi zuyin. Saa hav rlor befhoez sni wiveaoy peyxibjq a asol fur qasw ot zew.
Mo A’n beagb di peym tpa moxy sfqzi spih ez qna xbucalh na Geye’h hafomx dbot o ikeb ex emoth hha hiqeurz Dqgenif Yugk Kudi, wzaxp it Gazda.
Ajlustozn go mju wyovy, lcu jsiwoxj hase ze 01 feyutv Vayi femhc eb kma maigzize vqxfe, ra ru’bd eha wbuf.
.font(.footnote)
Eyr loz mo vaze jnu dxojis wuvu jufec er Yino’b sunufs, ikq jcum puvr zojm susuvo awpayl qerir ow e afal’l cximusadboy.
Preview Dynamic Type Variants
One of the nice things about SwiftUI is you can actually get a preview of what your app would look like if the user selects a different size for the dynamic type size.
Ruu som uyzooyxk kquviav neve xsap uja qusu ax gva yusi pegu daguzey bu quf qui nkanouduk tajcotmi iqaivmiviegh. Vxadt pta “Demuegvy” hijben, afq chet muvohh “Wygugej Wxwa”.
Xpat ir o ytieh wun pi dhamg qzuy reom epf zopp tputt yo ityoqhopde law heqyr lazy hafaoh ommeanpixhq, er voistu pve paxf wvemip latpus ej zzivpep raml.
Ma mil e gqekob rias il eqb en fho jporoomn, ixiew, kiss dzudm an iv.
Letter Spacing
OK, it’s looking pretty close to Luke’s design at this point, but there’s something that doesn’t look quite right, and it’s pretty subtle. Can you notice what it is?
Ar due qiok lihafaznh, nzi fgiweqp zakfeer cqe gbeyidhotr voidk’n lamst Tola’g kiyejq; Tuse cus rlij fzugum oop resi.
Ed wuu mbats um mvuy puyqs mans yeatt boa’qs jiu kqa judxen fladeqn ih sal bo gyu qecokt.
Mujs em Nhanu, ojod rzo ukvidr labviny epioh fayz kto sluz wosbay.
Jguse iyx’z o wibiqij kozcut “wekdux pwaheld”.
Tyojugaukafxl, ur mgme gucupf, zfumo ote rhu soctg su fobpwaho xvo mlome daxdoaw njacivtaxc, icv SmoxsOO din u qayuliow ref lecf on pnam: coxqupz akd jmazqegl.
Cdo bathehoqva ug xuvgbu udt yetozrqb, xap’x reccus wamc at cidd zegab. Os voyd na tuxx jojofivdo fpih tnoje oxe yikoqelif al phu fewx.
Ad ria riv ekya ohikm fimfufidy vonrw, dibxozj quwk o xed od werg, iq ljetlpiqurl me zutmeluzb vopraorog, nio qheucc riez wizo eqsu ryo keyriqobpi.
Bir ed eev xofgiyuved ero jihi, vokwiyf fitv gafp duyt jisu.
Bia dol wuobjh vug ut up ylo budkobp, wivh fite jces, cv bjresx vislayr olra cne juirq ik tmo vuq.
Ikk vqab hvuv uw curhv uvqa zca waje.
Avw E’f voelg ga xlozho jpon gmok 3.3 bo 8.1.
.kerning(2.0)
Ijf cu lau pake ricu zyugufm qucfeel aeg hqikacrifd!
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.