From a7aa0c068efdadaae8ace7c62645c372890ad8a0 Mon Sep 17 00:00:00 2001 From: Frederik Jacques Date: Tue, 28 Mar 2017 21:45:57 +0200 Subject: [PATCH 1/2] fixed Swift 3.1 warnings --- Example/HGCircularSlider.xcodeproj/project.pbxproj | 4 +++- .../xcschemes/HGCircularSlider-Example.xcscheme | 2 +- HGCircularSlider/Classes/CircularSliderHelper.swift | 8 ++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Example/HGCircularSlider.xcodeproj/project.pbxproj b/Example/HGCircularSlider.xcodeproj/project.pbxproj index a0c194a..6533ded 100644 --- a/Example/HGCircularSlider.xcodeproj/project.pbxproj +++ b/Example/HGCircularSlider.xcodeproj/project.pbxproj @@ -222,7 +222,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0830; ORGANIZATIONNAME = CocoaPods; TargetAttributes = { 607FACCF1AFB9204008FA782 = { @@ -511,6 +511,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 04EAC630898381E6412A72E4 /* Pods-HGCircularSlider_Example.debug.xcconfig */; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = HGCircularSlider/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -525,6 +526,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 9BA305BCC009CE17283FE799 /* Pods-HGCircularSlider_Example.release.xcconfig */; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; INFOPLIST_FILE = HGCircularSlider/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/Example/HGCircularSlider.xcodeproj/xcshareddata/xcschemes/HGCircularSlider-Example.xcscheme b/Example/HGCircularSlider.xcodeproj/xcshareddata/xcschemes/HGCircularSlider-Example.xcscheme index af0a185..9dfc250 100644 --- a/Example/HGCircularSlider.xcodeproj/xcshareddata/xcschemes/HGCircularSlider-Example.xcscheme +++ b/Example/HGCircularSlider.xcodeproj/xcshareddata/xcschemes/HGCircularSlider-Example.xcscheme @@ -1,6 +1,6 @@ CGFloat { - return value * 180.0 / CGFloat(M_PI) + return value * 180.0 / CGFloat(Double.pi) } /** @@ -133,7 +133,7 @@ class CircularSliderHelper { let angle = atan2(uv.determinant, uv.dotProduct) // change the angle interval - let newAngle = (angle < 0) ? -angle : Float(2 * M_PI) - angle + let newAngle = (angle < 0) ? -angle : Float(2 * Double.pi) - angle return CGFloat(newAngle) } From 478fb36608fe9ad5ecc972c8e19d6a471651cc76 Mon Sep 17 00:00:00 2001 From: Hamza Ghazouani Date: Fri, 31 Mar 2017 00:57:14 +0200 Subject: [PATCH 2/2] New Version: Fix Swift 3.1 warnings --- CHANGELOG.md | 5 +++++ HGCircularSlider.podspec | 2 +- README.md | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d69ead..4500cdd 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. + +## [1.1.0](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/1.1.0) + +* Fix Swift 3.1 warnings + ## [1.0.3](https://github.com/HamzaGhazouani/HGCircularSlider/releases/tag/1.0.3) * Change midPointValue from private to open diff --git a/HGCircularSlider.podspec b/HGCircularSlider.podspec index 3b90f01..539280b 100644 --- a/HGCircularSlider.podspec +++ b/HGCircularSlider.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'HGCircularSlider' -s.version = '1.0.3' +s.version = '1.1.0' s.summary = 'Multiple Circular Sliders used to select a value from a continuous range of values.' diff --git a/README.md b/README.md index 75effa7..c4a268a 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ it, simply add the following line to your Podfile: ``` ruby -# Swift 3.0 - Xcode 8 -pod 'HGCircularSlider', '~> 1.0.3' +# Swift 3.1 - Xcode 8.3 +pod 'HGCircularSlider', '~> 1.1.0' # Swift 2.2 - Xcode 7.3.1 (Checkout Swift2_Xcode7.3 branche) pod 'HGCircularSlider', '~> 0.1.2'