Skip to content

Commit 4627937

Browse files
authored
Update README.md
1 parent 5123316 commit 4627937

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Hi there 👋 and Interpose
6363
## Key Facts
6464

6565
- Interpose directly modifies the implementaton of a `Method`, which is [better than selector-based swizzling]((https://pspdfkit.com/blog/2019/swizzling-in-swift/)).
66+
- Hooks can easily be undone via calling `revert()`. This also checks and errors if someone else changed stuff in between.
6667
- Pure Swift, no `NSInvocation`, which requires boxing and can be slow.
6768
- No Type checking. If you have a typo or forget a `convention` part, this will crash at runtime.
6869
- Yes, you have to type the resulting type twice This is a tradeoff, else we need NSInvocation or assembly.

0 commit comments

Comments
 (0)