https://github.com/derekselander/swiftdizzle
Swift method swizzling/method introspection for Swift instance methods
https://github.com/derekselander/swiftdizzle
Last synced: about 1 year ago
JSON representation
Swift method swizzling/method introspection for Swift instance methods
- Host: GitHub
- URL: https://github.com/derekselander/swiftdizzle
- Owner: DerekSelander
- Created: 2018-01-27T02:12:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T19:56:32.000Z (over 7 years ago)
- Last Synced: 2025-04-02T00:35:49.959Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 450 KB
- Stars: 16
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swiftdizzle
Swift method swizzling/method introspection for Swift instance methods
Why should Objective-C's method Swizzling or C's DYLD interpose, or C's lazy stubs `__DATA.__la_symbol_ptr` get all the introspection fun? **swiftdizzle** is a nice little C function that can introspect pure Swift functions at runtime.

In the above example, take note that `viewDidLoad()` is calling `someFunction()`, but `omagerdFunction()` is called instead. The potential infinite recursion of `omagerdFunction()` calling itself will actually call `someFunction()` instead.
## How to use swiftdizzle
TODO
## How does swiftdizzle work?
TODO