Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing hue in hsba on a white color doesn't work #1

Closed
Jeehut opened this issue Jan 30, 2017 · 1 comment
Closed

Changing hue in hsba on a white color doesn't work #1

Jeehut opened this issue Jan 30, 2017 · 1 comment

Comments

@Jeehut
Copy link
Member

Jeehut commented Jan 30, 2017

Regarding the following code:

let newHueValue = UIColor.white.change(.hue, to: 0.25).hsba.hue

The expected new hue value would be 0.25, but it's actually 0.0. It seems not to work with UIColor.white. This should be added to the tests and covered. Also other possible not-working options should checked like UIColor.black.

@Jeehut
Copy link
Member Author

Jeehut commented Aug 2, 2017

There's nothing wrong with the implementation, seems like it was some weird UIKit internals when I saw that issue. Didn't appear since then, so I'm closing. Please report if anyone else sees this issue.

@Jeehut Jeehut closed this as completed Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant