NordicSemiconductor / IOS-CoreBluetooth-Mock

Mocking library for CoreBluetooth framework.
BSD 3-Clause "New" or "Revised" License
225 stars 51 forks source link

Simple CBMPeripheral implementation for Swift UI Previews #88

Closed philips77 closed 1 year ago

philips77 commented 1 year ago

This PR adds a very limited CBMPeripheralPreview class. This is an implementation of CBMPeripheral designed to work with Swift UI Previews.

This can be useful to populate list of scanned peripherals, showing a device on a screen, when the normal mock peripheral requires connection, service discovery, etc. The new class is open and can be extended with custom implementation.