├── .gitignore ├── .swift-version ├── CHANGELOG.md ├── Demo ├── GearAnimation.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── GearAnimation.xcworkspace │ └── contents.xcworkspacedata ├── GearAnimation │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── GearRefreshControl-120.png │ │ │ ├── GearRefreshControl-121.png │ │ │ ├── GearRefreshControl-180.png │ │ │ ├── GearRefreshControl-58.png │ │ │ ├── GearRefreshControl-80.png │ │ │ └── GearRefreshControl-87.png │ │ └── logo.imageset │ │ │ ├── Contents.json │ │ │ └── logo.pdf │ ├── Info.plist │ └── ViewController.swift ├── GearAnimationTests │ ├── GearAnimationTests.swift │ └── Info.plist ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── GearRefreshControl.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── GearRefreshControl │ ├── GearRefreshControl-dummy.m │ ├── GearRefreshControl-prefix.pch │ ├── GearRefreshControl-umbrella.h │ ├── GearRefreshControl.modulemap │ ├── GearRefreshControl.xcconfig │ └── Info.plist │ ├── Pods-GearAnimation │ ├── Info.plist │ ├── Pods-GearAnimation-acknowledgements.markdown │ ├── Pods-GearAnimation-acknowledgements.plist │ ├── Pods-GearAnimation-dummy.m │ ├── Pods-GearAnimation-frameworks.sh │ ├── Pods-GearAnimation-resources.sh │ ├── Pods-GearAnimation-umbrella.h │ ├── Pods-GearAnimation.debug.xcconfig │ ├── Pods-GearAnimation.modulemap │ └── Pods-GearAnimation.release.xcconfig │ └── Pods-GearAnimationTests │ ├── Info.plist │ ├── Pods-GearAnimationTests-acknowledgements.markdown │ ├── Pods-GearAnimationTests-acknowledgements.plist │ ├── Pods-GearAnimationTests-dummy.m │ ├── Pods-GearAnimationTests-frameworks.sh │ ├── Pods-GearAnimationTests-resources.sh │ ├── Pods-GearAnimationTests-umbrella.h │ ├── Pods-GearAnimationTests.debug.xcconfig │ ├── Pods-GearAnimationTests.modulemap │ └── Pods-GearAnimationTests.release.xcconfig ├── GearRefreshControl.podspec ├── GearRefreshControl.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── xcshareddata │ └── xcschemes │ └── GearRefreshControl.xcscheme ├── GearRefreshControl ├── GearRefreshControl.h └── Info.plist ├── LICENSE ├── README.md ├── Source ├── BigGear.swift ├── GearRefreshControl.swift └── MainGear.swift └── assets ├── Paintcode ├── bigGear.pcvd └── mainGear.pcvd ├── Sketch.sketch ├── demo.png ├── logo.png └── screenshot.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documented in this file. 3 | `GearRefreshControl` adheres to [Semantic Versioning](http://semver.org/). 4 | 5 | - `1.0.0` Releases - [1.0.0](#100) | [1.0.1](#101) 6 | - `0.3.x` Releases - [0.3.0](#030) 7 | - `0.2.x` Releases - [0.2](#02) | [0.2.1](#021) | [0.2.2](#022) 8 | - `0.1.x` Releases - [0.1](#01) 9 | 10 | --- 11 | 12 | ## [1.0.1](https://github.com/andreamazz/GearRefreshControl/releases/tag/1.0.1) 13 | 14 | - Merged #11 15 | 16 | ## [1.0.0](https://github.com/andreamazz/GearRefreshControl/releases/tag/1.0.0) 17 | 18 | First Stable release 19 | 20 | ## [0.3.0](https://github.com/andreamazz/GearRefreshControl/releases/tag/0.3.0) 21 | 22 | ### Added 23 | - Support to Carthage 24 | 25 | ## [0.2.2](https://github.com/andreamazz/GearRefreshControl/releases/tag/0.2.2) 26 | 27 | ### Fixed 28 | - Issue with the shadow view not updating properly on rotation. Thanks to [iAugux](https://github.com/iAugux). 29 | 30 | ## [0.2.1](https://github.com/andreamazz/GearRefreshControl/releases/tag/0.2.1) 31 | 32 | ## [0.2](https://github.com/andreamazz/GearRefreshControl/releases/tag/0.2) 33 | 34 | ### Added 35 | - `gearTintColor` property 36 | 37 | ## [0.1](https://github.com/andreamazz/GearRefreshControl/releases/tag/0.1) 38 | -------------------------------------------------------------------------------- /Demo/GearAnimation.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0144533E421790DFB80B0FFE /* Pods_GearAnimationTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 062CC50673F66E949CED1F2F /* Pods_GearAnimationTests.framework */; }; 11 | 65802E821AB9677200E40510 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65802E811AB9677200E40510 /* AppDelegate.swift */; }; 12 | 65802E841AB9677200E40510 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65802E831AB9677200E40510 /* ViewController.swift */; }; 13 | 65802E871AB9677200E40510 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 65802E851AB9677200E40510 /* Main.storyboard */; }; 14 | 65802E891AB9677200E40510 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 65802E881AB9677200E40510 /* Images.xcassets */; }; 15 | 65802E8C1AB9677200E40510 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 65802E8A1AB9677200E40510 /* LaunchScreen.xib */; }; 16 | 65802E981AB9677300E40510 /* GearAnimationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65802E971AB9677300E40510 /* GearAnimationTests.swift */; }; 17 | BE4706215BF3B6C2AE0CF607 /* Pods_GearAnimation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 19BF6C1061A212428BBBBF26 /* Pods_GearAnimation.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 65802E921AB9677300E40510 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 65802E741AB9677200E40510 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 65802E7B1AB9677200E40510; 26 | remoteInfo = GearAnimation; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 062CC50673F66E949CED1F2F /* Pods_GearAnimationTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GearAnimationTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 19BF6C1061A212428BBBBF26 /* Pods_GearAnimation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GearAnimation.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 211EB9BA1ECE2F16EA952C42 /* Pods-GearAnimation.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GearAnimation.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation.debug.xcconfig"; sourceTree = ""; }; 34 | 2747D084E3EE480347508A5A /* Pods-GearAnimationTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GearAnimationTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.release.xcconfig"; sourceTree = ""; }; 35 | 65802E7C1AB9677200E40510 /* GearAnimation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GearAnimation.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 65802E801AB9677200E40510 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 65802E811AB9677200E40510 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 65802E831AB9677200E40510 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 65802E861AB9677200E40510 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 65802E881AB9677200E40510 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 65802E8B1AB9677200E40510 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 65802E911AB9677300E40510 /* GearAnimationTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GearAnimationTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 65802E961AB9677300E40510 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 65802E971AB9677300E40510 /* GearAnimationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GearAnimationTests.swift; sourceTree = ""; }; 45 | 759CD43038EF4F60FF3C63F7 /* Pods-GearAnimationTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GearAnimationTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.debug.xcconfig"; sourceTree = ""; }; 46 | 7AA9FED7177DEA85E91FD7BA /* Pods-GearAnimation.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-GearAnimation.release.xcconfig"; path = "Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation.release.xcconfig"; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 65802E791AB9677200E40510 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | BE4706215BF3B6C2AE0CF607 /* Pods_GearAnimation.framework in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 65802E8E1AB9677300E40510 /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 0144533E421790DFB80B0FFE /* Pods_GearAnimationTests.framework in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 6568D6821BE80D7400A9E37C /* Resources */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 65802E851AB9677200E40510 /* Main.storyboard */, 73 | 65802E881AB9677200E40510 /* Images.xcassets */, 74 | 65802E8A1AB9677200E40510 /* LaunchScreen.xib */, 75 | ); 76 | name = Resources; 77 | sourceTree = ""; 78 | }; 79 | 65802E731AB9677200E40510 = { 80 | isa = PBXGroup; 81 | children = ( 82 | 65802E7E1AB9677200E40510 /* GearAnimation */, 83 | 65802E941AB9677300E40510 /* GearAnimationTests */, 84 | 65802E7D1AB9677200E40510 /* Products */, 85 | C0072CCABC284A63A667DCD0 /* Pods */, 86 | D7D7770EE663BE7B7143DD68 /* Frameworks */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 65802E7D1AB9677200E40510 /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 65802E7C1AB9677200E40510 /* GearAnimation.app */, 94 | 65802E911AB9677300E40510 /* GearAnimationTests.xctest */, 95 | ); 96 | name = Products; 97 | sourceTree = ""; 98 | }; 99 | 65802E7E1AB9677200E40510 /* GearAnimation */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 6568D6821BE80D7400A9E37C /* Resources */, 103 | 65802E811AB9677200E40510 /* AppDelegate.swift */, 104 | 65802E831AB9677200E40510 /* ViewController.swift */, 105 | 65802E7F1AB9677200E40510 /* Supporting Files */, 106 | ); 107 | path = GearAnimation; 108 | sourceTree = ""; 109 | }; 110 | 65802E7F1AB9677200E40510 /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 65802E801AB9677200E40510 /* Info.plist */, 114 | ); 115 | name = "Supporting Files"; 116 | sourceTree = ""; 117 | }; 118 | 65802E941AB9677300E40510 /* GearAnimationTests */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 65802E971AB9677300E40510 /* GearAnimationTests.swift */, 122 | 65802E951AB9677300E40510 /* Supporting Files */, 123 | ); 124 | path = GearAnimationTests; 125 | sourceTree = ""; 126 | }; 127 | 65802E951AB9677300E40510 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 65802E961AB9677300E40510 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | C0072CCABC284A63A667DCD0 /* Pods */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 211EB9BA1ECE2F16EA952C42 /* Pods-GearAnimation.debug.xcconfig */, 139 | 7AA9FED7177DEA85E91FD7BA /* Pods-GearAnimation.release.xcconfig */, 140 | 759CD43038EF4F60FF3C63F7 /* Pods-GearAnimationTests.debug.xcconfig */, 141 | 2747D084E3EE480347508A5A /* Pods-GearAnimationTests.release.xcconfig */, 142 | ); 143 | name = Pods; 144 | sourceTree = ""; 145 | }; 146 | D7D7770EE663BE7B7143DD68 /* Frameworks */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 19BF6C1061A212428BBBBF26 /* Pods_GearAnimation.framework */, 150 | 062CC50673F66E949CED1F2F /* Pods_GearAnimationTests.framework */, 151 | ); 152 | name = Frameworks; 153 | sourceTree = ""; 154 | }; 155 | /* End PBXGroup section */ 156 | 157 | /* Begin PBXNativeTarget section */ 158 | 65802E7B1AB9677200E40510 /* GearAnimation */ = { 159 | isa = PBXNativeTarget; 160 | buildConfigurationList = 65802E9B1AB9677300E40510 /* Build configuration list for PBXNativeTarget "GearAnimation" */; 161 | buildPhases = ( 162 | 403D62A24F72F5C5B640C0B5 /* [CP] Check Pods Manifest.lock */, 163 | 65802E781AB9677200E40510 /* Sources */, 164 | 65802E791AB9677200E40510 /* Frameworks */, 165 | 65802E7A1AB9677200E40510 /* Resources */, 166 | 873FBB99252862C209CC8B0C /* [CP] Embed Pods Frameworks */, 167 | C64F0B822D275126C9DC7DAC /* [CP] Copy Pods Resources */, 168 | ); 169 | buildRules = ( 170 | ); 171 | dependencies = ( 172 | ); 173 | name = GearAnimation; 174 | productName = GearAnimation; 175 | productReference = 65802E7C1AB9677200E40510 /* GearAnimation.app */; 176 | productType = "com.apple.product-type.application"; 177 | }; 178 | 65802E901AB9677300E40510 /* GearAnimationTests */ = { 179 | isa = PBXNativeTarget; 180 | buildConfigurationList = 65802E9E1AB9677300E40510 /* Build configuration list for PBXNativeTarget "GearAnimationTests" */; 181 | buildPhases = ( 182 | 85B1A5AE478BDF43CC378419 /* [CP] Check Pods Manifest.lock */, 183 | 65802E8D1AB9677300E40510 /* Sources */, 184 | 65802E8E1AB9677300E40510 /* Frameworks */, 185 | 65802E8F1AB9677300E40510 /* Resources */, 186 | 5D24446435188D47E21F6EA9 /* [CP] Embed Pods Frameworks */, 187 | 63248EB8E40DB039FD6B688C /* [CP] Copy Pods Resources */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | 65802E931AB9677300E40510 /* PBXTargetDependency */, 193 | ); 194 | name = GearAnimationTests; 195 | productName = GearAnimationTests; 196 | productReference = 65802E911AB9677300E40510 /* GearAnimationTests.xctest */; 197 | productType = "com.apple.product-type.bundle.unit-test"; 198 | }; 199 | /* End PBXNativeTarget section */ 200 | 201 | /* Begin PBXProject section */ 202 | 65802E741AB9677200E40510 /* Project object */ = { 203 | isa = PBXProject; 204 | attributes = { 205 | LastSwiftUpdateCheck = 0700; 206 | LastUpgradeCheck = 0830; 207 | ORGANIZATIONNAME = "Fancy Pixel"; 208 | TargetAttributes = { 209 | 65802E7B1AB9677200E40510 = { 210 | CreatedOnToolsVersion = 6.2; 211 | LastSwiftMigration = 0800; 212 | }; 213 | 65802E901AB9677300E40510 = { 214 | CreatedOnToolsVersion = 6.2; 215 | LastSwiftMigration = 0800; 216 | TestTargetID = 65802E7B1AB9677200E40510; 217 | }; 218 | }; 219 | }; 220 | buildConfigurationList = 65802E771AB9677200E40510 /* Build configuration list for PBXProject "GearAnimation" */; 221 | compatibilityVersion = "Xcode 3.2"; 222 | developmentRegion = English; 223 | hasScannedForEncodings = 0; 224 | knownRegions = ( 225 | en, 226 | Base, 227 | ); 228 | mainGroup = 65802E731AB9677200E40510; 229 | productRefGroup = 65802E7D1AB9677200E40510 /* Products */; 230 | projectDirPath = ""; 231 | projectRoot = ""; 232 | targets = ( 233 | 65802E7B1AB9677200E40510 /* GearAnimation */, 234 | 65802E901AB9677300E40510 /* GearAnimationTests */, 235 | ); 236 | }; 237 | /* End PBXProject section */ 238 | 239 | /* Begin PBXResourcesBuildPhase section */ 240 | 65802E7A1AB9677200E40510 /* Resources */ = { 241 | isa = PBXResourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | 65802E871AB9677200E40510 /* Main.storyboard in Resources */, 245 | 65802E8C1AB9677200E40510 /* LaunchScreen.xib in Resources */, 246 | 65802E891AB9677200E40510 /* Images.xcassets in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | 65802E8F1AB9677300E40510 /* Resources */ = { 251 | isa = PBXResourcesBuildPhase; 252 | buildActionMask = 2147483647; 253 | files = ( 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | /* End PBXResourcesBuildPhase section */ 258 | 259 | /* Begin PBXShellScriptBuildPhase section */ 260 | 403D62A24F72F5C5B640C0B5 /* [CP] Check Pods Manifest.lock */ = { 261 | isa = PBXShellScriptBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | ); 265 | inputPaths = ( 266 | ); 267 | name = "[CP] Check Pods Manifest.lock"; 268 | outputPaths = ( 269 | ); 270 | runOnlyForDeploymentPostprocessing = 0; 271 | shellPath = /bin/sh; 272 | 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"; 273 | showEnvVarsInLog = 0; 274 | }; 275 | 5D24446435188D47E21F6EA9 /* [CP] Embed Pods Frameworks */ = { 276 | isa = PBXShellScriptBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | ); 280 | inputPaths = ( 281 | ); 282 | name = "[CP] Embed Pods Frameworks"; 283 | outputPaths = ( 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | shellPath = /bin/sh; 287 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-frameworks.sh\"\n"; 288 | showEnvVarsInLog = 0; 289 | }; 290 | 63248EB8E40DB039FD6B688C /* [CP] Copy Pods Resources */ = { 291 | isa = PBXShellScriptBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | ); 295 | inputPaths = ( 296 | ); 297 | name = "[CP] Copy Pods Resources"; 298 | outputPaths = ( 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | shellPath = /bin/sh; 302 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-resources.sh\"\n"; 303 | showEnvVarsInLog = 0; 304 | }; 305 | 85B1A5AE478BDF43CC378419 /* [CP] Check Pods Manifest.lock */ = { 306 | isa = PBXShellScriptBuildPhase; 307 | buildActionMask = 2147483647; 308 | files = ( 309 | ); 310 | inputPaths = ( 311 | ); 312 | name = "[CP] Check Pods Manifest.lock"; 313 | outputPaths = ( 314 | ); 315 | runOnlyForDeploymentPostprocessing = 0; 316 | shellPath = /bin/sh; 317 | 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"; 318 | showEnvVarsInLog = 0; 319 | }; 320 | 873FBB99252862C209CC8B0C /* [CP] Embed Pods Frameworks */ = { 321 | isa = PBXShellScriptBuildPhase; 322 | buildActionMask = 2147483647; 323 | files = ( 324 | ); 325 | inputPaths = ( 326 | ); 327 | name = "[CP] Embed Pods Frameworks"; 328 | outputPaths = ( 329 | ); 330 | runOnlyForDeploymentPostprocessing = 0; 331 | shellPath = /bin/sh; 332 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-frameworks.sh\"\n"; 333 | showEnvVarsInLog = 0; 334 | }; 335 | C64F0B822D275126C9DC7DAC /* [CP] Copy Pods Resources */ = { 336 | isa = PBXShellScriptBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | ); 340 | inputPaths = ( 341 | ); 342 | name = "[CP] Copy Pods Resources"; 343 | outputPaths = ( 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | shellPath = /bin/sh; 347 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-resources.sh\"\n"; 348 | showEnvVarsInLog = 0; 349 | }; 350 | /* End PBXShellScriptBuildPhase section */ 351 | 352 | /* Begin PBXSourcesBuildPhase section */ 353 | 65802E781AB9677200E40510 /* Sources */ = { 354 | isa = PBXSourcesBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | 65802E841AB9677200E40510 /* ViewController.swift in Sources */, 358 | 65802E821AB9677200E40510 /* AppDelegate.swift in Sources */, 359 | ); 360 | runOnlyForDeploymentPostprocessing = 0; 361 | }; 362 | 65802E8D1AB9677300E40510 /* Sources */ = { 363 | isa = PBXSourcesBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | 65802E981AB9677300E40510 /* GearAnimationTests.swift in Sources */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | /* End PBXSourcesBuildPhase section */ 371 | 372 | /* Begin PBXTargetDependency section */ 373 | 65802E931AB9677300E40510 /* PBXTargetDependency */ = { 374 | isa = PBXTargetDependency; 375 | target = 65802E7B1AB9677200E40510 /* GearAnimation */; 376 | targetProxy = 65802E921AB9677300E40510 /* PBXContainerItemProxy */; 377 | }; 378 | /* End PBXTargetDependency section */ 379 | 380 | /* Begin PBXVariantGroup section */ 381 | 65802E851AB9677200E40510 /* Main.storyboard */ = { 382 | isa = PBXVariantGroup; 383 | children = ( 384 | 65802E861AB9677200E40510 /* Base */, 385 | ); 386 | name = Main.storyboard; 387 | sourceTree = ""; 388 | }; 389 | 65802E8A1AB9677200E40510 /* LaunchScreen.xib */ = { 390 | isa = PBXVariantGroup; 391 | children = ( 392 | 65802E8B1AB9677200E40510 /* Base */, 393 | ); 394 | name = LaunchScreen.xib; 395 | sourceTree = ""; 396 | }; 397 | /* End PBXVariantGroup section */ 398 | 399 | /* Begin XCBuildConfiguration section */ 400 | 65802E991AB9677300E40510 /* Debug */ = { 401 | isa = XCBuildConfiguration; 402 | buildSettings = { 403 | ALWAYS_SEARCH_USER_PATHS = NO; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 405 | CLANG_CXX_LIBRARY = "libc++"; 406 | CLANG_ENABLE_MODULES = YES; 407 | CLANG_ENABLE_OBJC_ARC = YES; 408 | CLANG_WARN_BOOL_CONVERSION = YES; 409 | CLANG_WARN_CONSTANT_CONVERSION = YES; 410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 411 | CLANG_WARN_EMPTY_BODY = YES; 412 | CLANG_WARN_ENUM_CONVERSION = YES; 413 | CLANG_WARN_INFINITE_RECURSION = YES; 414 | CLANG_WARN_INT_CONVERSION = YES; 415 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | ENABLE_TESTABILITY = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu99; 424 | GCC_DYNAMIC_NO_PIC = NO; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_OPTIMIZATION_LEVEL = 0; 427 | GCC_PREPROCESSOR_DEFINITIONS = ( 428 | "DEBUG=1", 429 | "$(inherited)", 430 | ); 431 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | SDKROOT = iphoneos; 442 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 443 | }; 444 | name = Debug; 445 | }; 446 | 65802E9A1AB9677300E40510 /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | ALWAYS_SEARCH_USER_PATHS = NO; 450 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 451 | CLANG_CXX_LIBRARY = "libc++"; 452 | CLANG_ENABLE_MODULES = YES; 453 | CLANG_ENABLE_OBJC_ARC = YES; 454 | CLANG_WARN_BOOL_CONVERSION = YES; 455 | CLANG_WARN_CONSTANT_CONVERSION = YES; 456 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 457 | CLANG_WARN_EMPTY_BODY = YES; 458 | CLANG_WARN_ENUM_CONVERSION = YES; 459 | CLANG_WARN_INFINITE_RECURSION = YES; 460 | CLANG_WARN_INT_CONVERSION = YES; 461 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 462 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 463 | CLANG_WARN_UNREACHABLE_CODE = YES; 464 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 465 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 466 | COPY_PHASE_STRIP = NO; 467 | ENABLE_NS_ASSERTIONS = NO; 468 | ENABLE_STRICT_OBJC_MSGSEND = YES; 469 | GCC_C_LANGUAGE_STANDARD = gnu99; 470 | GCC_NO_COMMON_BLOCKS = YES; 471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 473 | GCC_WARN_UNDECLARED_SELECTOR = YES; 474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 475 | GCC_WARN_UNUSED_FUNCTION = YES; 476 | GCC_WARN_UNUSED_VARIABLE = YES; 477 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 478 | MTL_ENABLE_DEBUG_INFO = NO; 479 | SDKROOT = iphoneos; 480 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 481 | VALIDATE_PRODUCT = YES; 482 | }; 483 | name = Release; 484 | }; 485 | 65802E9C1AB9677300E40510 /* Debug */ = { 486 | isa = XCBuildConfiguration; 487 | baseConfigurationReference = 211EB9BA1ECE2F16EA952C42 /* Pods-GearAnimation.debug.xcconfig */; 488 | buildSettings = { 489 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 490 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 491 | INFOPLIST_FILE = GearAnimation/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 493 | PRODUCT_BUNDLE_IDENTIFIER = "it.fancypixel.$(PRODUCT_NAME:rfc1034identifier)"; 494 | PRODUCT_NAME = "$(TARGET_NAME)"; 495 | SWIFT_VERSION = 3.0; 496 | }; 497 | name = Debug; 498 | }; 499 | 65802E9D1AB9677300E40510 /* Release */ = { 500 | isa = XCBuildConfiguration; 501 | baseConfigurationReference = 7AA9FED7177DEA85E91FD7BA /* Pods-GearAnimation.release.xcconfig */; 502 | buildSettings = { 503 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | INFOPLIST_FILE = GearAnimation/Info.plist; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 507 | PRODUCT_BUNDLE_IDENTIFIER = "it.fancypixel.$(PRODUCT_NAME:rfc1034identifier)"; 508 | PRODUCT_NAME = "$(TARGET_NAME)"; 509 | SWIFT_VERSION = 3.0; 510 | }; 511 | name = Release; 512 | }; 513 | 65802E9F1AB9677300E40510 /* Debug */ = { 514 | isa = XCBuildConfiguration; 515 | baseConfigurationReference = 759CD43038EF4F60FF3C63F7 /* Pods-GearAnimationTests.debug.xcconfig */; 516 | buildSettings = { 517 | BUNDLE_LOADER = "$(TEST_HOST)"; 518 | FRAMEWORK_SEARCH_PATHS = ( 519 | "$(SDKROOT)/Developer/Library/Frameworks", 520 | "$(inherited)", 521 | ); 522 | GCC_PREPROCESSOR_DEFINITIONS = ( 523 | "DEBUG=1", 524 | "$(inherited)", 525 | ); 526 | INFOPLIST_FILE = GearAnimationTests/Info.plist; 527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 528 | PRODUCT_BUNDLE_IDENTIFIER = "it.fancypixel.$(PRODUCT_NAME:rfc1034identifier)"; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | SWIFT_VERSION = 3.0; 531 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GearAnimation.app/GearAnimation"; 532 | }; 533 | name = Debug; 534 | }; 535 | 65802EA01AB9677300E40510 /* Release */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = 2747D084E3EE480347508A5A /* Pods-GearAnimationTests.release.xcconfig */; 538 | buildSettings = { 539 | BUNDLE_LOADER = "$(TEST_HOST)"; 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(SDKROOT)/Developer/Library/Frameworks", 542 | "$(inherited)", 543 | ); 544 | INFOPLIST_FILE = GearAnimationTests/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 546 | PRODUCT_BUNDLE_IDENTIFIER = "it.fancypixel.$(PRODUCT_NAME:rfc1034identifier)"; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | SWIFT_VERSION = 3.0; 549 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/GearAnimation.app/GearAnimation"; 550 | }; 551 | name = Release; 552 | }; 553 | /* End XCBuildConfiguration section */ 554 | 555 | /* Begin XCConfigurationList section */ 556 | 65802E771AB9677200E40510 /* Build configuration list for PBXProject "GearAnimation" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 65802E991AB9677300E40510 /* Debug */, 560 | 65802E9A1AB9677300E40510 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 65802E9B1AB9677300E40510 /* Build configuration list for PBXNativeTarget "GearAnimation" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 65802E9C1AB9677300E40510 /* Debug */, 569 | 65802E9D1AB9677300E40510 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 65802E9E1AB9677300E40510 /* Build configuration list for PBXNativeTarget "GearAnimationTests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 65802E9F1AB9677300E40510 /* Debug */, 578 | 65802EA01AB9677300E40510 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 65802E741AB9677200E40510 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /Demo/GearAnimation.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/GearAnimation.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Demo/GearAnimation/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // GearAnimation 4 | // 5 | // Created by Andrea Mazzini on 18/03/15. 6 | // Copyright (c) 2015 Fancy Pixel. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 17 | return true 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /Demo/GearAnimation/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /Demo/GearAnimation/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 | -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "GearRefreshControl-58.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "GearRefreshControl-87.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "GearRefreshControl-80.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "GearRefreshControl-121.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "GearRefreshControl-120.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "GearRefreshControl-180.png", 37 | "scale" : "3x" 38 | } 39 | ], 40 | "info" : { 41 | "version" : 1, 42 | "author" : "xcode" 43 | } 44 | } -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-120.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-121.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-121.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-180.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-58.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-80.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/AppIcon.appiconset/GearRefreshControl-87.png -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/logo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "logo.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Demo/GearAnimation/Images.xcassets/logo.imageset/logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/Demo/GearAnimation/Images.xcassets/logo.imageset/logo.pdf -------------------------------------------------------------------------------- /Demo/GearAnimation/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 | UIStatusBarStyle 34 | UIStatusBarStyleLightContent 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/GearAnimation/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // GearAnimation 4 | // 5 | // Created by Andrea Mazzini on 18/03/15. 6 | // Copyright (c) 2015 Fancy Pixel. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import GearRefreshControl 11 | 12 | class ViewController: UITableViewController { 13 | 14 | var gearRefreshControl: GearRefreshControl! 15 | 16 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 17 | return 20 18 | } 19 | 20 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 21 | return tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) 22 | } 23 | 24 | override func viewDidLoad() { 25 | super.viewDidLoad() 26 | gearRefreshControl = GearRefreshControl(frame: self.view.bounds) 27 | // gearRefreshControl.gearTintColor = UIColor(red:0.48, green:0.84, blue:0, alpha:1) 28 | 29 | gearRefreshControl.addTarget(self, action: #selector(ViewController.refresh), for: UIControlEvents.valueChanged) 30 | self.refreshControl = gearRefreshControl 31 | } 32 | 33 | func refresh(){ 34 | let popTime = DispatchTime.now() + Double(Int64(3.0 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC); 35 | DispatchQueue.main.asyncAfter(deadline: popTime) { () -> Void in 36 | self.gearRefreshControl.endRefreshing() 37 | } 38 | } 39 | 40 | override func scrollViewDidScroll(_ scrollView: UIScrollView) { 41 | gearRefreshControl.scrollViewDidScroll(scrollView) 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Demo/GearAnimationTests/GearAnimationTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GearAnimationTests.swift 3 | // GearAnimationTests 4 | // 5 | // Created by Andrea Mazzini on 18/03/15. 6 | // Copyright (c) 2015 Fancy Pixel. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class GearAnimationTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Demo/GearAnimationTests/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 | -------------------------------------------------------------------------------- /Demo/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '6.0' 3 | 4 | target 'GearAnimation' do 5 | pod 'GearRefreshControl', path: '../' 6 | end 7 | 8 | target 'GearAnimationTests' do 9 | 10 | end 11 | 12 | use_frameworks! 13 | -------------------------------------------------------------------------------- /Demo/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - GearRefreshControl (0.3.0) 3 | 4 | DEPENDENCIES: 5 | - GearRefreshControl (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | GearRefreshControl: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | GearRefreshControl: c7b1abac8a298f180df48c1bc450469e98840c46 13 | 14 | PODFILE CHECKSUM: e8632771b1c1fc987442d869b715499e4e3cbf63 15 | 16 | COCOAPODS: 1.1.0.rc.2 17 | -------------------------------------------------------------------------------- /Demo/Pods/Local Podspecs/GearRefreshControl.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "GearRefreshControl", 3 | "version": "0.3.0", 4 | "license": "MIT", 5 | "summary": "A custom animation for the UIRefreshControl", 6 | "description": "Provides a custom UIRefreshControl animating a series of cogs", 7 | "homepage": "https://github.com/andreamazz/GearRefreshControl", 8 | "social_media_url": "https://twitter.com/theandreamazz", 9 | "authors": { 10 | "Andrea Mazzini": "andrea.mazzini@gmail.com" 11 | }, 12 | "source": { 13 | "git": "https://github.com/andreamazz/GearRefreshControl.git", 14 | "tag": "0.3.0" 15 | }, 16 | "platforms": { 17 | "ios": "8.0" 18 | }, 19 | "source_files": "Source/*.swift", 20 | "requires_arc": true 21 | } 22 | -------------------------------------------------------------------------------- /Demo/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - GearRefreshControl (0.3.0) 3 | 4 | DEPENDENCIES: 5 | - GearRefreshControl (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | GearRefreshControl: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | GearRefreshControl: c7b1abac8a298f180df48c1bc450469e98840c46 13 | 14 | PODFILE CHECKSUM: e8632771b1c1fc987442d869b715499e4e3cbf63 15 | 16 | COCOAPODS: 1.1.0.rc.2 17 | -------------------------------------------------------------------------------- /Demo/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2190D32D4263C703A541F9E63F6EC98A /* MainGear.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF61EBD41B986BBC639E8775D2D1B1C0 /* MainGear.swift */; }; 11 | 2EA05EAF46BEC8F52A1EB68DD0E7BD83 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 12 | 3EA10C6FC2A6A60A8CF03E977176F0BD /* Pods-GearAnimationTests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 457C691765103EFB50A6C3735015FCB9 /* Pods-GearAnimationTests-dummy.m */; }; 13 | 82726EF3D1EC621A7177CFC1D0415451 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 14 | 94B973CACD5B81171A03871804628880 /* Pods-GearAnimation-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DDB2BD06E6CC252C2AF4277F1F1DDA7 /* Pods-GearAnimation-dummy.m */; }; 15 | BFC686AF3ACEF92A225FC0F396205D12 /* BigGear.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5ADE1E67D37D5BF2CF70F535C192C33F /* BigGear.swift */; }; 16 | CA2CBA6F217B3A9A4F0CC9FBF6075CB0 /* GearRefreshControl-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3F6E79FB0112A148DB66AF27F2E839E0 /* GearRefreshControl-dummy.m */; }; 17 | CCF7F75350C320FEEF93D50D14D3FD25 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 18 | E3A93CEEDFEA05B9C8CBD5C27BB67633 /* GearRefreshControl-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 56EFE24DB9AEE173D531FCA05450A68F /* GearRefreshControl-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | F5B4FF013165C2D8166FEFE986D6D63E /* GearRefreshControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C3EA6DA156F851C14B7E005D6F58C0 /* GearRefreshControl.swift */; }; 20 | FC658AD93AA631CEC4A6E7996A56DB98 /* Pods-GearAnimation-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E5DF10B76F07E0E0E88C205A835644B8 /* Pods-GearAnimation-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | FFD290E6901D8729D0B588C8E1FFCF75 /* Pods-GearAnimationTests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = A4F4D215B1F4243A342EEB894159DAA4 /* Pods-GearAnimationTests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | C650913EF7F858159AD1AF36362C59D9 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 56ED5A9B08C347F5F0514DCF844B75C0; 30 | remoteInfo = GearRefreshControl; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 07BE85A5B669F33C50B6BCFC59298EB1 /* Pods-GearAnimation.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GearAnimation.debug.xcconfig"; sourceTree = ""; }; 36 | 1504F370C4ACFBFF5A254A98A66B1EE6 /* Pods-GearAnimation-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-GearAnimation-acknowledgements.markdown"; sourceTree = ""; }; 37 | 23F068FA3D7F8926B3BBB0498D64647A /* GearRefreshControl.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = GearRefreshControl.modulemap; sourceTree = ""; }; 38 | 2543E04E087C9D40DC5D1BC2DD93E7D1 /* Pods-GearAnimation-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GearAnimation-frameworks.sh"; sourceTree = ""; }; 39 | 354A1E5C92791BB5C169CC3606EEA809 /* Pods-GearAnimationTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GearAnimationTests.release.xcconfig"; sourceTree = ""; }; 40 | 3F6E79FB0112A148DB66AF27F2E839E0 /* GearRefreshControl-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "GearRefreshControl-dummy.m"; sourceTree = ""; }; 41 | 4046D6858EAF9530C0CD390E6E248A14 /* Pods-GearAnimationTests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-GearAnimationTests.modulemap"; sourceTree = ""; }; 42 | 457C691765103EFB50A6C3735015FCB9 /* Pods-GearAnimationTests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-GearAnimationTests-dummy.m"; sourceTree = ""; }; 43 | 4829E88675B7A87A55E8657FF4DD32C4 /* Pods-GearAnimation-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GearAnimation-acknowledgements.plist"; sourceTree = ""; }; 44 | 4DDB2BD06E6CC252C2AF4277F1F1DDA7 /* Pods-GearAnimation-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-GearAnimation-dummy.m"; sourceTree = ""; }; 45 | 503BAF5F6905BCD915AC91DAF243BEDA /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 51DE86CB56D0D1A8C9D80121FD8E71A9 /* Pods-GearAnimationTests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GearAnimationTests-frameworks.sh"; sourceTree = ""; }; 47 | 56EFE24DB9AEE173D531FCA05450A68F /* GearRefreshControl-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "GearRefreshControl-umbrella.h"; sourceTree = ""; }; 48 | 5ADE1E67D37D5BF2CF70F535C192C33F /* BigGear.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BigGear.swift; sourceTree = ""; }; 49 | 713905900DE0284EAD36628FDE079D0E /* Pods-GearAnimation.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-GearAnimation.modulemap"; sourceTree = ""; }; 50 | 85CE78B329B50953A5029BA1FD2A19B4 /* Pods-GearAnimation-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GearAnimation-resources.sh"; sourceTree = ""; }; 51 | 86E5CB0D580EB03472E5A1B2A471C53F /* Pods-GearAnimationTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GearAnimationTests.debug.xcconfig"; sourceTree = ""; }; 52 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 53 | 9E033607F5A14CD68A97E4652658BEC1 /* Pods-GearAnimation.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-GearAnimation.release.xcconfig"; sourceTree = ""; }; 54 | 9EA2C6ABD57DFEF512FE0AC10D04F733 /* Pods-GearAnimationTests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-GearAnimationTests-acknowledgements.plist"; sourceTree = ""; }; 55 | A4F4D215B1F4243A342EEB894159DAA4 /* Pods-GearAnimationTests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-GearAnimationTests-umbrella.h"; sourceTree = ""; }; 56 | BF61EBD41B986BBC639E8775D2D1B1C0 /* MainGear.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MainGear.swift; sourceTree = ""; }; 57 | C0C0DABB13982DE5D570B50701B8D38C /* Pods_GearAnimationTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GearAnimationTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | C30ED219A398B5D98FDECEFA2726B796 /* Pods-GearAnimationTests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-GearAnimationTests-acknowledgements.markdown"; sourceTree = ""; }; 59 | CBC6EBD9BC5E9483975025002F1521C0 /* Pods_GearAnimation.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GearAnimation.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | CE5A06107C7BD027F07D4FB9328694B2 /* GearRefreshControl-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "GearRefreshControl-prefix.pch"; sourceTree = ""; }; 61 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 62 | D5E8C1FD759D57020B6C26FEF9B0DBF3 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | D6C3EA6DA156F851C14B7E005D6F58C0 /* GearRefreshControl.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = GearRefreshControl.swift; sourceTree = ""; }; 64 | DCCDD49C4CD2869B441E74A89A269EEF /* Pods-GearAnimationTests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-GearAnimationTests-resources.sh"; sourceTree = ""; }; 65 | DD1D52DEE7133E9787E0EDBC99921CD9 /* GearRefreshControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GearRefreshControl.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | E5DF10B76F07E0E0E88C205A835644B8 /* Pods-GearAnimation-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-GearAnimation-umbrella.h"; sourceTree = ""; }; 67 | E795ED67D0DFD4CCC452022D77155C5F /* GearRefreshControl.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = GearRefreshControl.xcconfig; sourceTree = ""; }; 68 | F7BFCFDB8F419FFFCC2ACBBD040B7C69 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | 3D2084BA3A6E8CD3AA56B981E7955D98 /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | CCF7F75350C320FEEF93D50D14D3FD25 /* Foundation.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | F35D5A81238FA507F092B5F9969AED13 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | 82726EF3D1EC621A7177CFC1D0415451 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | FA318872F44F45CA89E836E8187836AC /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 2EA05EAF46BEC8F52A1EB68DD0E7BD83 /* Foundation.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | /* End PBXFrameworksBuildPhase section */ 97 | 98 | /* Begin PBXGroup section */ 99 | 1C465A3E92F09CDCB25F9C647D0FEDA1 /* Targets Support Files */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | A58C02DDE7C974A62E77FB586385B3D6 /* Pods-GearAnimation */, 103 | B207E039F3D4B5F806A9EE7BB898EBF6 /* Pods-GearAnimationTests */, 104 | ); 105 | name = "Targets Support Files"; 106 | sourceTree = ""; 107 | }; 108 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */, 112 | ); 113 | name = iOS; 114 | sourceTree = ""; 115 | }; 116 | 3E4D90140660948143D9B0B567DA549D /* Support Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 23F068FA3D7F8926B3BBB0498D64647A /* GearRefreshControl.modulemap */, 120 | E795ED67D0DFD4CCC452022D77155C5F /* GearRefreshControl.xcconfig */, 121 | 3F6E79FB0112A148DB66AF27F2E839E0 /* GearRefreshControl-dummy.m */, 122 | CE5A06107C7BD027F07D4FB9328694B2 /* GearRefreshControl-prefix.pch */, 123 | 56EFE24DB9AEE173D531FCA05450A68F /* GearRefreshControl-umbrella.h */, 124 | D5E8C1FD759D57020B6C26FEF9B0DBF3 /* Info.plist */, 125 | ); 126 | name = "Support Files"; 127 | path = "Demo/Pods/Target Support Files/GearRefreshControl"; 128 | sourceTree = ""; 129 | }; 130 | 7DB346D0F39D3F0E887471402A8071AB = { 131 | isa = PBXGroup; 132 | children = ( 133 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 134 | C71882223851BFD77FD4457750CA1779 /* Development Pods */, 135 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 136 | F9364208661110094BAB1C00383C0DDE /* Products */, 137 | 1C465A3E92F09CDCB25F9C647D0FEDA1 /* Targets Support Files */, 138 | ); 139 | sourceTree = ""; 140 | }; 141 | A58C02DDE7C974A62E77FB586385B3D6 /* Pods-GearAnimation */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 503BAF5F6905BCD915AC91DAF243BEDA /* Info.plist */, 145 | 713905900DE0284EAD36628FDE079D0E /* Pods-GearAnimation.modulemap */, 146 | 1504F370C4ACFBFF5A254A98A66B1EE6 /* Pods-GearAnimation-acknowledgements.markdown */, 147 | 4829E88675B7A87A55E8657FF4DD32C4 /* Pods-GearAnimation-acknowledgements.plist */, 148 | 4DDB2BD06E6CC252C2AF4277F1F1DDA7 /* Pods-GearAnimation-dummy.m */, 149 | 2543E04E087C9D40DC5D1BC2DD93E7D1 /* Pods-GearAnimation-frameworks.sh */, 150 | 85CE78B329B50953A5029BA1FD2A19B4 /* Pods-GearAnimation-resources.sh */, 151 | E5DF10B76F07E0E0E88C205A835644B8 /* Pods-GearAnimation-umbrella.h */, 152 | 07BE85A5B669F33C50B6BCFC59298EB1 /* Pods-GearAnimation.debug.xcconfig */, 153 | 9E033607F5A14CD68A97E4652658BEC1 /* Pods-GearAnimation.release.xcconfig */, 154 | ); 155 | name = "Pods-GearAnimation"; 156 | path = "Target Support Files/Pods-GearAnimation"; 157 | sourceTree = ""; 158 | }; 159 | B207E039F3D4B5F806A9EE7BB898EBF6 /* Pods-GearAnimationTests */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | F7BFCFDB8F419FFFCC2ACBBD040B7C69 /* Info.plist */, 163 | 4046D6858EAF9530C0CD390E6E248A14 /* Pods-GearAnimationTests.modulemap */, 164 | C30ED219A398B5D98FDECEFA2726B796 /* Pods-GearAnimationTests-acknowledgements.markdown */, 165 | 9EA2C6ABD57DFEF512FE0AC10D04F733 /* Pods-GearAnimationTests-acknowledgements.plist */, 166 | 457C691765103EFB50A6C3735015FCB9 /* Pods-GearAnimationTests-dummy.m */, 167 | 51DE86CB56D0D1A8C9D80121FD8E71A9 /* Pods-GearAnimationTests-frameworks.sh */, 168 | DCCDD49C4CD2869B441E74A89A269EEF /* Pods-GearAnimationTests-resources.sh */, 169 | A4F4D215B1F4243A342EEB894159DAA4 /* Pods-GearAnimationTests-umbrella.h */, 170 | 86E5CB0D580EB03472E5A1B2A471C53F /* Pods-GearAnimationTests.debug.xcconfig */, 171 | 354A1E5C92791BB5C169CC3606EEA809 /* Pods-GearAnimationTests.release.xcconfig */, 172 | ); 173 | name = "Pods-GearAnimationTests"; 174 | path = "Target Support Files/Pods-GearAnimationTests"; 175 | sourceTree = ""; 176 | }; 177 | BA7CAFE91358B4E780643857806AA042 /* GearRefreshControl */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | C07989CC1A7CA0D8DBB0C62D9A6F26A3 /* Source */, 181 | 3E4D90140660948143D9B0B567DA549D /* Support Files */, 182 | ); 183 | name = GearRefreshControl; 184 | path = ../..; 185 | sourceTree = ""; 186 | }; 187 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 188 | isa = PBXGroup; 189 | children = ( 190 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */, 191 | ); 192 | name = Frameworks; 193 | sourceTree = ""; 194 | }; 195 | C07989CC1A7CA0D8DBB0C62D9A6F26A3 /* Source */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 5ADE1E67D37D5BF2CF70F535C192C33F /* BigGear.swift */, 199 | D6C3EA6DA156F851C14B7E005D6F58C0 /* GearRefreshControl.swift */, 200 | BF61EBD41B986BBC639E8775D2D1B1C0 /* MainGear.swift */, 201 | ); 202 | path = Source; 203 | sourceTree = ""; 204 | }; 205 | C71882223851BFD77FD4457750CA1779 /* Development Pods */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | BA7CAFE91358B4E780643857806AA042 /* GearRefreshControl */, 209 | ); 210 | name = "Development Pods"; 211 | sourceTree = ""; 212 | }; 213 | F9364208661110094BAB1C00383C0DDE /* Products */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | DD1D52DEE7133E9787E0EDBC99921CD9 /* GearRefreshControl.framework */, 217 | CBC6EBD9BC5E9483975025002F1521C0 /* Pods_GearAnimation.framework */, 218 | C0C0DABB13982DE5D570B50701B8D38C /* Pods_GearAnimationTests.framework */, 219 | ); 220 | name = Products; 221 | sourceTree = ""; 222 | }; 223 | /* End PBXGroup section */ 224 | 225 | /* Begin PBXHeadersBuildPhase section */ 226 | 69CA6002758DD03CA39EA3655CDBCED9 /* Headers */ = { 227 | isa = PBXHeadersBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | FFD290E6901D8729D0B588C8E1FFCF75 /* Pods-GearAnimationTests-umbrella.h in Headers */, 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | }; 234 | 6BA8BF0C4A52584FCDCF017151ABC9A5 /* Headers */ = { 235 | isa = PBXHeadersBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | E3A93CEEDFEA05B9C8CBD5C27BB67633 /* GearRefreshControl-umbrella.h in Headers */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | 90A9AD0CED317858B86B41F9B2B4210E /* Headers */ = { 243 | isa = PBXHeadersBuildPhase; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | FC658AD93AA631CEC4A6E7996A56DB98 /* Pods-GearAnimation-umbrella.h in Headers */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXHeadersBuildPhase section */ 251 | 252 | /* Begin PBXNativeTarget section */ 253 | 56ED5A9B08C347F5F0514DCF844B75C0 /* GearRefreshControl */ = { 254 | isa = PBXNativeTarget; 255 | buildConfigurationList = A1CA686A9A0AC9D4E70445CFF52D2968 /* Build configuration list for PBXNativeTarget "GearRefreshControl" */; 256 | buildPhases = ( 257 | 9684BDBAE40955433F8879D324213E86 /* Sources */, 258 | 3D2084BA3A6E8CD3AA56B981E7955D98 /* Frameworks */, 259 | 6BA8BF0C4A52584FCDCF017151ABC9A5 /* Headers */, 260 | ); 261 | buildRules = ( 262 | ); 263 | dependencies = ( 264 | ); 265 | name = GearRefreshControl; 266 | productName = GearRefreshControl; 267 | productReference = DD1D52DEE7133E9787E0EDBC99921CD9 /* GearRefreshControl.framework */; 268 | productType = "com.apple.product-type.framework"; 269 | }; 270 | 77BCC5C5421D21BDE27DB24D94158884 /* Pods-GearAnimation */ = { 271 | isa = PBXNativeTarget; 272 | buildConfigurationList = A8A3302794D543BCF12B9B567BDB468D /* Build configuration list for PBXNativeTarget "Pods-GearAnimation" */; 273 | buildPhases = ( 274 | 8FE3935853E175376A9290F8E1825765 /* Sources */, 275 | F35D5A81238FA507F092B5F9969AED13 /* Frameworks */, 276 | 90A9AD0CED317858B86B41F9B2B4210E /* Headers */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | 963DF7FDDA6963899A8D8DB5BABDC04B /* PBXTargetDependency */, 282 | ); 283 | name = "Pods-GearAnimation"; 284 | productName = "Pods-GearAnimation"; 285 | productReference = CBC6EBD9BC5E9483975025002F1521C0 /* Pods_GearAnimation.framework */; 286 | productType = "com.apple.product-type.framework"; 287 | }; 288 | E86E8175EF4DF91325E8B699C28E589E /* Pods-GearAnimationTests */ = { 289 | isa = PBXNativeTarget; 290 | buildConfigurationList = EB7044E545D7C3D297BAD8E4EB797222 /* Build configuration list for PBXNativeTarget "Pods-GearAnimationTests" */; 291 | buildPhases = ( 292 | 6869AF42515F1DC06049A3B569A34716 /* Sources */, 293 | FA318872F44F45CA89E836E8187836AC /* Frameworks */, 294 | 69CA6002758DD03CA39EA3655CDBCED9 /* Headers */, 295 | ); 296 | buildRules = ( 297 | ); 298 | dependencies = ( 299 | ); 300 | name = "Pods-GearAnimationTests"; 301 | productName = "Pods-GearAnimationTests"; 302 | productReference = C0C0DABB13982DE5D570B50701B8D38C /* Pods_GearAnimationTests.framework */; 303 | productType = "com.apple.product-type.framework"; 304 | }; 305 | /* End PBXNativeTarget section */ 306 | 307 | /* Begin PBXProject section */ 308 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 309 | isa = PBXProject; 310 | attributes = { 311 | LastSwiftUpdateCheck = 0730; 312 | LastUpgradeCheck = 0700; 313 | }; 314 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 315 | compatibilityVersion = "Xcode 3.2"; 316 | developmentRegion = English; 317 | hasScannedForEncodings = 0; 318 | knownRegions = ( 319 | en, 320 | ); 321 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 322 | productRefGroup = F9364208661110094BAB1C00383C0DDE /* Products */; 323 | projectDirPath = ""; 324 | projectRoot = ""; 325 | targets = ( 326 | 56ED5A9B08C347F5F0514DCF844B75C0 /* GearRefreshControl */, 327 | 77BCC5C5421D21BDE27DB24D94158884 /* Pods-GearAnimation */, 328 | E86E8175EF4DF91325E8B699C28E589E /* Pods-GearAnimationTests */, 329 | ); 330 | }; 331 | /* End PBXProject section */ 332 | 333 | /* Begin PBXSourcesBuildPhase section */ 334 | 6869AF42515F1DC06049A3B569A34716 /* Sources */ = { 335 | isa = PBXSourcesBuildPhase; 336 | buildActionMask = 2147483647; 337 | files = ( 338 | 3EA10C6FC2A6A60A8CF03E977176F0BD /* Pods-GearAnimationTests-dummy.m in Sources */, 339 | ); 340 | runOnlyForDeploymentPostprocessing = 0; 341 | }; 342 | 8FE3935853E175376A9290F8E1825765 /* Sources */ = { 343 | isa = PBXSourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | 94B973CACD5B81171A03871804628880 /* Pods-GearAnimation-dummy.m in Sources */, 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | }; 350 | 9684BDBAE40955433F8879D324213E86 /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | BFC686AF3ACEF92A225FC0F396205D12 /* BigGear.swift in Sources */, 355 | CA2CBA6F217B3A9A4F0CC9FBF6075CB0 /* GearRefreshControl-dummy.m in Sources */, 356 | F5B4FF013165C2D8166FEFE986D6D63E /* GearRefreshControl.swift in Sources */, 357 | 2190D32D4263C703A541F9E63F6EC98A /* MainGear.swift in Sources */, 358 | ); 359 | runOnlyForDeploymentPostprocessing = 0; 360 | }; 361 | /* End PBXSourcesBuildPhase section */ 362 | 363 | /* Begin PBXTargetDependency section */ 364 | 963DF7FDDA6963899A8D8DB5BABDC04B /* PBXTargetDependency */ = { 365 | isa = PBXTargetDependency; 366 | name = GearRefreshControl; 367 | target = 56ED5A9B08C347F5F0514DCF844B75C0 /* GearRefreshControl */; 368 | targetProxy = C650913EF7F858159AD1AF36362C59D9 /* PBXContainerItemProxy */; 369 | }; 370 | /* End PBXTargetDependency section */ 371 | 372 | /* Begin XCBuildConfiguration section */ 373 | 38EE8368C2E217599711414DA4177CF2 /* Release */ = { 374 | isa = XCBuildConfiguration; 375 | buildSettings = { 376 | ALWAYS_SEARCH_USER_PATHS = NO; 377 | CLANG_ANALYZER_NONNULL = YES; 378 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 379 | CLANG_CXX_LIBRARY = "libc++"; 380 | CLANG_ENABLE_MODULES = YES; 381 | CLANG_ENABLE_OBJC_ARC = YES; 382 | CLANG_WARN_BOOL_CONVERSION = YES; 383 | CLANG_WARN_CONSTANT_CONVERSION = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INT_CONVERSION = YES; 388 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 389 | CLANG_WARN_UNREACHABLE_CODE = YES; 390 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 391 | CODE_SIGNING_REQUIRED = NO; 392 | COPY_PHASE_STRIP = YES; 393 | ENABLE_NS_ASSERTIONS = NO; 394 | GCC_C_LANGUAGE_STANDARD = gnu99; 395 | GCC_PREPROCESSOR_DEFINITIONS = ( 396 | "POD_CONFIGURATION_RELEASE=1", 397 | "$(inherited)", 398 | ); 399 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 400 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 401 | GCC_WARN_UNDECLARED_SELECTOR = YES; 402 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 403 | GCC_WARN_UNUSED_FUNCTION = YES; 404 | GCC_WARN_UNUSED_VARIABLE = YES; 405 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 406 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 407 | STRIP_INSTALLED_PRODUCT = NO; 408 | SYMROOT = "${SRCROOT}/../build"; 409 | VALIDATE_PRODUCT = YES; 410 | }; 411 | name = Release; 412 | }; 413 | 5C71BC8255910A2331A1A4DEB8F06ABC /* Release */ = { 414 | isa = XCBuildConfiguration; 415 | baseConfigurationReference = 9E033607F5A14CD68A97E4652658BEC1 /* Pods-GearAnimation.release.xcconfig */; 416 | buildSettings = { 417 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 419 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 420 | CURRENT_PROJECT_VERSION = 1; 421 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 422 | DEFINES_MODULE = YES; 423 | DYLIB_COMPATIBILITY_VERSION = 1; 424 | DYLIB_CURRENT_VERSION = 1; 425 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 426 | ENABLE_STRICT_OBJC_MSGSEND = YES; 427 | GCC_NO_COMMON_BLOCKS = YES; 428 | INFOPLIST_FILE = "Target Support Files/Pods-GearAnimation/Info.plist"; 429 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 431 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 432 | MACH_O_TYPE = staticlib; 433 | MODULEMAP_FILE = "Target Support Files/Pods-GearAnimation/Pods-GearAnimation.modulemap"; 434 | MTL_ENABLE_DEBUG_INFO = NO; 435 | OTHER_LDFLAGS = ""; 436 | OTHER_LIBTOOLFLAGS = ""; 437 | PODS_ROOT = "$(SRCROOT)"; 438 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 439 | PRODUCT_NAME = Pods_GearAnimation; 440 | SDKROOT = iphoneos; 441 | SKIP_INSTALL = YES; 442 | TARGETED_DEVICE_FAMILY = "1,2"; 443 | VERSIONING_SYSTEM = "apple-generic"; 444 | VERSION_INFO_PREFIX = ""; 445 | }; 446 | name = Release; 447 | }; 448 | 717203CFCF97FBAAC9828ACF699ED117 /* Debug */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | ALWAYS_SEARCH_USER_PATHS = NO; 452 | CLANG_ANALYZER_NONNULL = YES; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_WARN_BOOL_CONVERSION = YES; 458 | CLANG_WARN_CONSTANT_CONVERSION = YES; 459 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 460 | CLANG_WARN_EMPTY_BODY = YES; 461 | CLANG_WARN_ENUM_CONVERSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | CODE_SIGNING_REQUIRED = NO; 467 | COPY_PHASE_STRIP = NO; 468 | ENABLE_TESTABILITY = YES; 469 | GCC_C_LANGUAGE_STANDARD = gnu99; 470 | GCC_DYNAMIC_NO_PIC = NO; 471 | GCC_OPTIMIZATION_LEVEL = 0; 472 | GCC_PREPROCESSOR_DEFINITIONS = ( 473 | "POD_CONFIGURATION_DEBUG=1", 474 | "DEBUG=1", 475 | "$(inherited)", 476 | ); 477 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 478 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 479 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 480 | GCC_WARN_UNDECLARED_SELECTOR = YES; 481 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 482 | GCC_WARN_UNUSED_FUNCTION = YES; 483 | GCC_WARN_UNUSED_VARIABLE = YES; 484 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 485 | ONLY_ACTIVE_ARCH = YES; 486 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 487 | STRIP_INSTALLED_PRODUCT = NO; 488 | SYMROOT = "${SRCROOT}/../build"; 489 | }; 490 | name = Debug; 491 | }; 492 | B63C18E2C3542B1B83D3C16C80AEE13D /* Debug */ = { 493 | isa = XCBuildConfiguration; 494 | baseConfigurationReference = 86E5CB0D580EB03472E5A1B2A471C53F /* Pods-GearAnimationTests.debug.xcconfig */; 495 | buildSettings = { 496 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 497 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 498 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 499 | CURRENT_PROJECT_VERSION = 1; 500 | DEBUG_INFORMATION_FORMAT = dwarf; 501 | DEFINES_MODULE = YES; 502 | DYLIB_COMPATIBILITY_VERSION = 1; 503 | DYLIB_CURRENT_VERSION = 1; 504 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 505 | ENABLE_STRICT_OBJC_MSGSEND = YES; 506 | GCC_NO_COMMON_BLOCKS = YES; 507 | INFOPLIST_FILE = "Target Support Files/Pods-GearAnimationTests/Info.plist"; 508 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 509 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 511 | MACH_O_TYPE = staticlib; 512 | MODULEMAP_FILE = "Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.modulemap"; 513 | MTL_ENABLE_DEBUG_INFO = YES; 514 | OTHER_LDFLAGS = ""; 515 | OTHER_LIBTOOLFLAGS = ""; 516 | PODS_ROOT = "$(SRCROOT)"; 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 518 | PRODUCT_NAME = Pods_GearAnimationTests; 519 | SDKROOT = iphoneos; 520 | SKIP_INSTALL = YES; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | VERSION_INFO_PREFIX = ""; 524 | }; 525 | name = Debug; 526 | }; 527 | E0F7C1D957B6A57F4A00F0251D4C288D /* Release */ = { 528 | isa = XCBuildConfiguration; 529 | baseConfigurationReference = E795ED67D0DFD4CCC452022D77155C5F /* GearRefreshControl.xcconfig */; 530 | buildSettings = { 531 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 532 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 533 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 534 | CURRENT_PROJECT_VERSION = 1; 535 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 536 | DEFINES_MODULE = YES; 537 | DYLIB_COMPATIBILITY_VERSION = 1; 538 | DYLIB_CURRENT_VERSION = 1; 539 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 540 | ENABLE_STRICT_OBJC_MSGSEND = YES; 541 | GCC_NO_COMMON_BLOCKS = YES; 542 | GCC_PREFIX_HEADER = "Target Support Files/GearRefreshControl/GearRefreshControl-prefix.pch"; 543 | INFOPLIST_FILE = "Target Support Files/GearRefreshControl/Info.plist"; 544 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 545 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 546 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 547 | MODULEMAP_FILE = "Target Support Files/GearRefreshControl/GearRefreshControl.modulemap"; 548 | MTL_ENABLE_DEBUG_INFO = NO; 549 | PRODUCT_NAME = GearRefreshControl; 550 | SDKROOT = iphoneos; 551 | SKIP_INSTALL = YES; 552 | SWIFT_VERSION = 3.0; 553 | TARGETED_DEVICE_FAMILY = "1,2"; 554 | VERSIONING_SYSTEM = "apple-generic"; 555 | VERSION_INFO_PREFIX = ""; 556 | }; 557 | name = Release; 558 | }; 559 | E40CBB8C95959424E284C8C433E4DE74 /* Debug */ = { 560 | isa = XCBuildConfiguration; 561 | baseConfigurationReference = 07BE85A5B669F33C50B6BCFC59298EB1 /* Pods-GearAnimation.debug.xcconfig */; 562 | buildSettings = { 563 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 564 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 565 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 566 | CURRENT_PROJECT_VERSION = 1; 567 | DEBUG_INFORMATION_FORMAT = dwarf; 568 | DEFINES_MODULE = YES; 569 | DYLIB_COMPATIBILITY_VERSION = 1; 570 | DYLIB_CURRENT_VERSION = 1; 571 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 572 | ENABLE_STRICT_OBJC_MSGSEND = YES; 573 | GCC_NO_COMMON_BLOCKS = YES; 574 | INFOPLIST_FILE = "Target Support Files/Pods-GearAnimation/Info.plist"; 575 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 576 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 577 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 578 | MACH_O_TYPE = staticlib; 579 | MODULEMAP_FILE = "Target Support Files/Pods-GearAnimation/Pods-GearAnimation.modulemap"; 580 | MTL_ENABLE_DEBUG_INFO = YES; 581 | OTHER_LDFLAGS = ""; 582 | OTHER_LIBTOOLFLAGS = ""; 583 | PODS_ROOT = "$(SRCROOT)"; 584 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 585 | PRODUCT_NAME = Pods_GearAnimation; 586 | SDKROOT = iphoneos; 587 | SKIP_INSTALL = YES; 588 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 589 | TARGETED_DEVICE_FAMILY = "1,2"; 590 | VERSIONING_SYSTEM = "apple-generic"; 591 | VERSION_INFO_PREFIX = ""; 592 | }; 593 | name = Debug; 594 | }; 595 | F02E1CC3BE3E4F947478C03795B8E920 /* Release */ = { 596 | isa = XCBuildConfiguration; 597 | baseConfigurationReference = 354A1E5C92791BB5C169CC3606EEA809 /* Pods-GearAnimationTests.release.xcconfig */; 598 | buildSettings = { 599 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 600 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 601 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 602 | CURRENT_PROJECT_VERSION = 1; 603 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 604 | DEFINES_MODULE = YES; 605 | DYLIB_COMPATIBILITY_VERSION = 1; 606 | DYLIB_CURRENT_VERSION = 1; 607 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 608 | ENABLE_STRICT_OBJC_MSGSEND = YES; 609 | GCC_NO_COMMON_BLOCKS = YES; 610 | INFOPLIST_FILE = "Target Support Files/Pods-GearAnimationTests/Info.plist"; 611 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 612 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 613 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 614 | MACH_O_TYPE = staticlib; 615 | MODULEMAP_FILE = "Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.modulemap"; 616 | MTL_ENABLE_DEBUG_INFO = NO; 617 | OTHER_LDFLAGS = ""; 618 | OTHER_LIBTOOLFLAGS = ""; 619 | PODS_ROOT = "$(SRCROOT)"; 620 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 621 | PRODUCT_NAME = Pods_GearAnimationTests; 622 | SDKROOT = iphoneos; 623 | SKIP_INSTALL = YES; 624 | TARGETED_DEVICE_FAMILY = "1,2"; 625 | VERSIONING_SYSTEM = "apple-generic"; 626 | VERSION_INFO_PREFIX = ""; 627 | }; 628 | name = Release; 629 | }; 630 | FE40D9A01377DAEF1532E9771947C013 /* Debug */ = { 631 | isa = XCBuildConfiguration; 632 | baseConfigurationReference = E795ED67D0DFD4CCC452022D77155C5F /* GearRefreshControl.xcconfig */; 633 | buildSettings = { 634 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 635 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 636 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 637 | CURRENT_PROJECT_VERSION = 1; 638 | DEBUG_INFORMATION_FORMAT = dwarf; 639 | DEFINES_MODULE = YES; 640 | DYLIB_COMPATIBILITY_VERSION = 1; 641 | DYLIB_CURRENT_VERSION = 1; 642 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 643 | ENABLE_STRICT_OBJC_MSGSEND = YES; 644 | GCC_NO_COMMON_BLOCKS = YES; 645 | GCC_PREFIX_HEADER = "Target Support Files/GearRefreshControl/GearRefreshControl-prefix.pch"; 646 | INFOPLIST_FILE = "Target Support Files/GearRefreshControl/Info.plist"; 647 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 648 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 649 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 650 | MODULEMAP_FILE = "Target Support Files/GearRefreshControl/GearRefreshControl.modulemap"; 651 | MTL_ENABLE_DEBUG_INFO = YES; 652 | PRODUCT_NAME = GearRefreshControl; 653 | SDKROOT = iphoneos; 654 | SKIP_INSTALL = YES; 655 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 656 | SWIFT_VERSION = 3.0; 657 | TARGETED_DEVICE_FAMILY = "1,2"; 658 | VERSIONING_SYSTEM = "apple-generic"; 659 | VERSION_INFO_PREFIX = ""; 660 | }; 661 | name = Debug; 662 | }; 663 | /* End XCBuildConfiguration section */ 664 | 665 | /* Begin XCConfigurationList section */ 666 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 667 | isa = XCConfigurationList; 668 | buildConfigurations = ( 669 | 717203CFCF97FBAAC9828ACF699ED117 /* Debug */, 670 | 38EE8368C2E217599711414DA4177CF2 /* Release */, 671 | ); 672 | defaultConfigurationIsVisible = 0; 673 | defaultConfigurationName = Release; 674 | }; 675 | A1CA686A9A0AC9D4E70445CFF52D2968 /* Build configuration list for PBXNativeTarget "GearRefreshControl" */ = { 676 | isa = XCConfigurationList; 677 | buildConfigurations = ( 678 | FE40D9A01377DAEF1532E9771947C013 /* Debug */, 679 | E0F7C1D957B6A57F4A00F0251D4C288D /* Release */, 680 | ); 681 | defaultConfigurationIsVisible = 0; 682 | defaultConfigurationName = Release; 683 | }; 684 | A8A3302794D543BCF12B9B567BDB468D /* Build configuration list for PBXNativeTarget "Pods-GearAnimation" */ = { 685 | isa = XCConfigurationList; 686 | buildConfigurations = ( 687 | E40CBB8C95959424E284C8C433E4DE74 /* Debug */, 688 | 5C71BC8255910A2331A1A4DEB8F06ABC /* Release */, 689 | ); 690 | defaultConfigurationIsVisible = 0; 691 | defaultConfigurationName = Release; 692 | }; 693 | EB7044E545D7C3D297BAD8E4EB797222 /* Build configuration list for PBXNativeTarget "Pods-GearAnimationTests" */ = { 694 | isa = XCConfigurationList; 695 | buildConfigurations = ( 696 | B63C18E2C3542B1B83D3C16C80AEE13D /* Debug */, 697 | F02E1CC3BE3E4F947478C03795B8E920 /* Release */, 698 | ); 699 | defaultConfigurationIsVisible = 0; 700 | defaultConfigurationName = Release; 701 | }; 702 | /* End XCConfigurationList section */ 703 | }; 704 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 705 | } 706 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/GearRefreshControl-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_GearRefreshControl : NSObject 3 | @end 4 | @implementation PodsDummy_GearRefreshControl 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/GearRefreshControl-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/GearRefreshControl-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double GearRefreshControlVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char GearRefreshControlVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/GearRefreshControl.modulemap: -------------------------------------------------------------------------------- 1 | framework module GearRefreshControl { 2 | umbrella header "GearRefreshControl-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/GearRefreshControl.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/GearRefreshControl 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/GearRefreshControl/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 | FMWK 17 | CFBundleShortVersionString 18 | 0.3.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## GearRefreshControl 5 | 6 | The MIT License (MIT) 7 | 8 | Copyright (c) 2015 Andrea Mazzini 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | 29 | Generated by CocoaPods - https://cocoapods.org 30 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | The MIT License (MIT) 18 | 19 | Copyright (c) 2015 Andrea Mazzini 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | 40 | License 41 | MIT 42 | Title 43 | GearRefreshControl 44 | Type 45 | PSGroupSpecifier 46 | 47 | 48 | FooterText 49 | Generated by CocoaPods - https://cocoapods.org 50 | Title 51 | 52 | Type 53 | PSGroupSpecifier 54 | 55 | 56 | StringsTable 57 | Acknowledgements 58 | Title 59 | Acknowledgements 60 | 61 | 62 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_GearAnimation : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_GearAnimation 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/GearRefreshControl/GearRefreshControl.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/GearRefreshControl/GearRefreshControl.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_GearAnimationVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_GearAnimationVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GearRefreshControl" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/GearRefreshControl/GearRefreshControl.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "GearRefreshControl" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_GearAnimation { 2 | umbrella header "Pods-GearAnimation-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimation/Pods-GearAnimation.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/GearRefreshControl" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/GearRefreshControl/GearRefreshControl.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "GearRefreshControl" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_GearAnimationTests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_GearAnimationTests 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_GearAnimationTestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_GearAnimationTestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_GearAnimationTests { 2 | umbrella header "Pods-GearAnimationTests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/Pods/Target Support Files/Pods-GearAnimationTests/Pods-GearAnimationTests.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | -------------------------------------------------------------------------------- /GearRefreshControl.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'GearRefreshControl' 3 | s.version = '1.0.1' 4 | s.license = 'MIT' 5 | s.summary = 'A custom animation for the UIRefreshControl' 6 | s.description = <<-DESC 7 | Provides a custom UIRefreshControl animating a series of cogs 8 | DESC 9 | s.homepage = 'https://github.com/andreamazz/GearRefreshControl' 10 | s.social_media_url = 'https://twitter.com/theandreamazz' 11 | s.authors = { 'Andrea Mazzini' => 'andrea.mazzini@gmail.com' } 12 | s.source = { :git => 'https://github.com/andreamazz/GearRefreshControl.git', :tag => s.version } 13 | 14 | s.ios.deployment_target = '8.0' 15 | 16 | s.source_files = 'Source/*.swift' 17 | 18 | s.requires_arc = true 19 | end 20 | -------------------------------------------------------------------------------- /GearRefreshControl.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 6568D6911BE8101700A9E37C /* GearRefreshControl.h in Headers */ = {isa = PBXBuildFile; fileRef = 6568D6901BE8101700A9E37C /* GearRefreshControl.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 65BCCD7B1BE8108700054F58 /* BigGear.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65BCCD781BE8108700054F58 /* BigGear.swift */; }; 12 | 65BCCD7C1BE8108700054F58 /* GearRefreshControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65BCCD791BE8108700054F58 /* GearRefreshControl.swift */; }; 13 | 65BCCD7D1BE8108700054F58 /* MainGear.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65BCCD7A1BE8108700054F58 /* MainGear.swift */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXFileReference section */ 17 | 6568D68D1BE8101700A9E37C /* GearRefreshControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GearRefreshControl.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 18 | 6568D6901BE8101700A9E37C /* GearRefreshControl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GearRefreshControl.h; sourceTree = ""; }; 19 | 6568D6921BE8101700A9E37C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 20 | 65BCCD781BE8108700054F58 /* BigGear.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = BigGear.swift; path = Source/BigGear.swift; sourceTree = SOURCE_ROOT; }; 21 | 65BCCD791BE8108700054F58 /* GearRefreshControl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = GearRefreshControl.swift; path = Source/GearRefreshControl.swift; sourceTree = SOURCE_ROOT; }; 22 | 65BCCD7A1BE8108700054F58 /* MainGear.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = MainGear.swift; path = Source/MainGear.swift; sourceTree = SOURCE_ROOT; }; 23 | /* End PBXFileReference section */ 24 | 25 | /* Begin PBXFrameworksBuildPhase section */ 26 | 6568D6891BE8101700A9E37C /* Frameworks */ = { 27 | isa = PBXFrameworksBuildPhase; 28 | buildActionMask = 2147483647; 29 | files = ( 30 | ); 31 | runOnlyForDeploymentPostprocessing = 0; 32 | }; 33 | /* End PBXFrameworksBuildPhase section */ 34 | 35 | /* Begin PBXGroup section */ 36 | 6568D6831BE8101700A9E37C = { 37 | isa = PBXGroup; 38 | children = ( 39 | 6568D68F1BE8101700A9E37C /* GearRefreshControl */, 40 | 6568D68E1BE8101700A9E37C /* Products */, 41 | ); 42 | sourceTree = ""; 43 | }; 44 | 6568D68E1BE8101700A9E37C /* Products */ = { 45 | isa = PBXGroup; 46 | children = ( 47 | 6568D68D1BE8101700A9E37C /* GearRefreshControl.framework */, 48 | ); 49 | name = Products; 50 | sourceTree = ""; 51 | }; 52 | 6568D68F1BE8101700A9E37C /* GearRefreshControl */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | 6568D6901BE8101700A9E37C /* GearRefreshControl.h */, 56 | 65BCCD781BE8108700054F58 /* BigGear.swift */, 57 | 65BCCD791BE8108700054F58 /* GearRefreshControl.swift */, 58 | 65BCCD7A1BE8108700054F58 /* MainGear.swift */, 59 | 6568D6921BE8101700A9E37C /* Info.plist */, 60 | ); 61 | path = GearRefreshControl; 62 | sourceTree = ""; 63 | }; 64 | /* End PBXGroup section */ 65 | 66 | /* Begin PBXHeadersBuildPhase section */ 67 | 6568D68A1BE8101700A9E37C /* Headers */ = { 68 | isa = PBXHeadersBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 6568D6911BE8101700A9E37C /* GearRefreshControl.h in Headers */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXHeadersBuildPhase section */ 76 | 77 | /* Begin PBXNativeTarget section */ 78 | 6568D68C1BE8101700A9E37C /* GearRefreshControl */ = { 79 | isa = PBXNativeTarget; 80 | buildConfigurationList = 6568D6951BE8101700A9E37C /* Build configuration list for PBXNativeTarget "GearRefreshControl" */; 81 | buildPhases = ( 82 | 6568D6881BE8101700A9E37C /* Sources */, 83 | 6568D6891BE8101700A9E37C /* Frameworks */, 84 | 6568D68A1BE8101700A9E37C /* Headers */, 85 | 6568D68B1BE8101700A9E37C /* Resources */, 86 | ); 87 | buildRules = ( 88 | ); 89 | dependencies = ( 90 | ); 91 | name = GearRefreshControl; 92 | productName = GearRefreshControl; 93 | productReference = 6568D68D1BE8101700A9E37C /* GearRefreshControl.framework */; 94 | productType = "com.apple.product-type.framework"; 95 | }; 96 | /* End PBXNativeTarget section */ 97 | 98 | /* Begin PBXProject section */ 99 | 6568D6841BE8101700A9E37C /* Project object */ = { 100 | isa = PBXProject; 101 | attributes = { 102 | LastUpgradeCheck = 0800; 103 | ORGANIZATIONNAME = "Fancy Pixel"; 104 | TargetAttributes = { 105 | 6568D68C1BE8101700A9E37C = { 106 | CreatedOnToolsVersion = 7.1; 107 | LastSwiftMigration = 0800; 108 | }; 109 | }; 110 | }; 111 | buildConfigurationList = 6568D6871BE8101700A9E37C /* Build configuration list for PBXProject "GearRefreshControl" */; 112 | compatibilityVersion = "Xcode 3.2"; 113 | developmentRegion = English; 114 | hasScannedForEncodings = 0; 115 | knownRegions = ( 116 | en, 117 | ); 118 | mainGroup = 6568D6831BE8101700A9E37C; 119 | productRefGroup = 6568D68E1BE8101700A9E37C /* Products */; 120 | projectDirPath = ""; 121 | projectRoot = ""; 122 | targets = ( 123 | 6568D68C1BE8101700A9E37C /* GearRefreshControl */, 124 | ); 125 | }; 126 | /* End PBXProject section */ 127 | 128 | /* Begin PBXResourcesBuildPhase section */ 129 | 6568D68B1BE8101700A9E37C /* Resources */ = { 130 | isa = PBXResourcesBuildPhase; 131 | buildActionMask = 2147483647; 132 | files = ( 133 | ); 134 | runOnlyForDeploymentPostprocessing = 0; 135 | }; 136 | /* End PBXResourcesBuildPhase section */ 137 | 138 | /* Begin PBXSourcesBuildPhase section */ 139 | 6568D6881BE8101700A9E37C /* Sources */ = { 140 | isa = PBXSourcesBuildPhase; 141 | buildActionMask = 2147483647; 142 | files = ( 143 | 65BCCD7D1BE8108700054F58 /* MainGear.swift in Sources */, 144 | 65BCCD7C1BE8108700054F58 /* GearRefreshControl.swift in Sources */, 145 | 65BCCD7B1BE8108700054F58 /* BigGear.swift in Sources */, 146 | ); 147 | runOnlyForDeploymentPostprocessing = 0; 148 | }; 149 | /* End PBXSourcesBuildPhase section */ 150 | 151 | /* Begin XCBuildConfiguration section */ 152 | 6568D6931BE8101700A9E37C /* Debug */ = { 153 | isa = XCBuildConfiguration; 154 | buildSettings = { 155 | ALWAYS_SEARCH_USER_PATHS = NO; 156 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 157 | CLANG_CXX_LIBRARY = "libc++"; 158 | CLANG_ENABLE_MODULES = YES; 159 | CLANG_ENABLE_OBJC_ARC = YES; 160 | CLANG_WARN_BOOL_CONVERSION = YES; 161 | CLANG_WARN_CONSTANT_CONVERSION = YES; 162 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 163 | CLANG_WARN_EMPTY_BODY = YES; 164 | CLANG_WARN_ENUM_CONVERSION = YES; 165 | CLANG_WARN_INFINITE_RECURSION = YES; 166 | CLANG_WARN_INT_CONVERSION = YES; 167 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 168 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 169 | CLANG_WARN_UNREACHABLE_CODE = YES; 170 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 171 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 172 | COPY_PHASE_STRIP = NO; 173 | CURRENT_PROJECT_VERSION = 1; 174 | DEBUG_INFORMATION_FORMAT = dwarf; 175 | ENABLE_STRICT_OBJC_MSGSEND = YES; 176 | ENABLE_TESTABILITY = YES; 177 | GCC_C_LANGUAGE_STANDARD = gnu99; 178 | GCC_DYNAMIC_NO_PIC = NO; 179 | GCC_NO_COMMON_BLOCKS = YES; 180 | GCC_OPTIMIZATION_LEVEL = 0; 181 | GCC_PREPROCESSOR_DEFINITIONS = ( 182 | "DEBUG=1", 183 | "$(inherited)", 184 | ); 185 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 186 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 187 | GCC_WARN_UNDECLARED_SELECTOR = YES; 188 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 189 | GCC_WARN_UNUSED_FUNCTION = YES; 190 | GCC_WARN_UNUSED_VARIABLE = YES; 191 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 192 | MTL_ENABLE_DEBUG_INFO = YES; 193 | ONLY_ACTIVE_ARCH = YES; 194 | SDKROOT = iphoneos; 195 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 196 | TARGETED_DEVICE_FAMILY = "1,2"; 197 | VERSIONING_SYSTEM = "apple-generic"; 198 | VERSION_INFO_PREFIX = ""; 199 | }; 200 | name = Debug; 201 | }; 202 | 6568D6941BE8101700A9E37C /* Release */ = { 203 | isa = XCBuildConfiguration; 204 | buildSettings = { 205 | ALWAYS_SEARCH_USER_PATHS = NO; 206 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 207 | CLANG_CXX_LIBRARY = "libc++"; 208 | CLANG_ENABLE_MODULES = YES; 209 | CLANG_ENABLE_OBJC_ARC = YES; 210 | CLANG_WARN_BOOL_CONVERSION = YES; 211 | CLANG_WARN_CONSTANT_CONVERSION = YES; 212 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 213 | CLANG_WARN_EMPTY_BODY = YES; 214 | CLANG_WARN_ENUM_CONVERSION = YES; 215 | CLANG_WARN_INFINITE_RECURSION = YES; 216 | CLANG_WARN_INT_CONVERSION = YES; 217 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 218 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 219 | CLANG_WARN_UNREACHABLE_CODE = YES; 220 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 221 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 222 | COPY_PHASE_STRIP = NO; 223 | CURRENT_PROJECT_VERSION = 1; 224 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 225 | ENABLE_NS_ASSERTIONS = NO; 226 | ENABLE_STRICT_OBJC_MSGSEND = YES; 227 | GCC_C_LANGUAGE_STANDARD = gnu99; 228 | GCC_NO_COMMON_BLOCKS = YES; 229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 230 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 231 | GCC_WARN_UNDECLARED_SELECTOR = YES; 232 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 233 | GCC_WARN_UNUSED_FUNCTION = YES; 234 | GCC_WARN_UNUSED_VARIABLE = YES; 235 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 236 | MTL_ENABLE_DEBUG_INFO = NO; 237 | SDKROOT = iphoneos; 238 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 239 | TARGETED_DEVICE_FAMILY = "1,2"; 240 | VALIDATE_PRODUCT = YES; 241 | VERSIONING_SYSTEM = "apple-generic"; 242 | VERSION_INFO_PREFIX = ""; 243 | }; 244 | name = Release; 245 | }; 246 | 6568D6961BE8101700A9E37C /* Debug */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | CLANG_ENABLE_MODULES = YES; 250 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 251 | DEFINES_MODULE = YES; 252 | DYLIB_COMPATIBILITY_VERSION = 1; 253 | DYLIB_CURRENT_VERSION = 1; 254 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 255 | INFOPLIST_FILE = GearRefreshControl/Info.plist; 256 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 257 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 258 | PRODUCT_BUNDLE_IDENTIFIER = it.fancypixel.GearRefreshControl; 259 | PRODUCT_NAME = "$(TARGET_NAME)"; 260 | SKIP_INSTALL = YES; 261 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 262 | SWIFT_VERSION = 3.0; 263 | }; 264 | name = Debug; 265 | }; 266 | 6568D6971BE8101700A9E37C /* Release */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | CLANG_ENABLE_MODULES = YES; 270 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 271 | DEFINES_MODULE = YES; 272 | DYLIB_COMPATIBILITY_VERSION = 1; 273 | DYLIB_CURRENT_VERSION = 1; 274 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 275 | INFOPLIST_FILE = GearRefreshControl/Info.plist; 276 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 277 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 278 | PRODUCT_BUNDLE_IDENTIFIER = it.fancypixel.GearRefreshControl; 279 | PRODUCT_NAME = "$(TARGET_NAME)"; 280 | SKIP_INSTALL = YES; 281 | SWIFT_VERSION = 3.0; 282 | }; 283 | name = Release; 284 | }; 285 | /* End XCBuildConfiguration section */ 286 | 287 | /* Begin XCConfigurationList section */ 288 | 6568D6871BE8101700A9E37C /* Build configuration list for PBXProject "GearRefreshControl" */ = { 289 | isa = XCConfigurationList; 290 | buildConfigurations = ( 291 | 6568D6931BE8101700A9E37C /* Debug */, 292 | 6568D6941BE8101700A9E37C /* Release */, 293 | ); 294 | defaultConfigurationIsVisible = 0; 295 | defaultConfigurationName = Release; 296 | }; 297 | 6568D6951BE8101700A9E37C /* Build configuration list for PBXNativeTarget "GearRefreshControl" */ = { 298 | isa = XCConfigurationList; 299 | buildConfigurations = ( 300 | 6568D6961BE8101700A9E37C /* Debug */, 301 | 6568D6971BE8101700A9E37C /* Release */, 302 | ); 303 | defaultConfigurationIsVisible = 0; 304 | defaultConfigurationName = Release; 305 | }; 306 | /* End XCConfigurationList section */ 307 | }; 308 | rootObject = 6568D6841BE8101700A9E37C /* Project object */; 309 | } 310 | -------------------------------------------------------------------------------- /GearRefreshControl.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GearRefreshControl.xcodeproj/xcshareddata/xcschemes/GearRefreshControl.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /GearRefreshControl/GearRefreshControl.h: -------------------------------------------------------------------------------- 1 | // 2 | // GearRefreshControl.h 3 | // GearRefreshControl 4 | // 5 | // Created by Andrea Mazzini on 02/11/15. 6 | // Copyright © 2015 Fancy Pixel. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for GearRefreshControl. 12 | FOUNDATION_EXPORT double GearRefreshControlVersionNumber; 13 | 14 | //! Project version string for GearRefreshControl. 15 | FOUNDATION_EXPORT const unsigned char GearRefreshControlVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /GearRefreshControl/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 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Andrea Mazzini 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 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 |

4 | 5 | [![CocoaPods](https://cocoapod-badges.herokuapp.com/v/GearRefreshControl/badge.svg)](http://cocoapods.org/?q=gearrefreshcontrol) 6 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 7 | ![Swift 3.0](https://img.shields.io/badge/swift-3.0-orange.svg) 8 | 9 | A custom animation for the UIRefreshControl. Inspired by this [Dribble shot](https://dribbble.com/shots/1974767-gear-powered-pull-to-refresh-animation?list=animated&sort=popular&timeframe=now&offset=19) and [this tutorial](http://www.jackrabbitmobile.com/design/ios-custom-pull-to-refresh-control/). 10 | 11 |

12 | 13 | 14 | 15 |

16 | 17 | # Screenshot 18 | ![GearRefreshControl](https://raw.githubusercontent.com/andreamazz/GearRefreshControl/master/assets/screenshot.gif) 19 | 20 | # Usage 21 | Install through [CocoaPods](http://cocoapods.org) 22 | 23 | ``` 24 | pod 'GearRefreshControl', '~> 1.0.0' 25 | 26 | use_frameworks! 27 | ``` 28 | 29 | Setup your `refreshControl`: 30 | 31 | ```swift 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | gearRefreshControl = GearRefreshControl(frame: self.view.bounds) 35 | gearRefreshControl.addTarget(self, action: #selector(ViewController.refresh), for: UIControlEvents.valueChanged) 36 | self.refreshControl = gearRefreshControl 37 | } 38 | ``` 39 | 40 | Update state: 41 | 42 | ```swift 43 | override func scrollViewDidScroll(_ scrollView: UIScrollView) { 44 | gearRefreshControl.scrollViewDidScroll(scrollView) 45 | } 46 | ``` 47 | 48 | Stop the animation on completion: 49 | ```swift 50 | self.gearRefreshControl.endRefreshing() 51 | ``` 52 | 53 | ## Customization 54 | 55 | You can customize the color of the control by setting the `gearTintColor` property: 56 | 57 | ```swift 58 | gearRefreshControl.gearTintColor = .red 59 | ``` 60 | 61 | Checkout the sample project for the full implementation. 62 | 63 | # Author 64 | [Andrea Mazzini](https://twitter.com/theandreamazz). I'm available for freelance work, feel free to contact me. 65 | 66 | Want to support the development of [these free libraries](https://cocoapods.org/owners/734)? Buy me a coffee ☕️ via [Paypal](https://www.paypal.me/andreamazzini). 67 | 68 | # Contributors 69 | Thanks to [everyone](https://github.com/andreamazz/GearRefreshControl/graphs/contributors) kind enough to submit a pull request. 70 | 71 | # MIT License 72 | 73 | Copyright (c) 2017 Andrea Mazzini. All rights reserved. 74 | 75 | Permission is hereby granted, free of charge, to any person obtaining a 76 | copy of this software and associated documentation files (the "Software"), 77 | to deal in the Software without restriction, including 78 | without limitation the rights to use, copy, modify, merge, publish, 79 | distribute, sublicense, and/or sell copies of the Software, and to 80 | permit persons to whom the Software is furnished to do so, subject to 81 | the following conditions: 82 | 83 | The above copyright notice and this permission notice shall be included 84 | in all copies or substantial portions of the Software. 85 | 86 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 87 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 88 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 89 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 90 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 91 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 92 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 93 | -------------------------------------------------------------------------------- /Source/BigGear.swift: -------------------------------------------------------------------------------- 1 | /** 2 | Defines a big gear as a Bezier path 3 | */ 4 | open class BigGear: UIView { 5 | 6 | /** 7 | Draws the gear in the given rect 8 | - Parameter rect: the rect drawn 9 | */ 10 | override open func draw(_ rect: CGRect) { 11 | let color0 = self.tintColor 12 | 13 | let bigGear: CGRect = CGRect(x: rect.minX, y: rect.minY, width: rect.width - 0.03, height: rect.height) 14 | 15 | let rectangle14Path = UIBezierPath() 16 | rectangle14Path.move(to: CGPoint(x: bigGear.minX + 0.54057 * bigGear.width, y: bigGear.minY + 0.08763 * bigGear.height)) 17 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.52246 * bigGear.width, y: bigGear.minY + 0.00000 * bigGear.height)) 18 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.47754 * bigGear.width, y: bigGear.minY + 0.00000 * bigGear.height)) 19 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.45930 * bigGear.width, y: bigGear.minY + 0.08825 * bigGear.height)) 20 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.39658 * bigGear.width, y: bigGear.minY + 0.09964 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.43787 * bigGear.width, y: bigGear.minY + 0.09048 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.41692 * bigGear.width, y: bigGear.minY + 0.09431 * bigGear.height)) 21 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.34881 * bigGear.width, y: bigGear.minY + 0.02252 * bigGear.height)) 22 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.30660 * bigGear.width, y: bigGear.minY + 0.03778 * bigGear.height)) 23 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.32000 * bigGear.width, y: bigGear.minY + 0.12795 * bigGear.height)) 24 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.26573 * bigGear.width, y: bigGear.minY + 0.15957 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.30106 * bigGear.width, y: bigGear.minY + 0.13715 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.28293 * bigGear.width, y: bigGear.minY + 0.14774 * bigGear.height)) 25 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.19340 * bigGear.width, y: bigGear.minY + 0.10264 * bigGear.height)) 26 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.15899 * bigGear.width, y: bigGear.minY + 0.13132 * bigGear.height)) 27 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.20313 * bigGear.width, y: bigGear.minY + 0.21240 * bigGear.height)) 28 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.16334 * bigGear.width, y: bigGear.minY + 0.25988 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.18872 * bigGear.width, y: bigGear.minY + 0.22721 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.17541 * bigGear.width, y: bigGear.minY + 0.24308 * bigGear.height)) 29 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.07497 * bigGear.width, y: bigGear.minY + 0.23068 * bigGear.height)) 30 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.05251 * bigGear.width, y: bigGear.minY + 0.26932 * bigGear.height)) 31 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.12232 * bigGear.width, y: bigGear.minY + 0.33089 * bigGear.height)) 32 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.10132 * bigGear.width, y: bigGear.minY + 0.38861 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.11394 * bigGear.width, y: bigGear.minY + 0.34945 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.10690 * bigGear.width, y: bigGear.minY + 0.36873 * bigGear.height)) 33 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.00780 * bigGear.width, y: bigGear.minY + 0.39120 * bigGear.height)) 34 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.00000 * bigGear.width, y: bigGear.minY + 0.43515 * bigGear.height)) 35 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.08717 * bigGear.width, y: bigGear.minY + 0.46943 * bigGear.height)) 36 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.08605 * bigGear.width, y: bigGear.minY + 0.50000 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.08643 * bigGear.width, y: bigGear.minY + 0.47952 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.08605 * bigGear.width, y: bigGear.minY + 0.48972 * bigGear.height)) 37 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.08717 * bigGear.width, y: bigGear.minY + 0.53057 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.08605 * bigGear.width, y: bigGear.minY + 0.51028 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.08643 * bigGear.width, y: bigGear.minY + 0.52048 * bigGear.height)) 38 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.00000 * bigGear.width, y: bigGear.minY + 0.56485 * bigGear.height)) 39 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.00780 * bigGear.width, y: bigGear.minY + 0.60880 * bigGear.height)) 40 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.10132 * bigGear.width, y: bigGear.minY + 0.61139 * bigGear.height)) 41 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.12232 * bigGear.width, y: bigGear.minY + 0.66911 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.10690 * bigGear.width, y: bigGear.minY + 0.63127 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.11394 * bigGear.width, y: bigGear.minY + 0.65055 * bigGear.height)) 42 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.05251 * bigGear.width, y: bigGear.minY + 0.73068 * bigGear.height)) 43 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.07497 * bigGear.width, y: bigGear.minY + 0.76932 * bigGear.height)) 44 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.16334 * bigGear.width, y: bigGear.minY + 0.74012 * bigGear.height)) 45 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.20313 * bigGear.width, y: bigGear.minY + 0.78760 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.17541 * bigGear.width, y: bigGear.minY + 0.75692 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.18872 * bigGear.width, y: bigGear.minY + 0.77279 * bigGear.height)) 46 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.15899 * bigGear.width, y: bigGear.minY + 0.86868 * bigGear.height)) 47 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.19340 * bigGear.width, y: bigGear.minY + 0.89736 * bigGear.height)) 48 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.26573 * bigGear.width, y: bigGear.minY + 0.84043 * bigGear.height)) 49 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.32000 * bigGear.width, y: bigGear.minY + 0.87205 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.28293 * bigGear.width, y: bigGear.minY + 0.85226 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.30106 * bigGear.width, y: bigGear.minY + 0.86285 * bigGear.height)) 50 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.30660 * bigGear.width, y: bigGear.minY + 0.96222 * bigGear.height)) 51 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.34881 * bigGear.width, y: bigGear.minY + 0.97748 * bigGear.height)) 52 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.39658 * bigGear.width, y: bigGear.minY + 0.90036 * bigGear.height)) 53 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.45930 * bigGear.width, y: bigGear.minY + 0.91175 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.41692 * bigGear.width, y: bigGear.minY + 0.90569 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.43787 * bigGear.width, y: bigGear.minY + 0.90952 * bigGear.height)) 54 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.47754 * bigGear.width, y: bigGear.minY + 1.00000 * bigGear.height)) 55 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.52246 * bigGear.width, y: bigGear.minY + 1.00000 * bigGear.height)) 56 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.54057 * bigGear.width, y: bigGear.minY + 0.91237 * bigGear.height)) 57 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.60429 * bigGear.width, y: bigGear.minY + 0.90177 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.56234 * bigGear.width, y: bigGear.minY + 0.91046 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.58362 * bigGear.width, y: bigGear.minY + 0.90688 * bigGear.height)) 58 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.65119 * bigGear.width, y: bigGear.minY + 0.97748 * bigGear.height)) 59 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.69340 * bigGear.width, y: bigGear.minY + 0.96222 * bigGear.height)) 60 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.68042 * bigGear.width, y: bigGear.minY + 0.87491 * bigGear.height)) 61 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.73725 * bigGear.width, y: bigGear.minY + 0.84277 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.70027 * bigGear.width, y: bigGear.minY + 0.86565 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.71926 * bigGear.width, y: bigGear.minY + 0.85489 * bigGear.height)) 62 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.80660 * bigGear.width, y: bigGear.minY + 0.89736 * bigGear.height)) 63 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.84101 * bigGear.width, y: bigGear.minY + 0.86868 * bigGear.height)) 64 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.79916 * bigGear.width, y: bigGear.minY + 0.79179 * bigGear.height)) 65 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.84184 * bigGear.width, y: bigGear.minY + 0.74184 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.81466 * bigGear.width, y: bigGear.minY + 0.77630 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.82894 * bigGear.width, y: bigGear.minY + 0.75959 * bigGear.height)) 66 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.92503 * bigGear.width, y: bigGear.minY + 0.76932 * bigGear.height)) 67 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.94749 * bigGear.width, y: bigGear.minY + 0.73068 * bigGear.height)) 68 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.88225 * bigGear.width, y: bigGear.minY + 0.67314 * bigGear.height)) 69 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.90515 * bigGear.width, y: bigGear.minY + 0.61121 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.89147 * bigGear.width, y: bigGear.minY + 0.65330 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.89915 * bigGear.width, y: bigGear.minY + 0.63260 * bigGear.height)) 70 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.99220 * bigGear.width, y: bigGear.minY + 0.60880 * bigGear.height)) 71 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 1.00000 * bigGear.width, y: bigGear.minY + 0.56485 * bigGear.height)) 72 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.91906 * bigGear.width, y: bigGear.minY + 0.53302 * bigGear.height)) 73 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.92037 * bigGear.width, y: bigGear.minY + 0.50000 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.91993 * bigGear.width, y: bigGear.minY + 0.52213 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.92037 * bigGear.width, y: bigGear.minY + 0.51112 * bigGear.height)) 74 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.91906 * bigGear.width, y: bigGear.minY + 0.46698 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.92037 * bigGear.width, y: bigGear.minY + 0.48888 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.91993 * bigGear.width, y: bigGear.minY + 0.47787 * bigGear.height)) 75 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 1.00000 * bigGear.width, y: bigGear.minY + 0.43515 * bigGear.height)) 76 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.99220 * bigGear.width, y: bigGear.minY + 0.39120 * bigGear.height)) 77 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.90515 * bigGear.width, y: bigGear.minY + 0.38879 * bigGear.height)) 78 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.88225 * bigGear.width, y: bigGear.minY + 0.32686 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.89915 * bigGear.width, y: bigGear.minY + 0.36740 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.89147 * bigGear.width, y: bigGear.minY + 0.34670 * bigGear.height)) 79 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.94749 * bigGear.width, y: bigGear.minY + 0.26932 * bigGear.height)) 80 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.92503 * bigGear.width, y: bigGear.minY + 0.23068 * bigGear.height)) 81 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.84184 * bigGear.width, y: bigGear.minY + 0.25816 * bigGear.height)) 82 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.79916 * bigGear.width, y: bigGear.minY + 0.20821 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.82894 * bigGear.width, y: bigGear.minY + 0.24041 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.81466 * bigGear.width, y: bigGear.minY + 0.22370 * bigGear.height)) 83 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.84101 * bigGear.width, y: bigGear.minY + 0.13132 * bigGear.height)) 84 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.80660 * bigGear.width, y: bigGear.minY + 0.10264 * bigGear.height)) 85 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.73725 * bigGear.width, y: bigGear.minY + 0.15723 * bigGear.height)) 86 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.68042 * bigGear.width, y: bigGear.minY + 0.12509 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.71926 * bigGear.width, y: bigGear.minY + 0.14511 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.70027 * bigGear.width, y: bigGear.minY + 0.13435 * bigGear.height)) 87 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.69340 * bigGear.width, y: bigGear.minY + 0.03778 * bigGear.height)) 88 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.65119 * bigGear.width, y: bigGear.minY + 0.02252 * bigGear.height)) 89 | rectangle14Path.addLine(to: CGPoint(x: bigGear.minX + 0.60429 * bigGear.width, y: bigGear.minY + 0.09823 * bigGear.height)) 90 | rectangle14Path.addCurve(to: CGPoint(x: bigGear.minX + 0.54057 * bigGear.width, y: bigGear.minY + 0.08763 * bigGear.height), controlPoint1: CGPoint(x: bigGear.minX + 0.58362 * bigGear.width, y: bigGear.minY + 0.09312 * bigGear.height), controlPoint2: CGPoint(x: bigGear.minX + 0.56234 * bigGear.width, y: bigGear.minY + 0.08954 * bigGear.height)) 91 | rectangle14Path.close() 92 | rectangle14Path.miterLimit = 4; 93 | 94 | rectangle14Path.usesEvenOddFillRule = true; 95 | 96 | color0?.setFill() 97 | rectangle14Path.fill() 98 | } 99 | } 100 | 101 | -------------------------------------------------------------------------------- /Source/GearRefreshControl.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GearRefreshControl.swift 3 | // GearRefreshControl 4 | // 5 | // Created by Andrea Mazzini on 04/04/15. 6 | // Copyright (c) 2015 Fancy Pixel. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | /** 12 | Defines a custom `UIRefreshControl` with spinning gears. 13 | */ 14 | open class GearRefreshControl: UIRefreshControl { 15 | 16 | /** 17 | Tells if the control is currently animating 18 | */ 19 | open fileprivate(set) var isRefreshControlAnimating = false 20 | 21 | /** 22 | Tint color for the control. Set the color of the main gear, the other ones are computed automatically 23 | */ 24 | dynamic open var gearTintColor: UIColor? { 25 | get { return self.centerGear.tintColor } 26 | set { 27 | centerGear.tintColor = newValue 28 | topGear.tintColor = newValue?.darkerColor(0.85) 29 | rightGear.tintColor = newValue?.darkerColor(0.75) 30 | bottomGear.tintColor = newValue?.darkerColor(0.85) 31 | leftGear.tintColor = newValue?.darkerColor(0.75) 32 | refreshContainerView.backgroundColor = newValue?.darkerColor(0.5) 33 | } 34 | } 35 | 36 | fileprivate var refreshContainerView: UIView! 37 | fileprivate var overlayView: UIView! 38 | fileprivate var shadowView: ShadowView = { 39 | let view = ShadowView() 40 | view.shadowPercentage = 0.2 41 | return view 42 | }() 43 | fileprivate var centerGear: MainGear = { 44 | let view = MainGear() 45 | view.frame = CGRect(x: 0, y: 0, width: 48, height: 48) 46 | view.backgroundColor = .clear 47 | return view 48 | }() 49 | fileprivate var topGear: BigGear = { // cue Jessica from the Allman brothers 50 | let view = BigGear() 51 | view.frame = CGRect(x: 0, y: 0, width: 92, height: 92) 52 | view.backgroundColor = .clear 53 | return view 54 | }() 55 | fileprivate var rightGear: BigGear = { 56 | let view = BigGear() 57 | view.frame = CGRect(x: 0, y: 0, width: 92, height: 92) 58 | view.backgroundColor = .clear 59 | return view 60 | }() 61 | fileprivate var bottomGear: BigGear = { 62 | let view = BigGear() 63 | view.frame = CGRect(x: 0, y: 0, width: 88, height: 88) 64 | view.backgroundColor = .clear 65 | return view 66 | }() 67 | fileprivate var leftGear: BigGear = { 68 | let view = BigGear() 69 | view.frame = CGRect(x: 0, y: 0, width: 92, height: 92) 70 | view.backgroundColor = .clear 71 | return view 72 | }() 73 | 74 | /** 75 | Use init(frame:) instead 76 | */ 77 | required override public init() { 78 | fatalError("use init(frame:) instead") 79 | } 80 | 81 | /** 82 | Use init(frame:) instead 83 | */ 84 | required public init(coder aDecoder: NSCoder) { 85 | fatalError("use init(frame:) instead") 86 | } 87 | 88 | /** 89 | Initialize the gear refresh control 90 | */ 91 | required override public init(frame: CGRect) { 92 | super.init() 93 | bounds.size.width = frame.size.width 94 | setupRefreshControl() 95 | } 96 | 97 | /** 98 | Scroll update 99 | 100 | Updates the scroll status of the gears. 101 | 102 | - Parameter scrollView: The scrollview being observed 103 | */ 104 | open func scrollViewDidScroll(_ scrollView: UIScrollView) { 105 | var refreshBounds = self.bounds; 106 | 107 | // Distance the table has been pulled 108 | let pullDistance = max(0.0, -self.frame.origin.y); 109 | let pullRatio = min(max(pullDistance, 0.0), 140.0) / 140.0; 110 | 111 | overlayView.alpha = 1 - pullRatio 112 | shadowView.frame = self.bounds 113 | 114 | centerGear.center = CGPoint(x: self.refreshContainerView.frame.midX, y: pullDistance / 2) 115 | topGear.center = CGPoint(x: self.refreshContainerView.frame.midX + 48, y: pullDistance / 2 - 49) 116 | rightGear.center = CGPoint(x: self.refreshContainerView.frame.midX + 120, y: pullDistance / 2) 117 | bottomGear.center = CGPoint(x: self.refreshContainerView.frame.midX - 47, y: pullDistance / 2 + 46) 118 | leftGear.center = CGPoint(x: self.refreshContainerView.frame.midX - 105, y: pullDistance / 2 - 17) 119 | 120 | refreshBounds.size.height = pullDistance; 121 | 122 | [self.refreshContainerView, self.overlayView].forEach { $0.frame = refreshBounds } 123 | 124 | // Don't rotate the gears if the refresh animation is playing 125 | if !isRefreshing && !isRefreshControlAnimating { 126 | centerGear.transform = CGAffineTransform(rotationAngle: (.pi / 2) * pullRatio) 127 | topGear.transform = CGAffineTransform(rotationAngle: 0.025 - 0.9 * pullRatio) 128 | rightGear.transform = CGAffineTransform(rotationAngle: -0.03 + 0.9 * pullRatio) 129 | bottomGear.transform = CGAffineTransform(rotationAngle: 0.025 - 0.9 * pullRatio) 130 | leftGear.transform = CGAffineTransform(rotationAngle: 0.025 + 0.9 * pullRatio) 131 | } 132 | 133 | // If we're refreshing and the animation is not playing, then play the animation 134 | if isRefreshing && !isRefreshControlAnimating { 135 | animateRefreshView() 136 | } 137 | } 138 | 139 | } 140 | 141 | private extension GearRefreshControl { 142 | func setupRefreshControl() { 143 | 144 | refreshContainerView = UIView(frame: self.bounds) 145 | 146 | overlayView = UIView(frame: self.bounds) 147 | overlayView.backgroundColor = UIColor.black.withAlphaComponent(0.3) 148 | 149 | shadowView.frame = self.bounds 150 | 151 | gearTintColor = UIColor(red:0.36, green:0.52, blue:0.92, alpha:1) 152 | 153 | centerGear.center = CGPoint(x: self.refreshContainerView.frame.midX, y: self.refreshContainerView.frame.midY) 154 | topGear.center = CGPoint(x: self.refreshContainerView.frame.midX + 48, y: self.refreshContainerView.frame.midY - 49) 155 | rightGear.center = CGPoint(x: self.refreshContainerView.frame.midX + 120, y: self.refreshContainerView.frame.midY) 156 | bottomGear.center = CGPoint(x: self.refreshContainerView.frame.midX - 48, y: self.refreshContainerView.frame.midY + 42) 157 | leftGear.center = CGPoint(x: self.refreshContainerView.frame.midX - 110, y: self.refreshContainerView.frame.midY - 18) 158 | 159 | [topGear, rightGear, bottomGear, leftGear, centerGear, shadowView, overlayView].forEach { self.refreshContainerView.addSubview($0) } 160 | 161 | refreshContainerView.clipsToBounds = true 162 | tintColor = UIColor.clear 163 | 164 | addSubview(self.refreshContainerView) 165 | } 166 | 167 | func animateRefreshView() { 168 | isRefreshControlAnimating = true 169 | 170 | UIView.animate(withDuration: 0.3, delay: 0, options: .curveLinear, animations: { 171 | self.centerGear.transform = self.centerGear.transform.rotated(by: .pi / 2) 172 | self.topGear.transform = self.topGear.transform.rotated(by: -(.pi / 2)) 173 | self.rightGear.transform = self.rightGear.transform.rotated(by: .pi / 2) 174 | self.bottomGear.transform = self.bottomGear.transform.rotated(by: -(.pi / 2)) 175 | self.leftGear.transform = self.leftGear.transform.rotated(by: .pi / 2) 176 | }, completion: { finished in 177 | // If still refreshing, keep spinning 178 | if self.isRefreshing { 179 | self.animateRefreshView() 180 | } else { 181 | self.isRefreshControlAnimating = false 182 | } 183 | }) 184 | } 185 | } 186 | 187 | private class ShadowView: UIView { 188 | var gradient: CAGradientLayer! 189 | var shadowPercentage = 0.0 190 | 191 | override func layoutSubviews() { 192 | clipsToBounds = true 193 | var frame = self.frame 194 | let offset = frame.size.height * CGFloat(shadowPercentage) 195 | frame.size.height = offset 196 | if gradient == nil { 197 | gradient = CAGradientLayer() 198 | gradient.frame = frame 199 | gradient.colors = [ 200 | UIColor.black.withAlphaComponent(0.6).cgColor, 201 | UIColor.black.withAlphaComponent(0.15).cgColor, 202 | UIColor.clear.cgColor] 203 | self.layer.insertSublayer(self.gradient, at: 0) 204 | } else { 205 | gradient.frame = frame 206 | } 207 | } 208 | } 209 | 210 | private extension UIColor { 211 | func darkerColor(_ delta: CGFloat) -> UIColor { 212 | var h = CGFloat(0) 213 | var s = CGFloat(0) 214 | var b = CGFloat(0) 215 | var a = CGFloat(0) 216 | self.getHue(&h, saturation: &s, brightness: &b, alpha: &a) 217 | return UIColor(hue: h, saturation: s, brightness: b * delta, alpha: a) 218 | } 219 | } 220 | -------------------------------------------------------------------------------- /Source/MainGear.swift: -------------------------------------------------------------------------------- 1 | /** 2 | Defines the smaller gear as a Bezier path 3 | */ 4 | open class MainGear : UIView { 5 | 6 | /** 7 | Draws the gear in the given rect 8 | - Parameter rect: the rect drawn 9 | */ 10 | override open func draw(_ rect: CGRect) { 11 | let color0 = self.tintColor 12 | 13 | let centerGear: CGRect = CGRect(x: rect.minX, y: rect.minY, width: rect.width + 0.42, height: rect.height) 14 | 15 | let rectangle1Path = UIBezierPath() 16 | rectangle1Path.move(to: CGPoint(x: centerGear.minX + 0.58954 * centerGear.width, y: centerGear.minY + 0.11232 * centerGear.height)) 17 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.56841 * centerGear.width, y: centerGear.minY + 0.00000 * centerGear.height)) 18 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.42589 * centerGear.width, y: centerGear.minY + 0.00000 * centerGear.height)) 19 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.40820 * centerGear.width, y: centerGear.minY + 0.11285 * centerGear.height)) 20 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.34380 * centerGear.width, y: centerGear.minY + 0.13390 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.38596 * centerGear.width, y: centerGear.minY + 0.11807 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.36444 * centerGear.width, y: centerGear.minY + 0.12514 * centerGear.height)) 21 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.26048 * centerGear.width, y: centerGear.minY + 0.05542 * centerGear.height)) 22 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.14518 * centerGear.width, y: centerGear.minY + 0.13891 * centerGear.height)) 23 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.19746 * centerGear.width, y: centerGear.minY + 0.24065 * centerGear.height)) 24 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.15778 * centerGear.width, y: centerGear.minY + 0.29533 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.18275 * centerGear.width, y: centerGear.minY + 0.25768 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.16946 * centerGear.width, y: centerGear.minY + 0.27597 * centerGear.height)) 25 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.04404 * centerGear.width, y: centerGear.minY + 0.28065 * centerGear.height)) 26 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.00000 * centerGear.width, y: centerGear.minY + 0.41574 * centerGear.height)) 27 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.10228 * centerGear.width, y: centerGear.minY + 0.46741 * centerGear.height)) 28 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.10096 * centerGear.width, y: centerGear.minY + 0.50000 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.10140 * centerGear.width, y: centerGear.minY + 0.47816 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.10096 * centerGear.width, y: centerGear.minY + 0.48903 * centerGear.height)) 29 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.10247 * centerGear.width, y: centerGear.minY + 0.53489 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.10096 * centerGear.width, y: centerGear.minY + 0.51176 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.10147 * centerGear.width, y: centerGear.minY + 0.52339 * centerGear.height)) 30 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.00176 * centerGear.width, y: centerGear.minY + 0.58966 * centerGear.height)) 31 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.04580 * centerGear.width, y: centerGear.minY + 0.72476 * centerGear.height)) 32 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.15898 * centerGear.width, y: centerGear.minY + 0.70665 * centerGear.height)) 33 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.19898 * centerGear.width, y: centerGear.minY + 0.76110 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.17077 * centerGear.width, y: centerGear.minY + 0.72594 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.18417 * centerGear.width, y: centerGear.minY + 0.74415 * centerGear.height)) 34 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.14979 * centerGear.width, y: centerGear.minY + 0.86443 * centerGear.height)) 35 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.26509 * centerGear.width, y: centerGear.minY + 0.94792 * centerGear.height)) 36 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.34594 * centerGear.width, y: centerGear.minY + 0.86700 * centerGear.height)) 37 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.41046 * centerGear.width, y: centerGear.minY + 0.88768 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.36662 * centerGear.width, y: centerGear.minY + 0.87564 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.38819 * centerGear.width, y: centerGear.minY + 0.88259 * centerGear.height)) 38 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.43159 * centerGear.width, y: centerGear.minY + 1.00000 * centerGear.height)) 39 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.57411 * centerGear.width, y: centerGear.minY + 1.00000 * centerGear.height)) 40 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.59180 * centerGear.width, y: centerGear.minY + 0.88715 * centerGear.height)) 41 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.65620 * centerGear.width, y: centerGear.minY + 0.86610 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.61404 * centerGear.width, y: centerGear.minY + 0.88193 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.63556 * centerGear.width, y: centerGear.minY + 0.87486 * centerGear.height)) 42 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.73952 * centerGear.width, y: centerGear.minY + 0.94458 * centerGear.height)) 43 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.85482 * centerGear.width, y: centerGear.minY + 0.86109 * centerGear.height)) 44 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.80254 * centerGear.width, y: centerGear.minY + 0.75935 * centerGear.height)) 45 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.84222 * centerGear.width, y: centerGear.minY + 0.70467 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.81725 * centerGear.width, y: centerGear.minY + 0.74232 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.83054 * centerGear.width, y: centerGear.minY + 0.72403 * centerGear.height)) 46 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.95596 * centerGear.width, y: centerGear.minY + 0.71935 * centerGear.height)) 47 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 1.00000 * centerGear.width, y: centerGear.minY + 0.58426 * centerGear.height)) 48 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.89772 * centerGear.width, y: centerGear.minY + 0.53259 * centerGear.height)) 49 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.89904 * centerGear.width, y: centerGear.minY + 0.50000 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.89860 * centerGear.width, y: centerGear.minY + 0.52184 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.89904 * centerGear.width, y: centerGear.minY + 0.51097 * centerGear.height)) 50 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.89753 * centerGear.width, y: centerGear.minY + 0.46511 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.89904 * centerGear.width, y: centerGear.minY + 0.48824 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.89853 * centerGear.width, y: centerGear.minY + 0.47661 * centerGear.height)) 51 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.99824 * centerGear.width, y: centerGear.minY + 0.41034 * centerGear.height)) 52 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.95420 * centerGear.width, y: centerGear.minY + 0.27524 * centerGear.height)) 53 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.84102 * centerGear.width, y: centerGear.minY + 0.29335 * centerGear.height)) 54 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.80102 * centerGear.width, y: centerGear.minY + 0.23890 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.82923 * centerGear.width, y: centerGear.minY + 0.27406 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.81583 * centerGear.width, y: centerGear.minY + 0.25585 * centerGear.height)) 55 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.85021 * centerGear.width, y: centerGear.minY + 0.13557 * centerGear.height)) 56 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.73491 * centerGear.width, y: centerGear.minY + 0.05208 * centerGear.height)) 57 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.65406 * centerGear.width, y: centerGear.minY + 0.13300 * centerGear.height)) 58 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.58954 * centerGear.width, y: centerGear.minY + 0.11232 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.63338 * centerGear.width, y: centerGear.minY + 0.12436 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.61181 * centerGear.width, y: centerGear.minY + 0.11741 * centerGear.height)) 59 | rectangle1Path.addLine(to: CGPoint(x: centerGear.minX + 0.58954 * centerGear.width, y: centerGear.minY + 0.11232 * centerGear.height)) 60 | rectangle1Path.close() 61 | rectangle1Path.move(to: CGPoint(x: centerGear.minX + 0.50165 * centerGear.width, y: centerGear.minY + 0.63636 * centerGear.height)) 62 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.63847 * centerGear.width, y: centerGear.minY + 0.50000 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.57721 * centerGear.width, y: centerGear.minY + 0.63636 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.63847 * centerGear.width, y: centerGear.minY + 0.57531 * centerGear.height)) 63 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.50165 * centerGear.width, y: centerGear.minY + 0.36364 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.63847 * centerGear.width, y: centerGear.minY + 0.42469 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.57721 * centerGear.width, y: centerGear.minY + 0.36364 * centerGear.height)) 64 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.36484 * centerGear.width, y: centerGear.minY + 0.50000 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.42609 * centerGear.width, y: centerGear.minY + 0.36364 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.36484 * centerGear.width, y: centerGear.minY + 0.42469 * centerGear.height)) 65 | rectangle1Path.addCurve(to: CGPoint(x: centerGear.minX + 0.50165 * centerGear.width, y: centerGear.minY + 0.63636 * centerGear.height), controlPoint1: CGPoint(x: centerGear.minX + 0.36484 * centerGear.width, y: centerGear.minY + 0.57531 * centerGear.height), controlPoint2: CGPoint(x: centerGear.minX + 0.42609 * centerGear.width, y: centerGear.minY + 0.63636 * centerGear.height)) 66 | rectangle1Path.close() 67 | rectangle1Path.miterLimit = 4; 68 | 69 | rectangle1Path.usesEvenOddFillRule = true; 70 | 71 | color0?.setFill() 72 | rectangle1Path.fill() 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /assets/Paintcode/bigGear.pcvd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/Paintcode/bigGear.pcvd -------------------------------------------------------------------------------- /assets/Paintcode/mainGear.pcvd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/Paintcode/mainGear.pcvd -------------------------------------------------------------------------------- /assets/Sketch.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/Sketch.sketch -------------------------------------------------------------------------------- /assets/demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/demo.png -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/logo.png -------------------------------------------------------------------------------- /assets/screenshot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreamazz/GearRefreshControl/76356c058c9600dab03728f960363e5ab2e8b3e5/assets/screenshot.gif --------------------------------------------------------------------------------