In today's video we will be looking at how we can get started with dependency injection, and how it simplifies are project structure and promotes increased reusability in our code. We will also be covering how we can handle multiple dependency injection, and how we can use property wrappers to further clean this project.
Source code: github.com/fed...
00:00 Intro
01:38 Dependency Injection Example
04:23 Multiple Dependency Injection
08:30 Property Wrappers
10:42 Sample Classes
13:17 Dependency Providers
14:52 Injected Dependencies
17:39 Why did we do this?
18:48 Mock Data
20:24 Wrapping it up
Негізгі бет Learn Dependency Injection for SwiftUI / UIKit (iOS Tutorial)
No video
Пікірлер: 9