Skip to content

Commit

Permalink
use blendMode parameter in applyGradientColors()
Browse files Browse the repository at this point in the history
Blend mode was always set to .Normal because the blendMode parameter was never used in the function.
  • Loading branch information
jallen committed Nov 3, 2015
1 parent 9b0e786 commit e2fb820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFImageHelper/AFImageExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public extension UIImage {
let context = UIGraphicsGetCurrentContext()
CGContextTranslateCTM(context, 0, size.height)
CGContextScaleCTM(context, 1.0, -1.0)
CGContextSetBlendMode(context, CGBlendMode.Normal)
CGContextSetBlendMode(context, blendMode)
let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height)
CGContextDrawImage(context, rect, self.CGImage)
// Create gradient
Expand Down

0 comments on commit e2fb820

Please sign in to comment.