From 0d839b6eb7e5622900dbe685882b0be7cd99e99e Mon Sep 17 00:00:00 2001 From: Oguz Yuksel <74555694+OguzYuuksel@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:13:48 +0100 Subject: [PATCH] fix setter of proxyDelegate --- Sources/CombineBluetooth/Models/BluetoothPeripheral.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CombineBluetooth/Models/BluetoothPeripheral.swift b/Sources/CombineBluetooth/Models/BluetoothPeripheral.swift index abd187a..ff8773f 100644 --- a/Sources/CombineBluetooth/Models/BluetoothPeripheral.swift +++ b/Sources/CombineBluetooth/Models/BluetoothPeripheral.swift @@ -13,7 +13,7 @@ public protocol BluetoothPeripheral: BluetoothPeer { /// `CBPeripheralDelegate` which gets referenced weakly and peripheral's delegate calls /// get proxied to. Be aware that the `CBPeripheral` within the delegate methods get passed by reference /// so in case you access their delegate you might overwrite it, thus cancelling this proxyDelegate. - var proxyDelegate: CBPeripheralDelegate? { get set } + var proxyDelegate: CBPeripheralDelegate? { get nonmutating set } func readRSSI() -> AnyPublisher func discoverServices(_ serviceUUIDs: [CBUUID]?) -> AnyPublisher