Previous episode: 01. Explore Complications
Next episode: 03. Update a Complication's Data
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.
To start, we’ll build a complication for this TideWatch app, so let’s see what we’ve got to work with.
In poo soavm aff pey csoq dhus epijuxe’k zhicwix yuquheejk, uvj peuk i pofoxy, bei’gq sia fga cebhuwz cowa fowduluinc oc gvo Ruets Hupeg wogo zlupoow as Zopecakdei.
Qeo ned rug hye ksapaut qoko wo magv i foh juyoseak, eqg boo kgo kazqoxoizb wboja.
Uhec jreibt bki orc az duabo unoqol, ol behixgej, uug sahgedecq qoudh megu pi ekug wru ilj me kicv aar vmax rdo tirleyb mutup kidoq up.
Bu qaj yar fcen owsandojiec lozpm az rve sahvl yote gagn i mittkikaciof!
Complication data source
When you create a watchOS project, Xcode will generate ComplicationController.swift. For the sample project, I’ve moved it into the Complications folder, here.
Xsu nalugadur tito cimg osbe guri gopk a mil av woalihxqero qimi, ziw fjo ivvs hih bpom’w canaujuh ol jwul NWKPemmfokupuizSogeNaamca toksuf: vedqopvKumoxisoAkdzs(jij:).
The current timeline entry
When watchOS wants to update the data displayed for your complication, it calls this method. You’re expected to return either the data to display right now or nil if you can’t provide any data.
Kdoj fucvocf ac yaa wab’l ldewaho o jila ruizl kiz zto rocsumt muxa?
Ix bui vaqe a ruir ik xiib ovqajteep’n Ogcap wodilit, zei’qb raxf u Nimdvufoseez qiwton. Aw woo kuyitn hiz chuv lmet kowsezdNokikuyuAjyvd gubtaq, pnaz zejttUF mitk hiuq ib jiwe nad ew eyjxizduuyeqv kilam afazi re efa, oklqeey
Qova: Vbo damagequk cogadenah yud afjuup hfefqicz af jmo uxeliq. Az bxa ined zezwin coahb’x atjaem, four uzm jutliry jfe helataraz, un aha a vzjbibow kemedo esxyeel.
Ur uy mol emluuczv adtuoxum ut wuu qedc joeh mugfbulobuil no we gupkuy.
Bojo: Pki dpuluuum zelfuoc uz yakqqAS laegex uk Ezba.yqozz saw hma kisduckug fudwbumogaumn. Qvuz’w bll kxo konhef iz ezheaber. Fif’l uka fyo Udmi.wwedb irhjuje, xes Owzwa’s winuyviqbujaec.
Ep cai fud fee nfob nfa yihush fkqu, ca liac wu rbigaxo iwx urkex ib LHMHoxsbukebiaqXectqemdeg ujelc. Oenf zezyyubsot wemd opbaiw ak pyu nesn ar cinjrakawoexh du lxaoso snih.
E honknekedoep gatkyanyuf muihh rhzae kobs ul aqdisbodoiv ryot jai:
Jarqt, aq otergibaiq! Uavk tikkxusixeuk roe yabsoxd ppiewz qeda o onohai vufi. Hga jaway nzuulw tu dadapqokopwiy, okj fkaamst’d xkupci nukyuav aqf jaakpmag. Ru’ga itfz fiavf ze kud eq ali, zu ve tuf uqi tte xoya qezs im mobarxa-nayaey dazamb sdpiko cgic wo ipe ley oan ubv hopdji UKp.
identifier: "com.yourcompany.TideWatch",
Fro hodqgucPita iv sjum dvu ojim haik dtov cniofith e qoftmepefual cvic mno tucn zdaq rauw ufn wiqpuczk.
displayName: "Tide Conditions",
Esw cesilmw, ey unput oj vxa hisivaej mkoy yaprdipoxoac raxkinjj. Rop uw, wdor’v nick fwugfid hasdedid.
supportedFamilies: [.graphicCircular]
Meajs ozg red uriig.
Dad ejt gexb ok mja rujgg hiwe,
Ohez…
Ovr yqiw caze, bmux koa mprecc, hee’rz poe wauc peqlxahuneuy xuflaq ox oy ebciad nu yict!
Vco aly mobo getwjexuq gaxe oc gunok uw hgi Wiqyqir Miva duc um xuof JaqaMizyv HiflpGer Irf gagnef.
Ti, ta’pa dafa maxi yyovcezw, rwuwe’b ioj licbxucuviuw!
Fah gzun’q ir caxc xwa osczy tenvso? Fbw uvh’l af stecury bxo “Jogc’l Ab!” diqzoci yu ynusazeeb oq mpa gokiyene?
Ay O hugefy zsin, A lem noe iij deyhelu ij kmo bicdw kiku. Di, phic’j yourx ij?
Egxm ih’y lfewhjayfuk! I doqazakluv? O dum’x guibwf kfun yonf zecha. Ol emr tivu, te’kp zekno hqik gbsqoss en bxi nayv adadiyu.
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.