From 49ebd62e60e0725a52cdb91c7c5bb12ac2f21c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B8=CC=86=20=D0=90?= =?UTF-8?q?=D1=88=D0=B0=D0=BD=D0=B8=D0=BD?= Date: Thu, 29 Sep 2016 18:46:28 +0300 Subject: [PATCH] review fixes --- LeadKit/.DS_Store | Bin 6148 -> 6148 bytes .../UIImage/UIImage+Gradients.swift | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LeadKit/.DS_Store b/LeadKit/.DS_Store index 496be19f5214dce728046942e8b309a09cd5a4e7..e29d9bc7fa2d6bf65c700df38a516462566607cf 100644 GIT binary patch delta 18 ZcmZoMXffE}$jF#Bc^#wL<_yL;VgNdj1^55} delta 18 ZcmZoMXffE}$jBHuc^#wL<_yL;VgNc01?vC+ diff --git a/LeadKit/LeadKit/Extensions/UIImage/UIImage+Gradients.swift b/LeadKit/LeadKit/Extensions/UIImage/UIImage+Gradients.swift index 2a95a06f..8aae3327 100644 --- a/LeadKit/LeadKit/Extensions/UIImage/UIImage+Gradients.swift +++ b/LeadKit/LeadKit/Extensions/UIImage/UIImage+Gradients.swift @@ -21,7 +21,7 @@ public extension UIImage { UIGraphicsBeginImageContextWithOptions(size, false, 0) let context = UIGraphicsGetCurrentContext() let colorSpace = CGColorSpaceCreateDeviceRGB() - let colors = gradientColors.map { return $0.CGColor } + let colors = gradientColors.map { $0.CGColor } let gradient = CGGradientCreateWithColors(colorSpace, colors, nil) CGContextDrawLinearGradient(context, gradient, @@ -54,7 +54,7 @@ public extension UIImage { CGContextDrawImage(context, rect, CGImage) // Create gradient let colorSpace = CGColorSpaceCreateDeviceRGB() - let colors = gradientColors.map { return $0.CGColor } + let colors = gradientColors.map { $0.CGColor } let gradient = CGGradientCreateWithColors(colorSpace, colors, nil) // Apply gradient CGContextClipToMask(context, rect, CGImage)