I am trying to swizzle a Swift function that contains a StaticString parameter.
Here is what I tried:
let method = class_getClassMethod(self, original1)
class ABC {
public static func updateABC(context: Int, str: StaticString) {
}
}
However, this doesn't work, if I change the type of str to String, we can swizzle properly, anyone has chance to swizzle a function with StaticString type parameter could help out?
Thanks