facebookarchive / Shimmer

An easy way to add a simple, shimmering effect to any view in an iOS app.
Other
9.35k stars 1.11k forks source link

Assigning to 'id<CALayerDelegate> _Nullable' from incompatible type 'FBShimmeringLayer *const __strong' #63

Closed sylvioleblanc closed 8 years ago

sylvioleblanc commented 8 years ago

First, thanks for this Code. It's great and it really helped me.

Using Xcode 8, iOS 10 beta 2 and I started getting two warnings in FBShimmeringLayer.m

Line 287 and 400.

287: _maskLayer.delegate = self; ... 400: fadeInAnimation.delegate = self;

WARNING: Assigning to 'id<CALayerDelegate> _Nullable' from incompatible type 'FBShimmeringLayer *const __strong'

Since I'm a SWIFT developer I'm not quite sure how to fix it myself. I thought I'd post here before trying to fix it incorrectly myself.