File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ If you’re adding InterposeKit using a `Package.swift` manifest, include it in
3535
3636```
3737dependencies: [
38- .package(url: "https://github.com/structuredpath/InterposeKit", from: "0.5.0")
38+ .package(url: "https://github.com/structuredpath/InterposeKit", from: "0.5.0")
3939]
4040```
4141
4242Then add the product to any target that needs it:
4343
4444```
4545.target(
46- name: "YourTarget",
47- dependencies: [
48- .product(name: "InterposeKit", package: "InterposeKit")
49- ]
46+ name: "YourTarget",
47+ dependencies: [
48+ .product(name: "InterposeKit", package: "InterposeKit")
49+ ]
5050)
5151```
5252
@@ -134,6 +134,7 @@ let hook = try Interpose.applyHook(
134134 hookSignature : (@convention (block) (MyClass) -> Int ).self
135135) { hook in
136136 return { `self ` in
137+ // Retrieve the original result and add 1 to it. This can be skipped.
137138 return hook.original (`self `, hook.selector ) + 1
138139 }
139140}
You can’t perform that action at this time.
0 commit comments