Closed natansh closed 8 years ago
I like @kastiglione's solution a bit more, seems cleaner :)
@b3ll I agree. It's cleaner to do it as @kastiglione suggested since it's needed in just one location.
@b3ll I'll leave the merge button all to you.
💯
iOS 10, Beta 2 introduced changes to
CALayerDelegate
andCAAnimationDelegate
, both of which are now proper protocols instead of informal ones.This can be seen in the API diffs.
This PR fixes the warnings by introducing a macro which compiles to those two delegate protocols when on the iOS 10 SDK but compiles to a placeholder protocol when using the iOS 9 SDK or below.
Fixes #63.