Could Struct be a Delegate in Swift?
Delegate is a general design pattern in iOS. Here’s a simple example, we have AccountView
and it needs someone to help it to update status, so we define a protocol AccountViewDelegate
and make AccountView’s delegate ScreenViewModel
to conform it.