You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ Hi there 👋 and Interpose
63
63
## Key Facts
64
64
65
65
- 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.
66
67
- Pure Swift, no `NSInvocation`, which requires boxing and can be slow.
67
68
- No Type checking. If you have a typo or forget a `convention` part, this will crash at runtime.
68
69
- Yes, you have to type the resulting type twice This is a tradeoff, else we need NSInvocation or assembly.
0 commit comments