Skip to content

jeongHunE/BeaconSync

Repository files navigation

BeaconSync

CI Status Version License Platform

How to use

import BeaconSync
import CoreLocation

final class ViewModel: ObservableObject {
    @Published var beacons: [CLBeacon]?
    private lazy var beaconSync: BeaconSync = BeaconSync(for: "00000000-0000-0000-0000-000000000000")
    
    func sync() {
        beaconSync.sync { [weak self] in
            self?.beacons = $0
        }
    }
}

Example

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

Requirements

Swift 5.x
iOS 14.0 ~

Installation

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

pod 'BeaconSync'

Author

jeungHunLee, [email protected]

License

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

About

iBeacon Scanner Open Source Library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published