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

Shimmeringspeed issue when initial frame is not set. #13

Closed MichMich closed 10 years ago

MichMich commented 10 years ago

When working with AutoLayout (programmatically), the FBShimmerView is not created with initWithFrame, but just by init. This gives a shimmering speed issue. (Shimmering is way to fast.)

I created a gist to demonstrate the issue: https://gist.github.com/MichMich/9535985

grp commented 10 years ago

Could you try this after the latest commit? Some code was adjusting the highlight before the frame was set, but it should be fixed now. Let me know if that works for you.

MichMich commented 10 years ago

Unfortunately, the problem still persists with the latest commit.