Update README.md

This commit is contained in:
Jungpyo Hong 2021-05-27 16:07:58 -05:00 committed by GitHub
parent 86cd190db8
commit 1cc1b3144e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)