is now LinkedIn Learning!

To access courses again, please join LinkedIn Learning

All the same content you know and love

Plus, personalized course recommendations tailored just for you

All the same access to your Lynda learning history and certifications

Try LinkedIn Learning for free
Questions? Visit our help center.
Skip navigation

Swinject overview

Swinject overview: iOS App Development: Design Patterns for Mobile Architecture
Swinject overview: iOS App Development: Design Patterns for Mobile Architecture

This is a walk through a typical implementation of a Swinject Dependency Repository. Dependency Injection just means that we don't create classes within another class. The created classes (i.e. the dependencies) are instead created by a single class who manages the life cycle of dependencies. This simplifies what is needed in order to get any 1 class up and running, especially if we just use protocols instead of concrete implementations. This process completely decouples our layers and allows us to use mocked (i.e. faked) layers to work with until another layer is created. It speeds up development and simplifies logic. You can either create your own Dependency Injection class and handle the creation yourself, or with Swift, we have a great option called Swinject. We also will cover the idea of maker methods that handle the creation of other objects (Table Cells, Views, etc. ).

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 52m
Show More Show Less
Skills covered in this course
Developer Mobile Apps Mac OS iOS

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month

You are now leaving and will be automatically redirected to LinkedIn Learning to access your learning content.