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
}
}
}
To run the example project, clone the repo, and run pod install
from the Example directory first.
Swift 5.x
iOS 14.0 ~
BeaconSync is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BeaconSync'
jeungHunLee, [email protected]
BeaconSync is available under the MIT license. See the LICENSE file for more info.