├── CATCurveProgressView.podspec ├── CATCurveProgressView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ ├── catch.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ │ └── zengcatch.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── catch.xcuserdatad │ ├── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ │ ├── CATCurveProgressView.xcscheme │ │ └── xcschememanagement.plist │ └── zengcatch.xcuserdatad │ └── xcschemes │ ├── CATCurveProgressView.xcscheme │ └── xcschememanagement.plist ├── CATCurveProgressView ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── CATCurveProgressView │ ├── CATCurveProgressView.h │ └── CATCurveProgressView.m ├── Info.plist ├── ViewController.h ├── ViewController.m └── main.m ├── CATCurveProgressViewTests ├── CATCurveProgressViewTests.m └── Info.plist ├── CATCurveProgressViewUITests ├── CATCurveProgressViewUITests.m └── Info.plist ├── LICENSE ├── README.md └── images ├── 1.gif └── 2.gif /CATCurveProgressView.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "CATCurveProgressView" 3 | s.version = "1.0.1" 4 | s.license = 'MIT' 5 | s.homepage = "http://catchzeng.com" 6 | s.summary = "iOS custom curve (circular、arc、circle) progress view, supports gradient color, any angle, IBDesignable & IBInspectable, etc.." 7 | s.author = { "CatchZeng" => "891793848@qq.com" } 8 | s.platform = :ios, '7.0' 9 | s.source = { :git => "https://github.com/CatchZeng/CATCurveProgressView.git", :tag => "1.0.1" } 10 | s.source_files = "CATCurveProgressView/CATCurveProgressView/CATCurveProgressView.{h,m}" 11 | s.requires_arc = true 12 | end -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3FC327DA1CF58AD800DE6FFB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC327D91CF58AD800DE6FFB /* main.m */; }; 11 | 3FC327DD1CF58AD800DE6FFB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC327DC1CF58AD800DE6FFB /* AppDelegate.m */; }; 12 | 3FC327E01CF58AD800DE6FFB /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC327DF1CF58AD800DE6FFB /* ViewController.m */; }; 13 | 3FC327E31CF58AD800DE6FFB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3FC327E11CF58AD800DE6FFB /* Main.storyboard */; }; 14 | 3FC327E51CF58AD800DE6FFB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3FC327E41CF58AD800DE6FFB /* Assets.xcassets */; }; 15 | 3FC327E81CF58AD800DE6FFB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3FC327E61CF58AD800DE6FFB /* LaunchScreen.storyboard */; }; 16 | 3FC327F31CF58AD800DE6FFB /* CATCurveProgressViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC327F21CF58AD800DE6FFB /* CATCurveProgressViewTests.m */; }; 17 | 3FC327FE1CF58AD800DE6FFB /* CATCurveProgressViewUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC327FD1CF58AD800DE6FFB /* CATCurveProgressViewUITests.m */; }; 18 | 3FC328101CF58D8C00DE6FFB /* CATCurveProgressView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3FC3280F1CF58D8C00DE6FFB /* CATCurveProgressView.m */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 3FC327EF1CF58AD800DE6FFB /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 3FC327CD1CF58AD800DE6FFB /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 3FC327D41CF58AD800DE6FFB; 27 | remoteInfo = CATCurveProgressView; 28 | }; 29 | 3FC327FA1CF58AD800DE6FFB /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 3FC327CD1CF58AD800DE6FFB /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 3FC327D41CF58AD800DE6FFB; 34 | remoteInfo = CATCurveProgressView; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 3FC327D51CF58AD800DE6FFB /* CATCurveProgressView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CATCurveProgressView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 3FC327D91CF58AD800DE6FFB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | 3FC327DB1CF58AD800DE6FFB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 42 | 3FC327DC1CF58AD800DE6FFB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 43 | 3FC327DE1CF58AD800DE6FFB /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 44 | 3FC327DF1CF58AD800DE6FFB /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 45 | 3FC327E21CF58AD800DE6FFB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 3FC327E41CF58AD800DE6FFB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 3FC327E71CF58AD800DE6FFB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 3FC327E91CF58AD800DE6FFB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 3FC327EE1CF58AD800DE6FFB /* CATCurveProgressViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CATCurveProgressViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 3FC327F21CF58AD800DE6FFB /* CATCurveProgressViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CATCurveProgressViewTests.m; sourceTree = ""; }; 51 | 3FC327F41CF58AD800DE6FFB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 3FC327F91CF58AD800DE6FFB /* CATCurveProgressViewUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CATCurveProgressViewUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 3FC327FD1CF58AD800DE6FFB /* CATCurveProgressViewUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CATCurveProgressViewUITests.m; sourceTree = ""; }; 54 | 3FC327FF1CF58AD800DE6FFB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 3FC3280E1CF58D8C00DE6FFB /* CATCurveProgressView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CATCurveProgressView.h; sourceTree = ""; }; 56 | 3FC3280F1CF58D8C00DE6FFB /* CATCurveProgressView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CATCurveProgressView.m; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 3FC327D21CF58AD800DE6FFB /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 3FC327EB1CF58AD800DE6FFB /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | 3FC327F61CF58AD800DE6FFB /* Frameworks */ = { 75 | isa = PBXFrameworksBuildPhase; 76 | buildActionMask = 2147483647; 77 | files = ( 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | /* End PBXFrameworksBuildPhase section */ 82 | 83 | /* Begin PBXGroup section */ 84 | 3FC327CC1CF58AD800DE6FFB = { 85 | isa = PBXGroup; 86 | children = ( 87 | 3FC327D71CF58AD800DE6FFB /* CATCurveProgressView */, 88 | 3FC327F11CF58AD800DE6FFB /* CATCurveProgressViewTests */, 89 | 3FC327FC1CF58AD800DE6FFB /* CATCurveProgressViewUITests */, 90 | 3FC327D61CF58AD800DE6FFB /* Products */, 91 | ); 92 | sourceTree = ""; 93 | }; 94 | 3FC327D61CF58AD800DE6FFB /* Products */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 3FC327D51CF58AD800DE6FFB /* CATCurveProgressView.app */, 98 | 3FC327EE1CF58AD800DE6FFB /* CATCurveProgressViewTests.xctest */, 99 | 3FC327F91CF58AD800DE6FFB /* CATCurveProgressViewUITests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 3FC327D71CF58AD800DE6FFB /* CATCurveProgressView */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 3FC3280D1CF58D8300DE6FFB /* CATCurveProgressView */, 108 | 3FC327DB1CF58AD800DE6FFB /* AppDelegate.h */, 109 | 3FC327DC1CF58AD800DE6FFB /* AppDelegate.m */, 110 | 3FC327DE1CF58AD800DE6FFB /* ViewController.h */, 111 | 3FC327DF1CF58AD800DE6FFB /* ViewController.m */, 112 | 3FC327E11CF58AD800DE6FFB /* Main.storyboard */, 113 | 3FC327E41CF58AD800DE6FFB /* Assets.xcassets */, 114 | 3FC327E61CF58AD800DE6FFB /* LaunchScreen.storyboard */, 115 | 3FC327E91CF58AD800DE6FFB /* Info.plist */, 116 | 3FC327D81CF58AD800DE6FFB /* Supporting Files */, 117 | ); 118 | path = CATCurveProgressView; 119 | sourceTree = ""; 120 | }; 121 | 3FC327D81CF58AD800DE6FFB /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 3FC327D91CF58AD800DE6FFB /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | 3FC327F11CF58AD800DE6FFB /* CATCurveProgressViewTests */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 3FC327F21CF58AD800DE6FFB /* CATCurveProgressViewTests.m */, 133 | 3FC327F41CF58AD800DE6FFB /* Info.plist */, 134 | ); 135 | path = CATCurveProgressViewTests; 136 | sourceTree = ""; 137 | }; 138 | 3FC327FC1CF58AD800DE6FFB /* CATCurveProgressViewUITests */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 3FC327FD1CF58AD800DE6FFB /* CATCurveProgressViewUITests.m */, 142 | 3FC327FF1CF58AD800DE6FFB /* Info.plist */, 143 | ); 144 | path = CATCurveProgressViewUITests; 145 | sourceTree = ""; 146 | }; 147 | 3FC3280D1CF58D8300DE6FFB /* CATCurveProgressView */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 3FC3280E1CF58D8C00DE6FFB /* CATCurveProgressView.h */, 151 | 3FC3280F1CF58D8C00DE6FFB /* CATCurveProgressView.m */, 152 | ); 153 | path = CATCurveProgressView; 154 | sourceTree = ""; 155 | }; 156 | /* End PBXGroup section */ 157 | 158 | /* Begin PBXNativeTarget section */ 159 | 3FC327D41CF58AD800DE6FFB /* CATCurveProgressView */ = { 160 | isa = PBXNativeTarget; 161 | buildConfigurationList = 3FC328021CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressView" */; 162 | buildPhases = ( 163 | 3FC327D11CF58AD800DE6FFB /* Sources */, 164 | 3FC327D21CF58AD800DE6FFB /* Frameworks */, 165 | 3FC327D31CF58AD800DE6FFB /* Resources */, 166 | ); 167 | buildRules = ( 168 | ); 169 | dependencies = ( 170 | ); 171 | name = CATCurveProgressView; 172 | productName = CATCurveProgressView; 173 | productReference = 3FC327D51CF58AD800DE6FFB /* CATCurveProgressView.app */; 174 | productType = "com.apple.product-type.application"; 175 | }; 176 | 3FC327ED1CF58AD800DE6FFB /* CATCurveProgressViewTests */ = { 177 | isa = PBXNativeTarget; 178 | buildConfigurationList = 3FC328051CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressViewTests" */; 179 | buildPhases = ( 180 | 3FC327EA1CF58AD800DE6FFB /* Sources */, 181 | 3FC327EB1CF58AD800DE6FFB /* Frameworks */, 182 | 3FC327EC1CF58AD800DE6FFB /* Resources */, 183 | ); 184 | buildRules = ( 185 | ); 186 | dependencies = ( 187 | 3FC327F01CF58AD800DE6FFB /* PBXTargetDependency */, 188 | ); 189 | name = CATCurveProgressViewTests; 190 | productName = CATCurveProgressViewTests; 191 | productReference = 3FC327EE1CF58AD800DE6FFB /* CATCurveProgressViewTests.xctest */; 192 | productType = "com.apple.product-type.bundle.unit-test"; 193 | }; 194 | 3FC327F81CF58AD800DE6FFB /* CATCurveProgressViewUITests */ = { 195 | isa = PBXNativeTarget; 196 | buildConfigurationList = 3FC328081CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressViewUITests" */; 197 | buildPhases = ( 198 | 3FC327F51CF58AD800DE6FFB /* Sources */, 199 | 3FC327F61CF58AD800DE6FFB /* Frameworks */, 200 | 3FC327F71CF58AD800DE6FFB /* Resources */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | 3FC327FB1CF58AD800DE6FFB /* PBXTargetDependency */, 206 | ); 207 | name = CATCurveProgressViewUITests; 208 | productName = CATCurveProgressViewUITests; 209 | productReference = 3FC327F91CF58AD800DE6FFB /* CATCurveProgressViewUITests.xctest */; 210 | productType = "com.apple.product-type.bundle.ui-testing"; 211 | }; 212 | /* End PBXNativeTarget section */ 213 | 214 | /* Begin PBXProject section */ 215 | 3FC327CD1CF58AD800DE6FFB /* Project object */ = { 216 | isa = PBXProject; 217 | attributes = { 218 | LastUpgradeCheck = 0730; 219 | ORGANIZATIONNAME = catch; 220 | TargetAttributes = { 221 | 3FC327D41CF58AD800DE6FFB = { 222 | CreatedOnToolsVersion = 7.3.1; 223 | DevelopmentTeam = XWN8AWFG9J; 224 | }; 225 | 3FC327ED1CF58AD800DE6FFB = { 226 | CreatedOnToolsVersion = 7.3.1; 227 | TestTargetID = 3FC327D41CF58AD800DE6FFB; 228 | }; 229 | 3FC327F81CF58AD800DE6FFB = { 230 | CreatedOnToolsVersion = 7.3.1; 231 | TestTargetID = 3FC327D41CF58AD800DE6FFB; 232 | }; 233 | }; 234 | }; 235 | buildConfigurationList = 3FC327D01CF58AD800DE6FFB /* Build configuration list for PBXProject "CATCurveProgressView" */; 236 | compatibilityVersion = "Xcode 3.2"; 237 | developmentRegion = English; 238 | hasScannedForEncodings = 0; 239 | knownRegions = ( 240 | en, 241 | Base, 242 | ); 243 | mainGroup = 3FC327CC1CF58AD800DE6FFB; 244 | productRefGroup = 3FC327D61CF58AD800DE6FFB /* Products */; 245 | projectDirPath = ""; 246 | projectRoot = ""; 247 | targets = ( 248 | 3FC327D41CF58AD800DE6FFB /* CATCurveProgressView */, 249 | 3FC327ED1CF58AD800DE6FFB /* CATCurveProgressViewTests */, 250 | 3FC327F81CF58AD800DE6FFB /* CATCurveProgressViewUITests */, 251 | ); 252 | }; 253 | /* End PBXProject section */ 254 | 255 | /* Begin PBXResourcesBuildPhase section */ 256 | 3FC327D31CF58AD800DE6FFB /* Resources */ = { 257 | isa = PBXResourcesBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | 3FC327E81CF58AD800DE6FFB /* LaunchScreen.storyboard in Resources */, 261 | 3FC327E51CF58AD800DE6FFB /* Assets.xcassets in Resources */, 262 | 3FC327E31CF58AD800DE6FFB /* Main.storyboard in Resources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | 3FC327EC1CF58AD800DE6FFB /* Resources */ = { 267 | isa = PBXResourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | }; 273 | 3FC327F71CF58AD800DE6FFB /* Resources */ = { 274 | isa = PBXResourcesBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXResourcesBuildPhase section */ 281 | 282 | /* Begin PBXSourcesBuildPhase section */ 283 | 3FC327D11CF58AD800DE6FFB /* Sources */ = { 284 | isa = PBXSourcesBuildPhase; 285 | buildActionMask = 2147483647; 286 | files = ( 287 | 3FC327E01CF58AD800DE6FFB /* ViewController.m in Sources */, 288 | 3FC327DD1CF58AD800DE6FFB /* AppDelegate.m in Sources */, 289 | 3FC328101CF58D8C00DE6FFB /* CATCurveProgressView.m in Sources */, 290 | 3FC327DA1CF58AD800DE6FFB /* main.m in Sources */, 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | }; 294 | 3FC327EA1CF58AD800DE6FFB /* Sources */ = { 295 | isa = PBXSourcesBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | 3FC327F31CF58AD800DE6FFB /* CATCurveProgressViewTests.m in Sources */, 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | 3FC327F51CF58AD800DE6FFB /* Sources */ = { 303 | isa = PBXSourcesBuildPhase; 304 | buildActionMask = 2147483647; 305 | files = ( 306 | 3FC327FE1CF58AD800DE6FFB /* CATCurveProgressViewUITests.m in Sources */, 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | /* End PBXSourcesBuildPhase section */ 311 | 312 | /* Begin PBXTargetDependency section */ 313 | 3FC327F01CF58AD800DE6FFB /* PBXTargetDependency */ = { 314 | isa = PBXTargetDependency; 315 | target = 3FC327D41CF58AD800DE6FFB /* CATCurveProgressView */; 316 | targetProxy = 3FC327EF1CF58AD800DE6FFB /* PBXContainerItemProxy */; 317 | }; 318 | 3FC327FB1CF58AD800DE6FFB /* PBXTargetDependency */ = { 319 | isa = PBXTargetDependency; 320 | target = 3FC327D41CF58AD800DE6FFB /* CATCurveProgressView */; 321 | targetProxy = 3FC327FA1CF58AD800DE6FFB /* PBXContainerItemProxy */; 322 | }; 323 | /* End PBXTargetDependency section */ 324 | 325 | /* Begin PBXVariantGroup section */ 326 | 3FC327E11CF58AD800DE6FFB /* Main.storyboard */ = { 327 | isa = PBXVariantGroup; 328 | children = ( 329 | 3FC327E21CF58AD800DE6FFB /* Base */, 330 | ); 331 | name = Main.storyboard; 332 | sourceTree = ""; 333 | }; 334 | 3FC327E61CF58AD800DE6FFB /* LaunchScreen.storyboard */ = { 335 | isa = PBXVariantGroup; 336 | children = ( 337 | 3FC327E71CF58AD800DE6FFB /* Base */, 338 | ); 339 | name = LaunchScreen.storyboard; 340 | sourceTree = ""; 341 | }; 342 | /* End PBXVariantGroup section */ 343 | 344 | /* Begin XCBuildConfiguration section */ 345 | 3FC328001CF58AD800DE6FFB /* Debug */ = { 346 | isa = XCBuildConfiguration; 347 | buildSettings = { 348 | ALWAYS_SEARCH_USER_PATHS = NO; 349 | CLANG_ANALYZER_NONNULL = YES; 350 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 351 | CLANG_CXX_LIBRARY = "libc++"; 352 | CLANG_ENABLE_MODULES = YES; 353 | CLANG_ENABLE_OBJC_ARC = YES; 354 | CLANG_WARN_BOOL_CONVERSION = YES; 355 | CLANG_WARN_CONSTANT_CONVERSION = YES; 356 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 357 | CLANG_WARN_EMPTY_BODY = YES; 358 | CLANG_WARN_ENUM_CONVERSION = YES; 359 | CLANG_WARN_INT_CONVERSION = YES; 360 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 3FC328011CF58AD800DE6FFB /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | buildSettings = { 393 | ALWAYS_SEARCH_USER_PATHS = NO; 394 | CLANG_ANALYZER_NONNULL = YES; 395 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 396 | CLANG_CXX_LIBRARY = "libc++"; 397 | CLANG_ENABLE_MODULES = YES; 398 | CLANG_ENABLE_OBJC_ARC = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 402 | CLANG_WARN_EMPTY_BODY = YES; 403 | CLANG_WARN_ENUM_CONVERSION = YES; 404 | CLANG_WARN_INT_CONVERSION = YES; 405 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 406 | CLANG_WARN_UNREACHABLE_CODE = YES; 407 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 408 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 409 | COPY_PHASE_STRIP = NO; 410 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 411 | ENABLE_NS_ASSERTIONS = NO; 412 | ENABLE_STRICT_OBJC_MSGSEND = YES; 413 | GCC_C_LANGUAGE_STANDARD = gnu99; 414 | GCC_NO_COMMON_BLOCKS = YES; 415 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 416 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 417 | GCC_WARN_UNDECLARED_SELECTOR = YES; 418 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 419 | GCC_WARN_UNUSED_FUNCTION = YES; 420 | GCC_WARN_UNUSED_VARIABLE = YES; 421 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 422 | MTL_ENABLE_DEBUG_INFO = NO; 423 | SDKROOT = iphoneos; 424 | TARGETED_DEVICE_FAMILY = "1,2"; 425 | VALIDATE_PRODUCT = YES; 426 | }; 427 | name = Release; 428 | }; 429 | 3FC328031CF58AD800DE6FFB /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | buildSettings = { 432 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 433 | CODE_SIGN_IDENTITY = "iPhone Developer"; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 435 | INFOPLIST_FILE = CATCurveProgressView/Info.plist; 436 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 437 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 438 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressView; 439 | PRODUCT_NAME = "$(TARGET_NAME)"; 440 | PROVISIONING_PROFILE = ""; 441 | }; 442 | name = Debug; 443 | }; 444 | 3FC328041CF58AD800DE6FFB /* Release */ = { 445 | isa = XCBuildConfiguration; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CODE_SIGN_IDENTITY = "iPhone Developer"; 449 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 450 | INFOPLIST_FILE = CATCurveProgressView/Info.plist; 451 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressView; 454 | PRODUCT_NAME = "$(TARGET_NAME)"; 455 | PROVISIONING_PROFILE = ""; 456 | }; 457 | name = Release; 458 | }; 459 | 3FC328061CF58AD800DE6FFB /* Debug */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | BUNDLE_LOADER = "$(TEST_HOST)"; 463 | INFOPLIST_FILE = CATCurveProgressViewTests/Info.plist; 464 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 465 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressViewTests; 466 | PRODUCT_NAME = "$(TARGET_NAME)"; 467 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CATCurveProgressView.app/CATCurveProgressView"; 468 | }; 469 | name = Debug; 470 | }; 471 | 3FC328071CF58AD800DE6FFB /* Release */ = { 472 | isa = XCBuildConfiguration; 473 | buildSettings = { 474 | BUNDLE_LOADER = "$(TEST_HOST)"; 475 | INFOPLIST_FILE = CATCurveProgressViewTests/Info.plist; 476 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 477 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressViewTests; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CATCurveProgressView.app/CATCurveProgressView"; 480 | }; 481 | name = Release; 482 | }; 483 | 3FC328091CF58AD800DE6FFB /* Debug */ = { 484 | isa = XCBuildConfiguration; 485 | buildSettings = { 486 | INFOPLIST_FILE = CATCurveProgressViewUITests/Info.plist; 487 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 488 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressViewUITests; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | TEST_TARGET_NAME = CATCurveProgressView; 491 | }; 492 | name = Debug; 493 | }; 494 | 3FC3280A1CF58AD800DE6FFB /* Release */ = { 495 | isa = XCBuildConfiguration; 496 | buildSettings = { 497 | INFOPLIST_FILE = CATCurveProgressViewUITests/Info.plist; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 499 | PRODUCT_BUNDLE_IDENTIFIER = com.catch.CATCurveProgressViewUITests; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | TEST_TARGET_NAME = CATCurveProgressView; 502 | }; 503 | name = Release; 504 | }; 505 | /* End XCBuildConfiguration section */ 506 | 507 | /* Begin XCConfigurationList section */ 508 | 3FC327D01CF58AD800DE6FFB /* Build configuration list for PBXProject "CATCurveProgressView" */ = { 509 | isa = XCConfigurationList; 510 | buildConfigurations = ( 511 | 3FC328001CF58AD800DE6FFB /* Debug */, 512 | 3FC328011CF58AD800DE6FFB /* Release */, 513 | ); 514 | defaultConfigurationIsVisible = 0; 515 | defaultConfigurationName = Release; 516 | }; 517 | 3FC328021CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressView" */ = { 518 | isa = XCConfigurationList; 519 | buildConfigurations = ( 520 | 3FC328031CF58AD800DE6FFB /* Debug */, 521 | 3FC328041CF58AD800DE6FFB /* Release */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 3FC328051CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressViewTests" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 3FC328061CF58AD800DE6FFB /* Debug */, 530 | 3FC328071CF58AD800DE6FFB /* Release */, 531 | ); 532 | defaultConfigurationIsVisible = 0; 533 | defaultConfigurationName = Release; 534 | }; 535 | 3FC328081CF58AD800DE6FFB /* Build configuration list for PBXNativeTarget "CATCurveProgressViewUITests" */ = { 536 | isa = XCConfigurationList; 537 | buildConfigurations = ( 538 | 3FC328091CF58AD800DE6FFB /* Debug */, 539 | 3FC3280A1CF58AD800DE6FFB /* Release */, 540 | ); 541 | defaultConfigurationIsVisible = 0; 542 | defaultConfigurationName = Release; 543 | }; 544 | /* End XCConfigurationList section */ 545 | }; 546 | rootObject = 3FC327CD1CF58AD800DE6FFB /* Project object */; 547 | } 548 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/project.xcworkspace/xcuserdata/catch.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CatchZeng/CATCurveProgressView/446b013fafdfcb65a928ac8a2e8263f037e0f9e7/CATCurveProgressView.xcodeproj/project.xcworkspace/xcuserdata/catch.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/project.xcworkspace/xcuserdata/zengcatch.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CatchZeng/CATCurveProgressView/446b013fafdfcb65a928ac8a2e8263f037e0f9e7/CATCurveProgressView.xcodeproj/project.xcworkspace/xcuserdata/zengcatch.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/xcuserdata/catch.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/xcuserdata/catch.xcuserdatad/xcschemes/CATCurveProgressView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/xcuserdata/catch.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CATCurveProgressView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 3FC327D41CF58AD800DE6FFB 16 | 17 | primary 18 | 19 | 20 | 3FC327ED1CF58AD800DE6FFB 21 | 22 | primary 23 | 24 | 25 | 3FC327F81CF58AD800DE6FFB 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/xcuserdata/zengcatch.xcuserdatad/xcschemes/CATCurveProgressView.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 43 | 49 | 50 | 51 | 52 | 53 | 59 | 60 | 61 | 62 | 63 | 64 | 74 | 76 | 82 | 83 | 84 | 85 | 86 | 87 | 93 | 95 | 101 | 102 | 103 | 104 | 106 | 107 | 110 | 111 | 112 | -------------------------------------------------------------------------------- /CATCurveProgressView.xcodeproj/xcuserdata/zengcatch.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CATCurveProgressView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 3FC327D41CF58AD800DE6FFB 16 | 17 | primary 18 | 19 | 20 | 3FC327ED1CF58AD800DE6FFB 21 | 22 | primary 23 | 24 | 25 | 3FC327F81CF58AD800DE6FFB 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /CATCurveProgressView/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /CATCurveProgressView/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /CATCurveProgressView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /CATCurveProgressView/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /CATCurveProgressView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | -------------------------------------------------------------------------------- /CATCurveProgressView/CATCurveProgressView/CATCurveProgressView.h: -------------------------------------------------------------------------------- 1 | // 2 | // CATCurveProgressView.h 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class CATCurveProgressView; 12 | @protocol CATCurveProgressViewDelegate 13 | 14 | @optional 15 | 16 | /** 17 | * Progress report 18 | * 19 | * @param progressView CATCurveProgressView 20 | * @param progress progress changed 21 | * @param lastProgress progress last time 22 | */ 23 | -(void)progressView:(CATCurveProgressView *)progressView progressChanged:(CGFloat)progress lastProgress:(CGFloat)lastProgress; 24 | 25 | @end 26 | 27 | 28 | IB_DESIGNABLE 29 | 30 | @interface CATCurveProgressView : UIView 31 | 32 | //Curve background color 33 | @property (nonatomic, strong) IBInspectable UIColor *curveBgColor; 34 | 35 | //Enable gradient effect 36 | @property (nonatomic, assign) IBInspectable CGFloat enableGradient; 37 | 38 | //Set gradient origin color 39 | @property (nonatomic, assign) IBInspectable UIColor *gradient1; 40 | 41 | //Set gradient ending color 42 | @property (nonatomic, assign) IBInspectable UIColor *gradient2; 43 | 44 | //Gradient layer1[you can custom gradient effect by set gradient layer1's property] 45 | @property (nonatomic, strong ,readonly) CAGradientLayer *gradientLayer1; 46 | 47 | //Gradient layer2[you can custom gradient effect by set gradient layer2's property] 48 | @property (nonatomic, strong ,readonly) CAGradientLayer *gradientLayer2; 49 | 50 | //Progress color when gradient effect is disable [!!!do no use clearColor] 51 | @property (nonatomic, strong) IBInspectable UIColor *progressColor; 52 | 53 | //Progress line width 54 | @property (nonatomic, assign) IBInspectable CGFloat progressLineWidth; 55 | 56 | //Start angle 57 | @property (nonatomic, assign) IBInspectable int startAngle; 58 | 59 | //End angle 60 | @property (nonatomic, assign) IBInspectable int endAngle; 61 | 62 | //Progress [0.0-1.0] 63 | @property (nonatomic, assign) IBInspectable CGFloat progress; 64 | 65 | //Delegate 66 | @property (nonatomic, weak) IBOutlet id delegate; 67 | 68 | /** 69 | * Set progress 70 | * 71 | * @param progress progress[0.0-1.0] 72 | * @param animated enbale animation? 73 | */ 74 | -(void)setProgress:(CGFloat)progress animated:(BOOL)animated; 75 | 76 | @end 77 | -------------------------------------------------------------------------------- /CATCurveProgressView/CATCurveProgressView/CATCurveProgressView.m: -------------------------------------------------------------------------------- 1 | // 2 | // CATCurveProgressView.m 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import "CATCurveProgressView.h" 10 | 11 | //Degress to PI 12 | #define CATDegreesToRadians(x) (M_PI*(x)/180.0) 13 | 14 | //Defalut value 15 | #define CATProgressLineWidth (10) 16 | #define CATProgressStartAngle (-210) 17 | #define CATProgressEndAngle (30) 18 | #define CATProgressCurveBgColor [UIColor colorWithRed:3/255.0f green:252/255.0f blue:254/255.0f alpha:0.25] 19 | #define CATGradientColor [UIColor cyanColor] 20 | #define CATGradient1Color [UIColor blueColor] 21 | #define CATGradient2Color [UIColor redColor] 22 | 23 | @interface CATCurveProgressView() 24 | 25 | @property (nonatomic, strong) CAShapeLayer *trackLayer; 26 | @property (nonatomic, strong) CAShapeLayer *progressLayer; 27 | @property (nonatomic, strong) CAGradientLayer *gradientLayer1; 28 | @property (nonatomic, strong) CAGradientLayer *gradientLayer2; 29 | @property (nonatomic, strong) CALayer *gradientLayer; 30 | @property (nonatomic, assign) CGFloat lastProgress; 31 | 32 | @end 33 | 34 | @implementation CATCurveProgressView 35 | 36 | 37 | #pragma mark -- 38 | #pragma mark -- Init & dealloc 39 | 40 | -(void)dealloc{ 41 | self.curveBgColor = nil; 42 | self.progressColor = nil; 43 | self.trackLayer = nil; 44 | self.progressLayer = nil; 45 | self.gradientLayer = nil; 46 | } 47 | 48 | - (instancetype)initWithFrame:(CGRect)frame{ 49 | self = [super initWithFrame:frame]; 50 | if (self) { 51 | [self _commonInit]; 52 | } 53 | return self; 54 | } 55 | 56 | - (instancetype)initWithCoder:(NSCoder *)coder{ 57 | self = [super initWithCoder:coder]; 58 | if (self) { 59 | [self _commonInit]; 60 | } 61 | return self; 62 | } 63 | 64 | - (instancetype)init{ 65 | self = [super init]; 66 | if (self) { 67 | [self _commonInit]; 68 | } 69 | return self; 70 | } 71 | 72 | -(void)_commonInit{ 73 | //1.Track layer 74 | _curveBgColor = CATProgressCurveBgColor; 75 | _trackLayer=[CAShapeLayer layer]; 76 | _trackLayer.frame=self.bounds; 77 | _trackLayer.fillColor = [UIColor clearColor].CGColor; 78 | _trackLayer.strokeColor = _curveBgColor.CGColor; 79 | _trackLayer.lineCap = kCALineCapRound; 80 | [self.layer addSublayer:_trackLayer]; 81 | 82 | //2.Progress layer 83 | _progressLayer=[CAShapeLayer layer]; 84 | _progressLayer.frame=self.bounds; 85 | _progressLayer.fillColor=[[UIColor clearColor] CGColor]; 86 | _progressLayer.strokeColor=[UIColor blueColor].CGColor;//!!!不能用clearColor 87 | _progressLayer.lineCap=kCALineCapRound; 88 | _progressLayer.strokeEnd=0.0; 89 | 90 | _gradient1 = CATGradient1Color; 91 | _gradient2 = CATGradient2Color; 92 | _startAngle = CATProgressStartAngle; 93 | _endAngle = CATProgressEndAngle; 94 | _progressLineWidth = CATProgressLineWidth; 95 | 96 | //3.Enable gradient 97 | [self setEnableGradient:NO]; 98 | } 99 | 100 | -(void)layoutSubviews{ 101 | [super layoutSubviews]; 102 | 103 | _trackLayer.frame=self.bounds; 104 | _progressLayer.frame=self.bounds; 105 | 106 | [self setProgressLineWidth:_progressLineWidth]; 107 | } 108 | 109 | #pragma mark -- 110 | #pragma mark -- Public Methods 111 | 112 | -(void)setProgress:(CGFloat)progress animated:(BOOL)animated{ 113 | progress = progress < 0.0f ? 0.0f : progress; 114 | progress = progress > 1.0f ? 1.0f : progress; 115 | _lastProgress = _progress; 116 | _progress = progress; 117 | [CATransaction begin]; 118 | [CATransaction setDisableActions:!animated]; 119 | [CATransaction setAnimationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]]; 120 | [CATransaction setAnimationDuration:1]; 121 | _progressLayer.strokeEnd=progress; 122 | [CATransaction commit]; 123 | 124 | if(_delegate && [_delegate respondsToSelector:@selector(progressView:progressChanged:lastProgress:)]){ 125 | [_delegate progressView:self progressChanged:_progress lastProgress:_lastProgress]; 126 | } 127 | } 128 | 129 | #pragma mark -- 130 | #pragma mark -- Setters && Getters 131 | 132 | -(void)setCurveBgColor:(UIColor *)curveBgColor{ 133 | _curveBgColor = curveBgColor; 134 | _trackLayer.strokeColor = _curveBgColor.CGColor; 135 | } 136 | 137 | //Enable gradient effect 138 | 139 | -(void)setGradient1:(UIColor *)gradientColor1{ 140 | _gradient1 = gradientColor1; 141 | if(_enableGradient == true) { 142 | if (_gradientLayer) { 143 | [_gradientLayer removeFromSuperlayer]; 144 | _gradientLayer = nil; 145 | } 146 | [self.layer addSublayer:self.gradientLayer]; 147 | } 148 | } 149 | 150 | -(void)setGradient2:(UIColor *)gradientColor2{ 151 | _gradient2 = gradientColor2; 152 | if(_enableGradient == true) { 153 | if (_gradientLayer) { 154 | [_gradientLayer removeFromSuperlayer]; 155 | _gradientLayer = nil; 156 | } 157 | [self.layer addSublayer:self.gradientLayer]; 158 | } 159 | } 160 | 161 | -(void)setEnableGradient:(CGFloat)enableGradient{ 162 | _enableGradient = enableGradient; 163 | if (_enableGradient) { 164 | if (_progressLayer) { 165 | [_progressLayer removeFromSuperlayer]; 166 | } 167 | if (![self.layer.sublayers containsObject:self.gradientLayer]) { 168 | [self.layer addSublayer:self.gradientLayer]; 169 | } 170 | }else{ 171 | if (_gradientLayer) { 172 | [_gradientLayer removeFromSuperlayer]; 173 | _gradientLayer = nil; 174 | } 175 | if (![self.layer.sublayers containsObject:_progressLayer]) { 176 | [self.layer addSublayer:_progressLayer]; 177 | } 178 | } 179 | } 180 | 181 | -(NSArray *)arrayFromColorArray:(NSArray *)colorArray{ 182 | NSMutableArray* array = [NSMutableArray arrayWithCapacity:colorArray.count]; 183 | for (UIColor* color in colorArray) { 184 | [array addObject:(id)color.CGColor]; 185 | } 186 | return array; 187 | } 188 | 189 | 190 | -(void)setProgressColor:(UIColor *)progressColor{ 191 | if (!progressColor) return; 192 | _progressColor = progressColor; 193 | _progressLayer.strokeColor= _progressColor.CGColor; 194 | } 195 | 196 | -(void)setProgressLineWidth:(CGFloat)progressLineWidth{ 197 | if (progressLineWidth < 0.5f) return; 198 | _progressLineWidth = progressLineWidth; 199 | 200 | _trackLayer.lineWidth = _progressLineWidth; 201 | CGFloat radius = self.frame.size.width/2-_progressLineWidth; 202 | UIBezierPath *path=[UIBezierPath bezierPathWithArcCenter:CGPointMake(self.frame.size.width/2, self.frame.size.height/2) radius:radius startAngle:CATDegreesToRadians(_startAngle) endAngle:CATDegreesToRadians(_endAngle) clockwise:YES]; 203 | _trackLayer.path=path.CGPath; 204 | 205 | _progressLayer.path = path.CGPath; 206 | _progressLayer.lineWidth=_progressLineWidth; 207 | } 208 | 209 | -(void)setStartAngle:(int)startAngle{ 210 | _startAngle = startAngle; 211 | [self setProgressLineWidth:_progressLineWidth]; 212 | } 213 | 214 | -(void)setEndAngle:(int)endAngle{ 215 | _endAngle = endAngle; 216 | [self setProgressLineWidth:_progressLineWidth]; 217 | } 218 | 219 | -(void)setProgress:(CGFloat)progress{ 220 | [self setProgress:progress animated:YES]; 221 | } 222 | 223 | - (CALayer *)gradientLayer { 224 | if(_gradientLayer == nil) { 225 | _gradientLayer=[CALayer layer]; 226 | 227 | _gradientLayer1=[CAGradientLayer layer]; 228 | _gradientLayer1.frame=CGRectMake(0, 0, self.bounds.size.width/2, self.bounds.size.height); 229 | 230 | UIColor* gradientColor = _progressColor ? _progressColor : CATGradientColor; 231 | 232 | [_gradientLayer1 setColors:[NSArray arrayWithObjects:(id)gradientColor.CGColor,(id)_gradient1.CGColor, nil]]; 233 | [_gradientLayer1 setStartPoint:CGPointMake(0.5, 0.2)];//[0 - 1] 234 | [_gradientLayer1 setEndPoint:CGPointMake(0.5, 0.5)]; 235 | [_gradientLayer addSublayer:_gradientLayer1]; 236 | 237 | _gradientLayer2=[CAGradientLayer layer]; 238 | _gradientLayer2.frame=CGRectMake(self.bounds.size.width/2, 0,self.bounds.size.width/2 , self.bounds.size.height); 239 | [_gradientLayer2 setColors:[NSArray arrayWithObjects:(id)gradientColor.CGColor,(id)_gradient2.CGColor, nil]]; 240 | [_gradientLayer2 setStartPoint:CGPointMake(0.5,0.2)];//[0 - 1] 241 | [_gradientLayer2 setEndPoint:CGPointMake(0.5, 0.5)]; 242 | 243 | [_gradientLayer addSublayer:_gradientLayer2]; 244 | [_gradientLayer setMask:_progressLayer]; 245 | } 246 | return _gradientLayer; 247 | } 248 | 249 | @end -------------------------------------------------------------------------------- /CATCurveProgressView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /CATCurveProgressView/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /CATCurveProgressView/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "CATCurveProgressView.h" 11 | 12 | @interface ViewController () 13 | 14 | @property (weak, nonatomic) IBOutlet CATCurveProgressView *progressView1; 15 | @property (weak, nonatomic) IBOutlet CATCurveProgressView *progressView2; 16 | @property (weak, nonatomic) IBOutlet CATCurveProgressView *progressView3; 17 | @property (weak, nonatomic) IBOutlet CATCurveProgressView *progressView4; 18 | 19 | @end 20 | 21 | @implementation ViewController 22 | 23 | - (void)viewDidLoad { 24 | [super viewDidLoad]; 25 | 26 | //custom gradient effect 27 | // _progressView.enableGradient = YES; 28 | // _progressView.gradientLayer1.colors = [NSArray arrayWithObjects:(id)[UIColor blueColor].CGColor,(id)[UIColor greenColor].CGColor,nil]; 29 | // _progressView.gradientLayer2.colors = [NSArray arrayWithObjects:(id)[UIColor blueColor].CGColor,(id)[UIColor yellowColor].CGColor,nil]; 30 | 31 | [self performSelector:@selector(changeProgress) withObject:nil afterDelay:1.0]; 32 | } 33 | 34 | -(void)changeProgress{ 35 | _progressView1.progress = 0.9f; 36 | _progressView2.progress = 1.0f; 37 | _progressView3.progress = 1.0f; 38 | _progressView4.progress = 1.0f; 39 | } 40 | 41 | -(void)progressView:(CATCurveProgressView *)progressView progressChanged:(CGFloat)progress lastProgress:(CGFloat)lastProgress{ 42 | NSLog(@"lastProgress = %.1f progress = %.1f",lastProgress,progress); 43 | } 44 | 45 | - (void)didReceiveMemoryWarning { 46 | [super didReceiveMemoryWarning]; 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /CATCurveProgressView/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // CATCurveProgressView 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /CATCurveProgressViewTests/CATCurveProgressViewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CATCurveProgressViewTests.m 3 | // CATCurveProgressViewTests 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CATCurveProgressViewTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CATCurveProgressViewTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | // This is an example of a functional test case. 29 | // Use XCTAssert and related functions to verify your tests produce the correct results. 30 | } 31 | 32 | - (void)testPerformanceExample { 33 | // This is an example of a performance test case. 34 | [self measureBlock:^{ 35 | // Put the code you want to measure the time of here. 36 | }]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /CATCurveProgressViewTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /CATCurveProgressViewUITests/CATCurveProgressViewUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // CATCurveProgressViewUITests.m 3 | // CATCurveProgressViewUITests 4 | // 5 | // Created by catch on 16/5/25. 6 | // Copyright © 2016年 catch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CATCurveProgressViewUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation CATCurveProgressViewUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /CATCurveProgressViewUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Catch Zeng 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CATCurveProgressView 2 | 3 | iOS custom curve (circular、arc、circle) progress view, supports gradient color, any angle, IBDesignable & IBInspectable, etc.. 4 | 5 | # Effect 6 | 7 | ![Effect](https://github.com/CatchZeng/CATCurveProgressView/blob/master/images/1.gif) 8 | 9 | # Installation 10 | 11 | Note: Remember to add use_frameworks! 12 | 13 | ``` 14 | use_frameworks! 15 | 16 | pod 'CATCurveProgressView' 17 | 18 | ``` 19 | 20 | 21 | # Usage 22 | 23 | You can init CATCurveProgressView in code or xib. 24 | 25 | ![Effect](https://github.com/CatchZeng/CATCurveProgressView/blob/master/images/2.gif) 26 | 27 | 28 | Change progress 29 | ```objective-c 30 | 31 | _progressView1.progress = 0.9f; 32 | //or 33 | [_progressView1 setProgress:0.9f animated:YES]; 34 | 35 | ``` 36 | 37 | Customization 38 | ```objective-c 39 | //Curve background color 40 | @property (nonatomic, strong) IBInspectable UIColor *curveBgColor; 41 | 42 | //Enable gradient effect 43 | @property (nonatomic, assign) IBInspectable CGFloat enableGradient; 44 | 45 | //Gradient layer1[you can custom gradient effect by set gradient layer1's property] 46 | @property (nonatomic, strong ,readonly) CAGradientLayer *gradientLayer1; 47 | 48 | //Gradient layer2[you can custom gradient effect by set gradient layer2's property] 49 | @property (nonatomic, strong ,readonly) CAGradientLayer *gradientLayer2; 50 | 51 | //Progress color when gradient effect is disable [!!!do no use clearColor] 52 | @property (nonatomic, strong) IBInspectable UIColor *progressColor; 53 | 54 | //Progress line width 55 | @property (nonatomic, assign) IBInspectable CGFloat progressLineWidth; 56 | 57 | //Start angle 58 | @property (nonatomic, assign) IBInspectable int startAngle; 59 | 60 | //End angle 61 | @property (nonatomic, assign) IBInspectable int endAngle; 62 | 63 | ``` 64 | 65 | Delegate 66 | ```objective-c 67 | /** 68 | * Progress report 69 | * 70 | * @param progressView CATCurveProgressView 71 | * @param progress progress changed 72 | * @param lastProgress progress last time 73 | */ 74 | -(void)progressView:(CATCurveProgressView *)progressView progressChanged:(CGFloat)progress lastProgress:(CGFloat)lastProgress; 75 | 76 | ``` 77 | -------------------------------------------------------------------------------- /images/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CatchZeng/CATCurveProgressView/446b013fafdfcb65a928ac8a2e8263f037e0f9e7/images/1.gif -------------------------------------------------------------------------------- /images/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CatchZeng/CATCurveProgressView/446b013fafdfcb65a928ac8a2e8263f037e0f9e7/images/2.gif --------------------------------------------------------------------------------