Delegate Pattern

UIkit

what is delegate pattern

  • def : delegate is an object that executes group of methods on behalf of an another object.
  • delegate is a design pattern.
  • most of the common views in UIkit use this pattern. ex: text views, pickers, tables and collection.

reference

https://tarikdahic.com/posts/the-holy-grail-of-uikit-delegate-pattern/