NordicSemiconductor / IOS-CoreBluetooth-Mock

Mocking library for CoreBluetooth framework.
BSD 3-Clause "New" or "Revised" License
225 stars 51 forks source link

KVO Support #96

Closed NickKibish closed 1 year ago

NickKibish commented 1 year ago

Added @objc modificator to isScanning property to make it observable.

Example

func setup() {
     obserwation = observe(\.cm?.isScanning,
                           options: [.old, .new],
                           changeHandler: { _, change in

        change.newValue?.flatMap { new in
            print("Is Scanning: \(new)")
        }
    )
}
CLAassistant commented 1 year ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Nick Kibysh seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.