WeakProxy

@MainActor
public class WeakProxy : NSObject, WKScriptMessageHandler

JS桥接WKScriptMessageHandler弱引用代理类,解决delegate无法释放问题

  • Undocumented

    Declaration

    Swift

    @MainActor
    public weak var delegate: WKScriptMessageHandler?
  • Undocumented

    Declaration

    Swift

    @MainActor
    public init(delegate: WKScriptMessageHandler?)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage)