WeakValue

public class WeakValue : @unchecked Sendable

弱引用值容器类,用于解决关联值weak引用问题

  • Undocumented

    Declaration

    Swift

    public weak var value: AnyObject?
  • Undocumented

    Declaration

    Swift

    public init(_ value: AnyObject? = nil)