Capacitor iOS API
Capacitor iOS is the native runtime that powers Capacitor apps on iOS.
Bridge
The iOS bridge is the heart of the Capacitor iOS library. There are several properties and methods available on the bridge which provide information or change behavior.
When registered with Capacitor, plugins have a weak reference to the bridge:
self.bridge?
If your method requires the bridge, you can use a guard to unwrap it and perform an early exit:
guard let bridge = self.bridge else { return }
viewController
var viewController: UIViewController? { get }