We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When applying this gradient to UIImages:
image.apply(gradientColors: [UIColor.yellow, UIColor.red], locations: [1.0, 0.0])
I would expect the whole image to be covered by the gradient since the colors are completely opaque.
However, it does sometimes seem to apply a strange blend mode, although the blend mode is left to the default value (CGBlendMode.normal).
See on the following example: the gradient is wrong on the 1st image, but correct on the 2nd image.
Here is a second example with the following gradient:
image.apply(gradientColors: [UIColor.black, UIColor.black], locations: [1, 0])
The 1st image is correct but the 2nd seems to be a negative.
I am using ImageHelper.swift and ImageVIewExtension.swift from master (24581b1)
ImageHelper.swift
ImageVIewExtension.swift
master
The text was updated successfully, but these errors were encountered:
Not sure what the line 114 of ImageHelper.swift is for, but removing it fixes the issue.
Sorry, something went wrong.
No branches or pull requests
When applying this gradient to UIImages:
I would expect the whole image to be covered by the gradient since the colors are completely opaque.
However, it does sometimes seem to apply a strange blend mode, although the blend mode is left to the default value (CGBlendMode.normal).
See on the following example: the gradient is wrong on the 1st image, but correct on the 2nd image.
Here is a second example with the following gradient:
The 1st image is correct but the 2nd seems to be a negative.
I am using
ImageHelper.swift
andImageVIewExtension.swift
frommaster
(24581b1)The text was updated successfully, but these errors were encountered: