delegate
The delegate object specified to receive peripheral events.
Declaration
weak var delegate: (any CBPeripheralManagerDelegate)? { get set }Discussion
For information about how to implement your peripheral manager delegate, see CBPeripheralManagerDelegate.