Skip to content

michaelkamphausen/Swizzle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 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.0%
  • Objective-C 9.5%
  • Ruby 3.5%