Proxy Design Pattern
5 min readFeb 23, 2021
In this post we talk about the Proxy
design pattern and a simple example how to use it, in this case, in iOS applications to prevent retain cycles in an effective and clean way.
What is the Proxy design pattern?
As defined in the book Design Patterns by Gamma, Johnson, Vlissides, Helm and collaborators, the proxy design pattern is defined:
Provide a surrogate or placeholder for another object to control access to it. It makes consumers believe they’re talking to the real implementation.