iosWebViewFix/ios/Classes/LeakAvoider.swift
Lorenzo Pichilli 6a7963e4fd fixed android zoom, added new ios webview options, added
>  onLongPressHitTestResult event, updated test cases, fixed Promise polyfill, fixed android options
2020-05-09 04:36:07 +02:00

26 lines
537 B
Swift
Executable File

//
// LeakAvoider.swift
// flutter_inappwebview
//
// Created by Lorenzo Pichilli on 15/12/2019.
//
import Foundation
public class LeakAvoider: NSObject {
weak var delegate : FlutterMethodCallDelegate?
init(delegate: FlutterMethodCallDelegate) {
self.delegate = delegate
super.init()
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
self.delegate?.handle(call, result: result)
}
deinit {
print("LeakAvoider - dealloc")
}
}