SomeRandomiOSDev / JNGradientLabel

UILabel text gradient coloring
MIT License
9 stars 0 forks source link

Wrong type encoded for radial gradients #4

Closed cduhn closed 2 years ago

cduhn commented 3 years ago

https://github.com/SomeRandomiOSDev/JNGradientLabel/blob/2f4b4755eba8d7e300ec6c305144ba19554399c8/JNGradientLabel/JNGradientLabel.swift#L94

Skimming the source code, I noticed your implementation of func encode(to encoder: Encoder) is using a type of 0 instead of 1 when encoding radial gradients.

Sorry I don't have time to prepare a PR right now, so I'm just reporting this as an issue.