VIPER Design pattern in iOS
vincentb·@arwy·
0.000 HBDVIPER Design pattern in iOS
Hi Friends, This post is in continuation with my earlier STEEMIST post - https://steemit.com/vincentb/@arwy/design-patterns-in-ios The latest pattern which is getting attention in iOS now a days is VIPER design pattern as it helps in designing and testing iOS apps. The word VIPER is a backronym for View, Interactor, Presenter, Entity, and Routing. View: Class that has all the code to show the app interface to the user and get their response. Upon receiving the response View alerts the Presenter. Presenter: Nucleus of a module. It gets user response from the View and work accordingly. Only class to communicate with all other components. Calls the router for wire-framing, Interactar to fetch data (network calls or local data calls), view to update the UI. Interactor: Have business logics of an app. Primarily make API calls to fetch data from a source. Responsible for making data calls but not necessarily from itself. Router: Does the wire-framing. Listen from the presenter about which screen to present and executes it. Entity: Contains model classes used by interactor. For in-depth understanding of this design pattern, you can visit - https://www.objc.io/issues/13-architecture/viper/
👍 danh, floriwi, gentstudent, danstatus, herou, uncatim, arwy, soulmynd, healthproducts, kib, marc12, streetlethal, sol0mon, vayacanalla, milarepa0907, freedomvigilante, bobbiejoe, gchan129, fisker, itissimple, invisionthis, jerome-colley, gooner9, iferyaya, crypto-photo, maroof44, fundposhprincess, storyden, daplex, banjo, vinnu, swagger, tech-trends, mrlogick, drotto, heelzkinu, johnnycopper1, jatinhota, nidhisrecipes, dagentlemang, myawakening, rotorbird, erodedthoughts, yokee2, shyne, jonasz, lothendriel, optionable, mystfileman, nickmorphew, rigike94, georgewood, pranksters, the-owl, thegwench, soyd, universe1, saint0211, ilovethesteem, apenjoch6, theriseofjake, frankiecoss, lt4632, pmic, karvic, kryptopolis, yodywills1, vincenttan, karolax, louiscyphre, saleemshaik, lboogy, aotearoa, mxgurule, xdlbx, jmfreeman, shinday, rohitkashyap, dalmoazevedo, dzi, cryptomaniac6, kingcolin001, matrixcardinals, lemargina, catmark, luca21, yass.g13, flayzztv, kingscrypto, desy2, mrs.ginger, bogvic, cryptolightspeed, davidvahabi, sergeezy34, cryptoniche, spain-assured, r3v3rs3st, chalkdust24, james.deveron, jorgev22, silvio-b, gibsonmartell, trolkien, mitchlol57, lalitjoshi, gerebus, thegreatlife, keith621, kwlbrdr, cantelog, hawkmoney, colinmc, cryptoryno33, hns101, swissmade1, s1rwilliam, sir-kessler, merbz,