0 votes
in Swift by
What is a delegate in swift?

1 Answer

0 votes
by

Delegate is a design pattern, which is used to pass the data or communication between structs or classes. Delegate allows sending a message from one object to another object when a specific event happens and is used for handling table view and collection view events.

Delegates have one to one relationship and one to one communication.

Related questions

0 votes
asked Nov 6, 2022 in Swift by rajeshsharma
0 votes
0 votes
asked Nov 7, 2022 in Swift by Robin
...