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

Ability to change the shimmer colour? #39

Open Reedyuk opened 9 years ago

Reedyuk commented 9 years ago

At the moment the shimmer takes the colour from the object its shimmering, it would be nice if you could specify a colour for the shimmer to be. An example, a white label, could have a gold shimmer. I hope that makes sense.

Thanks Andrew.

ghost commented 9 years ago

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

osolano commented 8 years ago

I'd like to request this feature as well. For me, if the color of the object is green or blue and then shimmer is white. This can make something have a shiny object look effect.

osolano commented 8 years ago

Nevermind. I figured it out thank you for this effect!

jyounus commented 8 years ago

Can you please share what you did to achieve that @osolano?

aehlke commented 8 years ago

@jyounus @osolano I'd also like to know :)

jarnove commented 7 years ago

@grp ,

Is there a solution?

@osolano @jyounus ,

Can you tell us how you fixed it?

cc\ @aehlke

jyounus commented 7 years ago

I wasn't able to change the colour @jarnoverreyt, only make it brighter or darker by playing around with these two properties:

shimmeringAnimationOpacity
shimmeringOpacity
jarnove commented 7 years ago

@jyounus ,

Thanks for the quick answer but playing around with these two properties didn't do the trick for me.. It has to be a lot darker, but because my light background, it stays light..

jyounus commented 7 years ago

Yeah, unfortunately I had to change the design slightly for a specific screen because of that. :/

ravelasquez99 commented 7 years ago

Did anyone figure out how to change the color?

FareedQ commented 7 years ago

Looking at the code behind, it doesn't seem like it does this. It just fades the opacity in an area. This isn't a feature it currently does. :(

FareedQ commented 7 years ago

A trick to do this, is have another view behind it that is the colour you want. Then when it fades the opacity it will reveal the colour you want to shine.