Category: Swift
Delegates & callbacks in Swift (part 1)
Introduction: CallBacks and Delegation are one of the often tools using by Swift developers. In this article, I try to explain the differences between them in point of view using and memory management. What is delegation? Delegation is a common design pattern where one class/struct delegates responsibility of implementing some functionality to another (the delegated class or struct). […]