Latest 1.0.3
Homepage https://github.com/greenSyntax/BeaconBox
License MIT
Platforms ios 9.0
Frameworks UIKit, CoreLocation
Authors

Beacon Box

CI Status
Version
License
Platform

Features

  • [x] Scan iBeacons
  • [x] Stop Scanning
  • [x] Calculate Distance with Accuuracy
  • [ ] Act as a iBeacon

Installation

To run the example project, clone the repo, and run pod install from the Example directory first.

BeaconBox is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'BeaconBox'

Procedure

Pre-requisite

  1. Add CoreLocation Authorization Key in your project’s Info.plist
  • NSLocationWhenInUseUsageDescription
  • NSLocationAlwaysUsageDescription
  • NSLocationAlwaysAndWhenInUseUsageDescription
  1. UUID of your iBeacons

Scan iBeacons


// Note: Check with your iBeacon Manufacture for UUID of iBeacons

if let myUUID = UUID(uuidString: "f7826da6-4fa2-4e98-8024-bc5b71e0893e") {

BeaconBox.shared.scan(uuid: myUUID) { (beacons, error) in

    guard let beaconError == error else {

        // onFail
        print(beaconError)
        return
    }

    // onSuccess
    print("Found Beacons : (beacons.count)")

}

Stop Scanning


BeaconBox.shared.stop(onCompletion: { (status) in

    if status {
        print("Successfully Stoped ...")
    }
}

})

Versions

v1.0.2

  • [x] Added Example
  • [x] Updated README
  • [x] Scan iBeacons
  • [x] Stop Scanning
  • [x] Calculate Distance with Accuuracy

Author

Abhishek Kumar Ravi

License

BeaconBox is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BeaconBox",
    "version": "1.0.3",
    "summary": "Scan Your iBeacons with a single of code",
    "description": "BeaconBox is a Swift Library which overcomes your iBeacons Scan Code. It will make your life easy whenn you are dealing with iBeacons.",
    "homepage": "https://github.com/greenSyntax/BeaconBox",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Abhishek Kumar Ravi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/greenSyntax/BeaconBox.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "BeaconBox/Classes/**/*",
    "frameworks": [
        "UIKit",
        "CoreLocation"
    ]
}

Pin It on Pinterest

Share This