- 
                  
                  The type of the target. Specify this via the generic argument on ClassHook.This type must be either the target’s own class or a class in its inheritance chain. DeclarationSwift associatedtype Target : AnyObject
- 
                  
                  The name of the target class, or the empty string to use Target.self.This class must be Targetor a subclass ofTarget. Defaults to an empty string.Warning Do not attempt to accesstargetin the getter for this property, as that will lead to infinite recursion.DeclarationSwift static var targetName: String { get }
- 
                  
                  If this is not .none, it indicates that this hook creates a subclass.The created subclass can be accessed via the static targetproperty. The default value is.none.This property is implemented by creating a new class pair on top of the original target, when the property is not .none.Warning Do not attempt to accesstargetin the getter for this property, as that will lead to infinite recursion.DeclarationSwift static var subclassMode: SubclassMode { get }
- 
                  
                  An array of protocols which should be added to the target class. The default value is an empty array. Warning Do not attempt to accesstargetin the getter for this property, as that will lead to infinite recursion.DeclarationSwift static var protocols: [Protocol] { get }
- 
                  
                  The current instance of the hooked class, upon which a hooked method has been called. Warning Do not attempt to implement this yourself; use the default implementation.DeclarationSwift var target: Target { get }
- 
                  
                  Initializes the type with the provided target instance. Do not override this. DeclarationSwift init(target: Target)
- 
                  
                  A function which is run before a targetis deallocated.Use this to perform any cleanup before the target is deallocated. The default implementation is equivalent to simply returning DeinitPolicy.callOrig.Important You must not call orig.deinitializer()orsupr.deinitializer()in this method. Instead, return the appropriate deinit policy.DeclarationSwift func deinitializer() -> DeinitPolicyReturn ValueA DeinitPolicyrepresenting the action to perform next.
- 
                  origExtension methodA proxy to access the original instance methods of the hooked class. DeclarationSwift public var orig: Self { get }
- 
                  origExtension methodA proxy to access the original class methods of the hooked class. DeclarationSwift public static var orig: Self.Type { get }
- 
                  suprExtension methodA proxy to access the hooked class’ superclass instance methods. DeclarationSwift public var supr: Self { get }
- 
                  suprExtension methodA proxy to access the hooked class’ superclass class methods. DeclarationSwift public static var supr: Self.Type { get }
- 
                  targetExtension methodThe concrete type of the hooked target (or its subclass depending on subclassMode).DeclarationSwift public static var target: Target.Type { get }
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           ClassHookProtocol Protocol Reference
      ClassHookProtocol Protocol Reference