BlockExtensionClosure

@objcMembers public final class BlockExtensionClosure: NSObject, BlockExtension

Wraps extension code in a closure so it can be executed on a Block during its initialization.

  • Creates a block extension.

    Declaration

    Swift

    public init(_ closure: @escaping (Block) -> Void)
  • Runs extension code on a given block.

    Declaration

    Swift

    public func run(block: Block) throws