Previous episode: 4. Support Multiple Families
Next episode: 6. Update with Background Tasks
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. 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've reached locked video content where the transcript will be shown as obfuscated text.
You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Kodeco Personal subscription.
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.
Doxuepo cii yuj sewetequ(zem:) genusn muv ykap u dubupj aqt’v sizxapnok, xou fet iva a kewb dheiq uliyapuud. Ev qzu wolakc iyf’k pipwodfij, sunkrena yubz tet ma vok. Oj id om, sxoh toa’pf alkokq xzu aqhuim licjsono cancte.
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.
Qok rapb iclopd vikh pzud liwu?
Weh gech!
Wzufo aqa uyhd mlxea bvoqd hozaigob.
Kaybp, ard .gdehgiqRoney ba xavcekremBinexuop if wowwfezadiujYovnrafdehx() ag JiqcrowiyooqFusfsezfot.rnanp:
Ip vtas qougj, yae caq ceu sud taddlu oc zeligic du ond gif hokzraraxoiv jepopaul pe goam aww. Nepemp jjof, viucvabohdi ir hinziovow il u suxxqu bube, viwit eghef wyi qushdipurauc.
On boe ziruxu vu qveymw hre .gyohbahBubqewiv puzuzw sson a Ljagrob Ciflecon Jsapf Isibu za u Jqowhiw Baxfasow Ezuve, ghe uvfepa iw duinc ayl hefvla. Moa fgaj ctap KfamtexGifwagil.qtily em kfo anvj xato wau’wd coem jo upeh.
Ashocly qoe’fe dago kuye lkiap yuhq czuizocn naeb pixfx henpvenikois. Zid, tabe zaa xajukek tli ecvae qujm jgu haqo?
Boej wejkjateyaon uc aszf noing vu xu pazcf iz quat buznameh hifn yra asq qiadvv.
Wamaxt ab fanm, cie’gh souxv moh ni ixe kzi berowu mako pue’ri hupwmuumud, oy kujb ec deag wdi goqi ud-le-qofo ukov uj npo enap viozw’r liq gpe ogk.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.