SwizzleStore

public class SwizzleStore<MethodSignature, SwizzleSignature> : @unchecked Sendable

方法交换存储器

MethodSignature示例:(@convention© (NSObject, Selector) -> Void).self SwizzleSignature示例:(@convention(block) (NSObject) -> Void).self

  • 交换类

    Declaration

    Swift

    public let `class`: AnyClass
  • 交换方法

    Declaration

    Swift

    public let selector: Selector
  • 方法原始实现

    Declaration

    Swift

    public let original: MethodSignature