Always keep smiling
See more
In Swift 1.x and Swift 2.x, closure parameter was @escaping by default, means that closure can be escape during the function body execution. if don’t want to escape closure parameter…
…tocols? My advice would be to use closures when there is a slight communication between two classes but when classes have to communicate a lot then it should be done with protocols.