delegate
The delegate object that handles browser-view-controller-related events.
Declaration
weak var delegate: (any MCBrowserViewControllerDelegate)? { get set }Discussion
A browser view controller notifies the delegate:
When the user presses the “Done” button, which is enabled when the specified minimum number of peers are connected in a session.
When the user cancels the view controller.
Also, as new peers are discovered, the delegate can choose whether to present them in the user interface.