Skip to content

Commit

Permalink
fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckDeck committed Jun 6, 2017
1 parent af5bcd8 commit 4b632c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions StarReview.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
2 changes: 1 addition & 1 deletion StarReview/StarReview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Binary file added StarReviewDemo/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions StarReviewDemo/StarReviewDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
TargetAttributes = {
A20DD94B1C116E7A00F690E8 = {
CreatedOnToolsVersion = 7.1.1;
DevelopmentTeam = 76966J85NL;
LastSwiftMigration = 0800;
};
};
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit 4b632c1

Please sign in to comment.