Swift Bluetooth

Swift BLE libraries, compared

CoreBluetooth and the libraries built on it, side by side. SimpleBLE gives your iOS and macOS apps async/await Bluetooth as a central or a peripheral, with the same API your team uses in every other language.

Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Comparison

How the Swift BLE libraries compare

Roles, API style, and reach beyond Apple platforms decide which library fits a commercial Swift app. This is where each one stands.

How the Swift BLE libraries compare
SimpleBLESimpleSwiftBLEiOS, iPadOS, macOS, Mac CatalystCentral and peripheralasync/await and AsyncStreamC++, Python, Kotlin, Rust, and moreSource-available (BUSL 1.1); one commercial license per company
CoreBluetoothApple frameworkEvery Apple platformCentral and peripheralDelegatesObjective-C, on Apple platforms onlyIncluded with Apple platforms
AsyncBluetoothAsyncBluetoothiOS, macOSCentralasync/awaitSwift onlyMIT
CombineCore­BluetoothStarryiOS, macOS, tvOS, watchOSCentral and peripheralCombine publishersSwift onlyMIT
The options

The Swift BLE options, one by one

SimpleBLE

SimpleBLE is a Bluetooth Low Energy library for Windows, macOS, Linux, iOS, and Android. Its Swift package, SimpleSwiftBLE, scans and connects as a central and hosts GATT services as a peripheral on iOS, iPadOS, macOS, and Mac Catalyst, with async/await and AsyncStream throughout. Peripherals are Identifiable for SwiftUI lists, and on macOS the same code drives a Dongl USB adapter. The library also runs in C++, Python, Kotlin, Rust, and other languages, and commercial customers work directly with the engineers who build it.

CoreBluetooth

CoreBluetooth is Apple's Bluetooth framework, with a central manager on every Apple platform and a peripheral manager on iOS, iPadOS, and macOS. It reports events through delegate callbacks, so an app builds its own state handling, queueing, and timeouts around it. SimpleBLE runs on CoreBluetooth and gives you that layer done and maintained, with async/await calls and streams of events.

AsyncBluetooth

AsyncBluetooth wraps CoreBluetooth's central role in async/await APIs and queues commands, under the MIT license. It has no peripheral role, so an app that advertises or hosts GATT services goes back to CoreBluetooth for that side. SimpleBLE covers both roles with one async API.

CombineCore­Bluetooth

CombineCoreBluetooth, from Starry, exposes CoreBluetooth's central and peripheral managers as Combine publishers, under the MIT license. Its README notes that the peripheral side has not been tested as rigorously as the central side. SimpleBLE uses async/await and AsyncStream, and the same library runs in your test tools outside Swift.

Get started

Scan, connect, and host with async/await

SimpleSwiftBLE is a Swift package. Add it in Xcode or Package.swift, and this is the code for each step.

import SimpleSwiftBLE

let adapter = try Adapter.getAdapters().first!

try await adapter.scanFor(timeoutMs: 5000)
for peripheral in try adapter.scanGetResults() {
    print("\(peripheral.identifier) [\(peripheral.address)]")
}
Why SimpleBLE

What SimpleBLE gives your Swift app

Concurrency

async/await, no delegates

Every call is async, and every event is an AsyncStream. No delegate state machines.

Roles

Central and peripheral

Scan and connect, or advertise and serve GATT, in one API.

SwiftUI

Ready for SwiftUI

Peripherals are Identifiable, and async calls are safe from the main actor.

Hardware

Dongl on macOS

Plug in a Dongl for a dedicated radio on your Mac. Same code.

Tools

One library, every tool

Test rigs and companion apps use the same SimpleBLE in C++, Python, or Kotlin.

Support

A direct line to the engineers

Commercial customers work directly with the team that builds SimpleBLE.

Try SimpleBLE in your Swift app

Evaluation needs no license. For commercial use, one agreement covers your whole company, with no per-seat, per-device, or royalty fees.

Frequently
asked questions

CoreBluetooth gives you every Apple platform and both roles through delegate callbacks, and your app builds the state handling around them. A library like SimpleBLE runs on CoreBluetooth and gives you async/await calls, event streams, and both roles, maintained for you.

SimpleBLE, CoreBluetooth, and CombineCoreBluetooth support the peripheral role. AsyncBluetooth works in the central role.

Yes. Peripherals are Identifiable, so they drop into SwiftUI lists, and the async calls never block Swift's cooperative thread pool, so you can call them from the main actor.

Yes. On macOS, SimpleSwiftBLE drives a Dongl USB adapter with the same code it uses for the Mac's built-in Bluetooth, and your app handles pairing through a Dongl itself.

Yes. SimpleBLE runs on Windows, macOS, Linux, iOS, and Android, in C++, Python, C#, Kotlin, Rust, and other languages, so test rigs, factory tools, and companion apps share one Bluetooth library with your Swift app.

SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees.