diff --git a/SHNDStuffs.podspec b/SHNDStuffs.podspec index 25c5db8..49d6689 100644 --- a/SHNDStuffs.podspec +++ b/SHNDStuffs.podspec @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.author = { 'sahandraeisi1994@gmail.com' => 'sahandraeisi@yahoo.com' } s.source = { :git => 'https://github.com/shndrs/SHNDStuffs.git', :tag => s.version.to_s } s.ios.deployment_target = '9.0' - s.swift_version = '4.0' + s.swift_version = '5.3' s.source_files = 'SHNDStuffs/Classes/**/*' s.frameworks = 'UIKit' diff --git a/SHNDStuffs/Classes/SHNDButton/SHNDButtonAnimationFactory.swift b/SHNDStuffs/Classes/SHNDButton/SHNDButtonAnimationFactory.swift index 58a0e55..fb83093 100644 --- a/SHNDStuffs/Classes/SHNDButton/SHNDButtonAnimationFactory.swift +++ b/SHNDStuffs/Classes/SHNDButton/SHNDButtonAnimationFactory.swift @@ -33,7 +33,7 @@ public struct AnimationElements { extension SHNDButton { @available(iOS 9.0, *) - public func SHNDButtonAnimation(animationElements:AnimationElements) -> Void { + public func SHNDButtonAnimation(animationElements: AnimationElements) -> Void { switch animationElements.animationMode { case .pulsate: pulsateAnimation(animationElements: animationElements) @@ -62,7 +62,7 @@ extension SHNDButton { flash.duration = animationElements.duration flash.fromValue = 1 flash.toValue = 0.1 - flash.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) + flash.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut) flash.autoreverses = animationElements.autoreverses flash.repeatCount = animationElements.repeatCount layer.add(flash, forKey: nil)