Update README.md

This commit is contained in:
Jungpyo Hong 2021-06-23 05:53:45 -05:00 committed by GitHub
parent c21a8efa5f
commit 225e7a2862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ Dependency injection is a pattern that can be used to eliminate the need for sin
### Type of Dependency Injection
1. initializer injection
**1. initializer injection**
``` swift
class DataManager {
@ -180,7 +180,7 @@ Dependency injection is a pattern that can be used to eliminate the need for sin
}
```
2. property injection
**2. property injection**
```swift
import UIKit
@ -192,7 +192,7 @@ class ViewController: UIViewController {
}
```
3. method injection
**3. method injection**
```swift
import Foundation