Skip to content
A library for Swift Function Hooking.
Swift
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/Cuculus remove pring Sep 7, 2019
Tests separate assets file Sep 6, 2019
.gitignore init Sep 3, 2019
.swift-version setup ci Sep 4, 2019
.travis.yml setup ci Sep 4, 2019
Package.swift init Sep 3, 2019
README.md checked swift 4.2 Sep 7, 2019

README.md

Cuculus

A library for Swift Function Hooking. Use at your own risk.

let cat = Cat()
XCTAssertEqual(cat.bark(), "nyan")
let injector = try! SwiftFunctionInjector(cat.bark)
injector.inject(cat._bark)
XCTAssertEqual(cat.bark(), "bowwow")

Support

function
top level function
struct
enum
class ×
protocol ×
argument/return type
concrete type
generics ×
variable arguments
environment
iOS ×
iPhone Simulator
macOS
swift
5.1
5.0
4.2
You can’t perform that action at this time.