steipete / Aspects

Delightful, simple library for aspect oriented programming in Objective-C and Swift.
https://twitter.com/steipete
MIT License
8.4k stars 1.26k forks source link

Conform AspectIdentifier to AspectToken #170

Open zats opened 4 years ago

zats commented 4 years ago

If I'm not mistaken AspectIdentifier is what being returned by aspect_hookSelector… method If so it's advertised that it would conform to AspectToken protocol It does it in informal way (by just implementing required methods) What it means is that if we check the object returned by aspect_hookSelector… method at runtime for the protocol conformance it will actually fail which can impact user logic relying on that