Delegate in Swift

Delegation is a design pattern that enables a class or structure to hand off (or delegate) some of its responsibilities to an instance of another type. Conversely speaking Delegate is nothing but a class/structure that does some work for another class or structure. Advantages of using Delegate Delegate helps in keeping Class/Struct clean. Class can… Continue reading Delegate in Swift