luispadron / UICircularProgressRing

A circular progress bar for iOS written in Swift
MIT License
1.73k stars 290 forks source link

Gradient color #238

Closed b7anka closed 4 years ago

b7anka commented 4 years ago

Hello guys I hope all is well with you. Is it possible to define a gradient as de inner ring color? Thanks in advance

sunchengbo commented 4 years ago

I hope so

luispadron commented 4 years ago

From the documentation:

gradientOptions The options for a gradient ring. If this is non-nil then a gradient style will be applied.

Please read the docs

sunchengbo commented 4 years ago

My question is whether the background ring can be gradient, and how to set it

发自我的iPhone

------------------ Original ------------------ From: Luis Padron <notifications@github.com> Date: Mon,May 11,2020 8:47 PM To: luispadron/UICircularProgressRing <UICircularProgressRing@noreply.github.com> Cc: 孙承波 <594744124@qq.com>, Comment <comment@noreply.github.com> Subject: Re: [luispadron/UICircularProgressRing] Gradient color (#238)

From the documentation:

gradientOptions The options for a gradient ring. If this is non-nil then a gradient style will be applied.

Please read the docs

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

sunchengbo commented 4 years ago

I can't use it very well

发自我的iPhone

------------------ Original ------------------ From: Luis Padron <notifications@github.com> Date: Mon,May 11,2020 8:47 PM To: luispadron/UICircularProgressRing <UICircularProgressRing@noreply.github.com> Cc: 孙承波 <594744124@qq.com>, Comment <comment@noreply.github.com> Subject: Re: [luispadron/UICircularProgressRing] Gradient color (#238)

Closed #238.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

luispadron commented 4 years ago

Background ring can’t be a gradient.

sunchengbo commented 4 years ago

Thank you. I just wrote two rings

发自我的iPhone

------------------ Original ------------------ From: Luis Padron <notifications@github.com> Date: Mon,May 11,2020 9:20 PM To: luispadron/UICircularProgressRing <UICircularProgressRing@noreply.github.com> Cc: 孙承波 <594744124@qq.com>, Comment <comment@noreply.github.com> Subject: Re: [luispadron/UICircularProgressRing] Gradient color (#238)

Background ring can’t be a gradient.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

b7anka commented 4 years ago

Works flawlessly thanks