mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2024-12-22 22:25:38 +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)
|
||||
- [Singleton](#Singleton)
|
||||
- [Observer](#Observer)
|
||||
- [KVO]
|
||||
- [KVC]
|
||||
- [KVO](#KVO)
|
||||
- [KVC](#KVC)
|
||||
- [Code Structuring](#code-structuringarchitecture)
|
||||
- [MVC](#MVC)
|
||||
- [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
|
||||
|
||||
### Delegation
|
||||
## Delegation
|
||||
|
||||
```swift
|
||||
weak var delegate: SomeProtocol?
|
||||
```
|
||||
|
||||
### Singleton
|
||||
## Singleton
|
||||
|
||||
|
||||
```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
|
||||
|
||||
~~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
|
||||
|
||||
## KVO
|
||||
|
||||
## KVC
|
||||
|
||||
<img src = "https://github.com/jphong1111/Useful_Swift/blob/main/Images/observer.png" />
|
||||
|
||||
## Code Structuring(Architecture)
|
||||
|
Loading…
Reference in New Issue
Block a user