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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ InterposeKit is a modern library to swizzle elegantly in Swift. It is fully writ
13
13
Instead of [adding new methods and exchanging implementations](https://nshipster.com/method-swizzling/) based on [`method_exchangeImplementations`](https://developer.apple.com/documentation/objectivec/1418769-method_exchangeimplementations), this library replaces the implementation directly using [`class_replaceMethod`](https://developer.apple.com/documentation/objectivec/1418677-class_replacemethod). This avoids some of [the usual problems with swizzling](https://pspdfkit.com/blog/2019/swizzling-in-swift/).
14
14
15
15
You can call the original implementation and add code before, instead or after a method call.
16
-
This is similar to the [Aspects library](https://github.com/steipete/Aspects).
16
+
This is similar to the [Aspects library](https://github.com/steipete/Aspects), but doesn't yet do dynamic subclassing.
17
17
18
18
## Usage
19
19
@@ -116,11 +116,11 @@ Add `github "steipete/InterposeKit"` to your `Cartfile`.
116
116
- Write proposal to allow to [convert the calling convention of existing types](https://twitter.com/steipete/status/1266799174563041282?s=21).
117
117
- Use the C block struct to perfom type checking between Method type and C type (I do that in [Aspects library](https://github.com/steipete/Aspects)), it's still a runtime crash but could be at hook time, not when we call it.
118
118
- Add object-based hooking with dynamic subclassing (Aspects again)
119
-
- Add dyld_interpose to hook pure C functions
119
+
- Add [dyld_dynamic_interpose](https://twitter.com/steipete/status/1258482647933870080) to hook pure C functions
120
120
- Combine Promise-API for `Interpose.whenAvailable` for better error bubbling.
121
-
- Experiment with Swift hooking? 🤡
121
+
- Experiment with Swift hooking? ⚡️
122
+
- Test against Swift Nightly as Chron Jpb
122
123
- I'm sure there's more - Pull Requests or [comments](https://twitter.com/steipete) very welcome!
0 commit comments