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

Let AspectIdentifier class comply with the AspectToken protocol. #134

Closed Lision closed 6 years ago

Lision commented 6 years ago

Hi~ @steipete

When i use Aspects, i write some code like this:

if ([token conformsToProtocol:@protocol(AspectToken)]) {
    [token remove];
}

But the [token remove]; is not implemented. I find this because AspectIdentifier class do not comply with the AspectToken protocol. So, I create this pull request. I sincerely hope you can merge it.

Lision commented 6 years ago

I will retry again and close this pr.