Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

apploft/Swizzle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swizzle

Method-Swizzling for Swift.

Example

swizzleInstanceMethod(MyObject.self, "hello", "bye")

swizzleClassMethod(MyObject.self, "hello", "bye")

Using custom operator

(MyObject.self, "hello") <-> "bye"  // swizzleInstanceMethod

(MyObject.self, "hello") <+> "bye"  // swizzleClassMethod

Licence

MIT

About

Method-Swizzling for Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 87.1%
  • Objective-C 8.6%
  • Ruby 3.4%
  • C 0.9%