diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..ff6e21d Binary files /dev/null and b/.DS_Store differ diff --git a/StarReview.podspec b/StarReview.podspec index d58b0b1..ecbaaad 100644 --- a/StarReview.podspec +++ b/StarReview.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "StarReview" - s.version = "0.0.3" + s.version = "1.0.0" s.summary = "StarReview is a iOS rate tool. it use star to rate something" # This description is used to generate tags and improve search results. @@ -80,7 +80,7 @@ Pod::Spec.new do |s| # Supports git, hg, bzr, svn and HTTP. # - s.source = { :git => "https://github.com/DuckDeck/StarReview.git", :tag => "0.0.3" } + s.source = { :git => "https://github.com/DuckDeck/StarReview.git", :tag => "1.0.0" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # diff --git a/StarReview/StarReview.swift b/StarReview/StarReview.swift index e071b0e..662ccbc 100644 --- a/StarReview/StarReview.swift +++ b/StarReview/StarReview.swift @@ -195,7 +195,7 @@ public final class StarReview: UIControl { ctx?.setStrokeColor(starBackgroundColor.cgColor) ctx?.setLineCap(CGLineCap.butt) ctx?.move(to: CGPoint(x: p1.x, y: p1.y)) - let angle = Float(4 * M_PI / 5) + let angle = Float(4 * Double.pi / 5) for i in 1...5{ let x = Float(starCenter.x) - sinf(angle * Float(i)) * Float(radius) let y = Float(starCenter.y) - cosf(angle * Float(i)) * Float(radius) diff --git a/StarReviewDemo/.DS_Store b/StarReviewDemo/.DS_Store new file mode 100644 index 0000000..9bdd3e9 Binary files /dev/null and b/StarReviewDemo/.DS_Store differ diff --git a/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj b/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj index 4432b90..317da60 100644 --- a/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj +++ b/StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj @@ -122,6 +122,7 @@ TargetAttributes = { A20DD94B1C116E7A00F690E8 = { CreatedOnToolsVersion = 7.1.1; + DevelopmentTeam = 76966J85NL; LastSwiftMigration = 0800; }; }; @@ -274,6 +275,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 76966J85NL; INFOPLIST_FILE = StarReviewDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -288,6 +290,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = 76966J85NL; INFOPLIST_FILE = StarReviewDemo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";