How are callbacks supposed to be passed to a UIContentView?

From what I understand, you’re meant to pass information like a view model to a content view through its configuration state. What about callbacks (e.g. something like didClickButton)? They aren’t “inputs” into the content configuration like a view model would be, but it feels odd to create and apply a content configuration only to specify callbacks and nothing else.

This depends on your use case. You can pass callbacks through the configuration, handle them via delegation, or assign the closure to the content view.

How are callbacks supposed to be passed to a UIContentView?
 
 
Q