In the previous chapter, we used a Coordinator as our delegate for a UITextView. But we also realized the coordinator setup is just a helpful mechanism.
We could have made a new class for the delegate. Or we could have made the coordinate implement more protocols. The class we named Coordinate could have been named something else. I can inherit from another class and can implement what we need.
So can we use this same mechanism for the target/action pattern? Yes.
If you have an existing UIView, we’ve already seen you can use it with the UIViewRepresentable protocol. Declare its properties ...