Gradients icon indicating copy to clipboard operation
Gradients copied to clipboard

"complex" gradients do not render

Open 368433 opened this issue 7 years ago • 3 comments

Gradients such as "elegance", "raccoonBack", "aboveClouds", etc... do not produce a colour, whereas the more simple ones such as "purpleDivision", "aquaSplash", "warmFlame" etc... do produce a colour as expected. Any idea why?

368433 avatar Oct 10 '18 21:10 368433

Hi @368433 I'm sorry too late and thank you for your reporting I will check this with Gradients example :)

cruisediary avatar Dec 02 '18 11:12 cruisediary

thanks :)

368433 avatar Dec 19 '18 03:12 368433

Complex gradiend creates new CALayer instance as a parent layer which cause this problem.

https://github.com/Gradients/Gradients/blob/d031b058bd50223e825e0ae66802511ec0737e08/Gradients/Sources/Gradients%2BLayer.swift#L259-L267

Even if I set bounds for newly created CALeyer does not solve it. 😔

I could not figured it out how fix...

muhasturk avatar Feb 11 '19 08:02 muhasturk