Swiftpack.co -  PureSwift/Bluetooth as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Pure Swift Bluetooth library
.package(url: "https://github.com/PureSwift/Bluetooth.git", from: "5.1.1")


Swift Platform Release License

Build Status CodeBeat Docs

Pure Swift Bluetooth Definitions.


import Bluetooth

let uuid128bit = BluetoothUUID(rawValue: "60F14FE2-F972-11E5-B84F-23E070D5A8C7")
let uuid16bit = BluetoothUUID(rawValue: "FEA9")
let address = BluetoothAddress(rawValue: "00:1A:7D:DA:71:13")


Swift Package Manager

import PackageDescription

let package = Package(
    name: "hcitool",
    products: [
        .executable(name: "hcitool", targets: ["hcitool"])
    dependencies: [
        .package(url: "https://github.com/PureSwift/Bluetooth.git", .branch("master"))
    targets: [
            name: "hcitool",
            dependencies: [


Read the documentation here. Documentation can be generated with Jazzy. For more information, see the gh-pages branch.

See Also

  • BluetoothLinux - Pure Swift Linux Bluetooth Stack
  • BluetoothDarwin - Low Level Swift Bluetooth library for the Darwin kernel
  • AndroidBluetooth - Swift Bluetooth stack for Android
  • GATT - Bluetooth Generic Attribute Profile (GATT) for Swift
  • Netlink - Swift library for communicating with Linux Kernel Netlink subsystem (Linux Only)
  • DBus - Swift library for DBus (Linux Only)
  • Silica - Pure Swift CoreGraphics (Quartz2D) implementation
  • Predicate - Pure Swift Predicate implementation
  • TLVCoding - Swift TLV8 (Type-Length-Value) Encoding library


Bluetooth is released under the MIT license. See LICENSE for details.


Stars: 77
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

4 weeks ago
  • #135 Fixed Body Composition Measurement Unit
  • 7db28cf0105d8e510f23c892709890dba00a0ad0 Updated HCILESetScanParameters for Bluetooth 5.0
  • d3f46b4aeafe1e31d00b18bc59bff101076618cb Updated HCIVersion for Bluetooth 5.2

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API