Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

More customizable gradient #461

Closed Zeno1995 closed 2 years ago

Zeno1995 commented 2 years ago

Hello, I need to create a skeleton with a tighter gradient, my advice is to allow the user to init SkeletonGradient directly with a color array, this way he can initialize the object with more colors for a fully customizable gradient.

In this way for example: From SkeletonGradient.Swift:26 gradientColors = [baseColor, baseColor, secondary, baseColor, baseColor]

I don't know if I already have the way to do it, but I can't find it. Thanks, Enzo

Juanpe commented 2 years ago

Hi @Zeno1995

Let me investigate about this feature 👍🏼