Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>BFCEF3C4-754D-4C0A-9746-2F5222F2D964</string>
<key>IDESourceControlProjectName</key>
<string>FFCircularProgressView</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>719AA8A1976C16731FBE34366E831E350F658FBD</key>
<string>https://github.com/CaseyB/FFCircularProgressView.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>FFCircularProgressView.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>719AA8A1976C16731FBE34366E831E350F658FBD</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/CaseyB/FFCircularProgressView.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>719AA8A1976C16731FBE34366E831E350F658FBD</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>719AA8A1976C16731FBE34366E831E350F658FBD</string>
<key>IDESourceControlWCCName</key>
<string>FFCircularProgressView</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8ACEA179535F80032D47A"
BuildableName = "FFCircularProgressView.app"
BlueprintName = "FFCircularProgressView"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8AD05179535F80032D47A"
BuildableName = "FFCircularProgressViewTests.xctest"
BlueprintName = "FFCircularProgressViewTests"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8AD05179535F80032D47A"
BuildableName = "FFCircularProgressViewTests.xctest"
BlueprintName = "FFCircularProgressViewTests"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8ACEA179535F80032D47A"
BuildableName = "FFCircularProgressView.app"
BlueprintName = "FFCircularProgressView"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8ACEA179535F80032D47A"
BuildableName = "FFCircularProgressView.app"
BlueprintName = "FFCircularProgressView"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2BD8ACEA179535F80032D47A"
BuildableName = "FFCircularProgressView.app"
BlueprintName = "FFCircularProgressView"
ReferencedContainer = "container:FFCircularProgressView.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>FFCircularProgressView.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>2BD8ACEA179535F80032D47A</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>2BD8AD05179535F80032D47A</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
*/
@property (nonatomic, strong) UIColor *tickColor;

/**
* The color of the initial circle
*/
@property (nonatomic, strong) UIColor *startColor;

/**
* Icon view to be rendered instead of default arrow
*/
Expand All @@ -47,6 +52,11 @@
*/
@property (readwrite) BOOL hideProgressIcons;

/**
* You can hide the tick mark which is shown upon completion
*/
@property (readwrite) BOOL hideCompletionIcon;

/**
* Make the background layer to spin around its center. This should be called in the main thread.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ - (void)setTintColor:(UIColor *)tintColor
{
_tintColor = tintColor;
_progressBackgroundLayer.strokeColor = tintColor.CGColor;
_progressLayer.strokeColor = tintColor.CGColor;
_iconLayer.strokeColor = tintColor.CGColor;
}

- (void)setTickColor:(UIColor *)tickColor
{
_tickColor = tickColor;
_progressLayer.strokeColor = tickColor.CGColor;
}

- (void)drawRect:(CGRect)rect
Expand Down Expand Up @@ -124,7 +124,9 @@ - (void)drawRect:(CGRect)rect
[_progressLayer setPath:processPath.CGPath];

if ([self progress] == 1.0) {
[self drawTick];
if (!_hideCompletionIcon)
[self drawTick];
[_progressBackgroundLayer setFillColor:_progressLayer.strokeColor];
} else if (([self progress] > 0) && [self progress] < 1.0) {

if (!_hideProgressIcons)
Expand Down Expand Up @@ -211,7 +213,6 @@ - (void) drawTick {

[_iconLayer setPath:tickPath.CGPath];
[_iconLayer setFillColor:self.tickColor.CGColor];
[_progressBackgroundLayer setFillColor:_progressLayer.strokeColor];
}

- (void) drawStop {
Expand Down