-
Notifications
You must be signed in to change notification settings - Fork 669
Open
Labels
Description
Bug Report
The bridge.viewController is not getting released since this plugin hold the strong Reference to the ViewController
on load(), which is leading to retain cycle in iOS .
Inside this class :
Please change view controller to weak :
private weak var capViewController: CAPBridgeViewController?
Plugin(s)
Plugin : screen-orientation
Platform(s)
iOS
Expected Behavior
It should be able to access the bridge.viewController as long as it stays in memory
Or
Please provide option or method to close ViewController safely without memory leaks .
Additional :
Same issue is observed with capacitor-barcode-scanner in load() , it passes viewController reference to OSBarcodeLib which strongly holds the viewController