I am working on BLE iOS (Swift) application which has multiple ViewControllers. The main ViewController has a button which navigates to TableViewController which has detecte
Create a Singleton class and add bleManager and peripheral properties there:
class Shared {
private init(){ }
static let instance = Shared()
var bleManager: BLEManager!
var peripheral: CBPeripheral!
}
And you can access the same instance through different controllers:
Shared.instance.bleManager = BLEManager()