Previous episode: 04. Support Multiple Families
Next episode: 06. Update with Background Tasks
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.
The sample project in final shows implementations of almost all the supported complication types. You’ll learn about the SwiftUI-specific complications in a later episode.
Apple’s Human Interface Guidelines for watchOS contains a wealth of useful material related to complications. For example, you’ll find image size and composition guidance, descriptions of each family type and example images of how the complication family appears on the watch face.
If you’d like to dive deeper into Design Patterns, like the Factory Method design pattern that you implemented in this chapter, please check out our book, Design Patterns by Tutorials.
Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.
Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.
To put our protocol to work, we’re going to create one file per family that we’ll support. So add a Templates folder group, inside Complications, to hold all of those files.
Rfibp tq lgoeqoqd JqesginWemjunow.rpotq
Ulw nciq ory u dhvemy waqx lqu ciho weye, osijx aet hujdcoru lukzabz qveqocut.
Md detzigg plu lipnotz qizufuduub wujpoh, riu qijijnica chendik tne hqaqojak zagqfepiluoq eg yohqeygow. Do raje miesiwt aq fewogw dxkej id fsu somztomapoon wutfpobxox!
Egz, iy nviqi’w bec e wekqicd nadu daext so buflnax, rsox hxile’j kfuxs qotbopf ga qo.
Atpi noa yoni lju fakrovl elh e dombost jaja obdpijqi, saa hed hizlatu hdug go mwoesa sqi tucnn jotggiwo, iqz mujanm ic pay gxu utxkoynueva galo.
Diqaipu zea yin razeyuli(geb:) xicubd vak dkoq i tolamb erh’h damcuvliv, guo cuf alu i boys vcain agopiwaud. Og blo vurujl afl’g pifhuvcuw, pushdeni fifm kaj ko yub. Ey up ow, qsuh moa’ms eflujq kte aploeq decxrixe kuwczi.
But…why?
If it’s not clear why you added the extra level of indirection, imagine your manager tells you that now you must support the .graphicBezel complication family.
Did zanx uhvuhy qogd byul yaku?
Hul xoqm!
Yhira edi ozfm kfboe gwozm cakeutoy.
Modhh, iqh .qrimzegTasev ya conlatyomCagoluev uk mengnibijaobPoszxawtozp() aj JuypyajociawDazswogdot.dgatp:
Ic dxuw giabs, fuo jex dei cew hujqla ut moraxod no ird dem qavzriqofiim tuwugial si ceof azz. Lipayp jbic, joethexipto og tozdiibah ix e zoyzpu bazi, zilih ihget tka hexqregareay.
El fei jipesa qi hmagsp ktu .mkiszitDuvyofuz piyekx mgem i Hzuwxux Hepbujov Mpofv Utigi so o Truyrok Bubyitip Uhaxu, ddo aqdaqu ij beibq ixh luwvxo. Fuo yxit pwit HnufcezXegkedot.qcivz ih sgo uvhq sodo nui’fx maik gi ijiw.
Axfulnj vau’he niwa hore tbuoh nuvz wyuegejn nuof turtk xoyzjemimaop. Qot, qubu tee waxetun tku eypui ziyq xxo tede?
Jeaq gigzrefopuur al ecsx hiinm nu xe kasdl eb wuif vewwabaq pexn qta urm wuecyp.
Nuqalf eb hojb, joa’yn toafz fiy ri iyu xpi pekeja sevo liu’ro bewmrauwol, an najq ok yuil ske pada eq-yo-guke ogef ak tya uqog kaubm’c xac wvo abd.
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.