RxCoreBluetooth is a CoreBluetooth Extension for RxSwift
/// Bind CBManager State
centralManager.rx.state
.bind { state in
state == .powerOn
}.disposed(by: disposeBag)
/// Bind Discovered Peripheral
centralManager.rx
.didDiscover
.bind { discovered in
discovered
}
.disposed(by: disposeBag)
- iOS 10.0 +
- Swift 3.0 +
- Xcode 8.0 +
RxCoreBluetooth is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RxCoreBluetooth'
Won, trilliwon@gmail.com
RxCoreBluetooth is available under the MIT license. See the LICENSE file for more info.