UB 0.2.0

UB 0.2.0

Maintained by Dean Eigenmann.



UB 0.2.0

  • By
  • Eric Tu and Dean Eigenmann

UB.swift

Build Status License Maintainability Pod

UB.swift is the swift implementation of the Ultralight Beam protocol, its primary focus is to provide an SDK for iOS and OSX devices.

Requirements

  • iOS 9 or later
  • OSX 10.13 or later
  • Swift 5.0 or later

Installation

Swift Package Manager

dependencies: [
  .package(url: "https://github.com/ultralight-beam/UB.swift.git", from("0.1.0")),
],
targets: [
  .target(
    name: "Target",
    dependencies: ["UB"]
  ),
]

Cocoapods

pod 'UB'

Usage

Using the UB within your own project is kept simple, it requires initializing a Node that requires a delegate. Various transports can be added to a Node enabling sending and receiving messages through them.

import UB

let node = Node()
node.delegate = self

node.add(transport: CoreBluetoothTransport())

node.send(...)

License

UB.swift is licensed under the Apache License