Skip to content

Conversation

@KristofferHermansen
Copy link

@KristofferHermansen KristofferHermansen commented Apr 5, 2024

Goal

Fixing a problem where colors were applied twice, making it slightly off from the expected color.
As the UIImages are already colored by the UIImage.colored function, there is no need to also apply the same color to the CAEmitterCell. Doing this applies the same color twice.

This removes the color from the emitter cell, although another solution could be painting the UIImage white and applying the correct color to the CAEmitterCell.

Screenshot

Before and After screenshots of this change. As shown the pastel colors are slightly darker on the confetti than the colors shown in the view. They use the exact same color, but because of the double appliance, they turn out darker.

Checklist

  • Testing in compability platforms
  • Installed correct via Swift Package Manager and Cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants