Skip to content

The Bluetooth LE library for iOS and Mac. 100% Swift.

License

Notifications You must be signed in to change notification settings

sybri/IOS-BLE-Library

 
 

Repository files navigation

Platforms

iOS-BLE-Library

This library is a wrapper around the CoreBluetooth framework which provides a modern async API based on Combine Framework.

Library Versions

This package contains two versions of the library:

  • iOS-BLE-Library - the library that uses the native CoreBluetooth API.
  • iOS-BLE-Library-Mock - the library that uses the CoreBluetoothMock API.

Installation

Swift Package Manager

The library can be installed using Swift Package Manager.

You can choose between two versions of the library: iOS-BLE-Library

Or you can add it as a dependency to your library:

let package = Package(
    /// . . .
    dependencies: [
        // Set the link to the library and choose the version
        .package(url: "https://github.com/NordicSemiconductor/IOS-BLE-Library.git", from: "0.3.1"),
    ],
    targets: [
        .target(
            name: "MyLib",
            dependencies: [
                // You can use "native" CoreBluetooth API
                .product(name: "iOS-BLE-Library", package: "iOS-BLE-Library")
            ]
        ),
        .testTarget(
            name: "MyLibTests",
            dependencies: [
                "MyLib",
                // Or you can use the CoreBluetoothMock API
                .product(name: "iOS-BLE-Library-Mock", package: "iOS-BLE-Library")
            ]
        ),
    ]
)

CocoaPods

The library can be installed using CocoaPods.

Add the following line to your Podfile:

pod 'IOS-BLE-Library', '~> 0.3.2'

or

pod 'IOS-BLE-Library-Mock', '~> 0.3.2'

Documentation & Examples

Please check the Documentation Page to start using the library.

Also you can check iOS-nRF-Toolbox to find more examples.

About

The Bluetooth LE library for iOS and Mac. 100% Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.3%
  • Python 1.8%
  • Ruby 0.9%