mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-01-13 00:04:53 +07:00
Update README.md
This commit is contained in:
parent
86cd190db8
commit
1cc1b3144e
16
README.md
16
README.md
@ -22,8 +22,8 @@ Feel free to fork this repository and pull requests!!
|
|||||||
- [Delegation](#Delegation)
|
- [Delegation](#Delegation)
|
||||||
- [Singleton](#Singleton)
|
- [Singleton](#Singleton)
|
||||||
- [Observer](#Observer)
|
- [Observer](#Observer)
|
||||||
- [KVO]
|
- [KVO](#KVO)
|
||||||
- [KVC]
|
- [KVC](#KVC)
|
||||||
- [Code Structuring](#code-structuringarchitecture)
|
- [Code Structuring](#code-structuringarchitecture)
|
||||||
- [MVC](#MVC)
|
- [MVC](#MVC)
|
||||||
- [MVVM](#MVVM)
|
- [MVVM](#MVVM)
|
||||||
@ -106,13 +106,13 @@ put .yml file into root folder and apply following code in Build Phases
|
|||||||
|
|
||||||
Check [this](https://refactoring.guru/design-patterns/swift) website for design pattern in Swift
|
Check [this](https://refactoring.guru/design-patterns/swift) website for design pattern in Swift
|
||||||
|
|
||||||
### Delegation
|
## Delegation
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
weak var delegate: SomeProtocol?
|
weak var delegate: SomeProtocol?
|
||||||
```
|
```
|
||||||
|
|
||||||
### Singleton
|
## Singleton
|
||||||
|
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
@ -123,14 +123,16 @@ class SingletonPattern {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Observer
|
## Observer
|
||||||
|
|
||||||
Check [this Site](https://www.swiftbysundell.com/articles/observers-in-swift-part-1/) for more info
|
Check [this Site](https://www.swiftbysundell.com/articles/observers-in-swift-part-1/) for more info
|
||||||
|
|
||||||
~~The observer pattern lets one object observe changes on another object. Apple added language-level support for this pattern in Swift 5.1 with the addition of Publisher in the Combine framework.~~
|
|
||||||
|
|
||||||
TBD
|
TBD
|
||||||
|
|
||||||
|
## KVO
|
||||||
|
|
||||||
|
## KVC
|
||||||
|
|
||||||
<img src = "https://github.com/jphong1111/Useful_Swift/blob/main/Images/observer.png" />
|
<img src = "https://github.com/jphong1111/Useful_Swift/blob/main/Images/observer.png" />
|
||||||
|
|
||||||
## Code Structuring(Architecture)
|
## Code Structuring(Architecture)
|
||||||
|
Loading…
Reference in New Issue
Block a user