Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 10 Warning: Assigning to 'id<CAAnimationDelegate> _Nullable' from incompatible type 'BEMCheckBox *const __strong' #25

Closed
Signoo opened this issue Jul 12, 2016 · 5 comments
Labels

Comments

@Signoo
Copy link
Contributor

Signoo commented Jul 12, 2016

I've just downloaded XCode 8.2 and the compiler returns this warning:
Assigning to 'id<CAAnimationDelegate> _Nullable' from incompatible type 'BEMCheckBox *const __strong'
In each line where you set the delegate inside the addOnAnimation function.

I just found it out and posted it here, if I found a solution i'll let you know

@Signoo
Copy link
Contributor Author

Signoo commented Jul 12, 2016

Ok actually it was easy to fix, in BEMCheckBox.h I just had to replace the line:
IB_DESIGNABLE @interface BEMCheckBox : UIView
with:
IB_DESIGNABLE @interface BEMCheckBox : UIView <CAAnimationDelegate>

@Boris-Em
Copy link
Owner

HI @Signoo,
Would you mind submitting a pull request with your work?
Thank you!

@Signoo
Copy link
Contributor Author

Signoo commented Jul 13, 2016

Hi @Boris-Em
I've created the pull request, It's my first one so hopefully I did nothing wrong :)

Btw thanks for this awesome library!

@Boris-Em
Copy link
Owner

Closed as fixed with #30. Thank you for opening this issue and fixing it @Signoo!

@iTofu
Copy link

iTofu commented Nov 4, 2016

Thanks for @Signoo ! It works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants