Skip to content

Commit 0b62873

Browse files
author
Pierre Perrin
committed
fix(cocoapods): Fix all warnings
1 parent 82fb02f commit 0b62873

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.swift-version

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
3.1
2-
3.0.2
1+
5.0.1

ShadowView.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Pod::Spec.new do |s|
22

33
s.name = 'ShadowView'
44

5-
s.version = '1.4.1'
5+
s.version = '1.4.2'
66

77
s.summary = 'ShadowView is an iOS Shadow library that makes view\'s shadow implementation easy and sweet'
88

ShadowView/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.1</string>
18+
<string>1.4.2</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

ShadowView/UIImageEffects.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
import UIKit
105105
import Accelerate
106106

107-
public extension UIImage {
107+
extension UIImage {
108108
public func applyLightEffect() -> UIImage? {
109109
return applyBlurWithRadius(30, tintColor: UIColor(white: 1.0, alpha: 0.3), saturationDeltaFactor: 1.8)
110110
}
@@ -162,7 +162,7 @@ public extension UIImage {
162162
var effectImage = self
163163

164164
let hasBlur = blurRadius > __FLT_EPSILON__
165-
let hasSaturationChange = fabs(saturationDeltaFactor - 1.0) > __FLT_EPSILON__
165+
let hasSaturationChange = abs(saturationDeltaFactor - 1.0) > __FLT_EPSILON__
166166

167167
if hasBlur || hasSaturationChange {
168168
func createEffectBuffer(_ context: CGContext) -> vImage_Buffer {

0 commit comments

Comments
 (0)