Skip to content

Commit 424f391

Browse files
committed
Fix issue with objc class names when compiling for cocoapods
1 parent 718fbef commit 424f391

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/CombineCoreBluetooth/CentralManager/Interface+CentralManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ public struct CentralManager {
172172
}
173173
}
174174

175+
@objc(CCBCentralManagerDelegate)
175176
class Delegate: NSObject {
176177
let didUpdateState: PassthroughSubject<CBManagerState, Never> = .init()
177178
let willRestoreState: PassthroughSubject<[String: Any], Never> = .init()

Sources/CombineCoreBluetooth/Peripheral/Interface+Peripheral.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ public struct Peripheral {
458458
// MARK: -
459459

460460
extension Peripheral {
461+
@objc(CCBPeripheralDelegate)
461462
class Delegate: NSObject {
462463
let nameUpdates: PassthroughSubject<String?, Never> = .init()
463464
let didInvalidateServices: PassthroughSubject<[CBService], Never> = .init()

Sources/CombineCoreBluetooth/PeripheralManager/Live+PeripheralManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ extension PeripheralManager {
5959
}
6060

6161
extension PeripheralManager {
62+
@objc(CCBPeripheralManagerDelegate)
6263
class Delegate: NSObject, CBPeripheralManagerDelegate {
6364
@PassthroughBacked var didUpdateState: AnyPublisher<CBManagerState, Never>
6465
public func peripheralManagerDidUpdateState(_ peripheral: CBPeripheralManager) {

0 commit comments

Comments
 (0)