Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
9 lines
807 B
Markdown
9 lines
807 B
Markdown
# Delegate Pattern
|
|
|
|
The delegate pattern is a core design pattern in iOS where one object delegates responsibility for certain behaviors to another through a protocol. UIKit uses delegation extensively, with UITableViewDelegate, UITextFieldDelegate, and URLSessionDelegate being common examples. Delegates allow customization of behavior without requiring subclassing.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Mastering Swift Delegates](https://www.dhiwise.com/post/mastering-swift-delegates-a-comprehensive-guide)
|
|
- [@article@A Step-by-Step Guide to the Delegate Pattern in Swift](https://medium.com/@afonso.script.sol/a-step-by-step-guide-to-the-delegate-pattern-in-swift-91a28de1baf8)
|
|
- [@video@Swift Delegate Protocol Pattern Tutorial 2023](https://www.youtube.com/watch?v=qiOKO8ta1n4) |