Skip to content

Commit

Permalink
Fix #11: Xcode 8.3.2 warnings resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuliyer95 committed May 27, 2017
1 parent 90223d5 commit 58df7ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Example/iShowcaseExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down
6 changes: 3 additions & 3 deletions Source/iShowcase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -306,15 +306,15 @@ import Foundation
context?.setShadow(offset: CGSize.zero, blur: 30, color: highlightColor.cgColor)
context?.setFillColor(coverColor.cgColor)
context?.setStrokeColor(highlightColor.cgColor)
context?.addArc(center: center, radius: CGFloat(radius * 2), startAngle: 0, endAngle: CGFloat(2 * M_PI), clockwise: false)
context?.addArc(center: center, radius: CGFloat(radius * 2), startAngle: 0, endAngle: CGFloat(2 * Double.pi), clockwise: false)
context?.drawPath(using: .fillStroke)
context?.addArc(center: center, radius: CGFloat(radius), startAngle: 0, endAngle: CGFloat(2 * M_PI), clockwise: false)
context?.addArc(center: center, radius: CGFloat(radius), startAngle: 0, endAngle: CGFloat(2 * Double.pi), clockwise: false)
context?.drawPath(using: .fillStroke)

// Clear circle
context?.setFillColor(UIColor.clear.cgColor)
context?.setBlendMode(.clear)
context?.addArc(center: center, radius: CGFloat(radius - 0.54), startAngle: 0, endAngle: CGFloat(2 * M_PI), clockwise: false)
context?.addArc(center: center, radius: CGFloat(radius - 0.54), startAngle: 0, endAngle: CGFloat(2 * Double.pi), clockwise: false)
context?.drawPath(using: .fill)
context?.setBlendMode(.normal)
}
Expand Down

0 comments on commit 58df7ee

Please sign in to comment.