scanning
A Boolean value that determines whether the central manager is scanning for peripherals.
Declaration
var scanning: Bool { get set }Discussion
Set this property to true to start scanning for peripherals. Upon discovering a peripheral, the central manager calls the delegate’s centralManager(_:didDiscover:withAdvertisementData:rssi:) method.