├── .gitignore ├── .travis.yml ├── Example ├── JDSwiftAvatarProgress.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── JDSwiftAvatarProgress-Example.xcscheme ├── JDSwiftAvatarProgress.xcworkspace │ └── contents.xcworkspacedata ├── JDSwiftAvatarProgress │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ └── empty_avatar.imageset │ │ │ ├── Contents.json │ │ │ ├── empty_avatar.png │ │ │ └── empty_avatar@2x.png │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── JDSwiftAvatarProgress.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── JDSwiftAvatarProgress.xcscheme │ └── Target Support Files │ │ ├── JDSwiftAvatarProgress │ │ ├── Info.plist │ │ ├── JDSwiftAvatarProgress-dummy.m │ │ ├── JDSwiftAvatarProgress-prefix.pch │ │ ├── JDSwiftAvatarProgress-umbrella.h │ │ ├── JDSwiftAvatarProgress.modulemap │ │ └── JDSwiftAvatarProgress.xcconfig │ │ ├── Pods-JDSwiftAvatarProgress_Example │ │ ├── Info.plist │ │ ├── Pods-JDSwiftAvatarProgress_Example-acknowledgements.markdown │ │ ├── Pods-JDSwiftAvatarProgress_Example-acknowledgements.plist │ │ ├── Pods-JDSwiftAvatarProgress_Example-dummy.m │ │ ├── Pods-JDSwiftAvatarProgress_Example-frameworks.sh │ │ ├── Pods-JDSwiftAvatarProgress_Example-resources.sh │ │ ├── Pods-JDSwiftAvatarProgress_Example-umbrella.h │ │ ├── Pods-JDSwiftAvatarProgress_Example.debug.xcconfig │ │ ├── Pods-JDSwiftAvatarProgress_Example.modulemap │ │ └── Pods-JDSwiftAvatarProgress_Example.release.xcconfig │ │ └── Pods-JDSwiftAvatarProgress_Tests │ │ ├── Info.plist │ │ ├── Pods-JDSwiftAvatarProgress_Tests-acknowledgements.markdown │ │ ├── Pods-JDSwiftAvatarProgress_Tests-acknowledgements.plist │ │ ├── Pods-JDSwiftAvatarProgress_Tests-dummy.m │ │ ├── Pods-JDSwiftAvatarProgress_Tests-frameworks.sh │ │ ├── Pods-JDSwiftAvatarProgress_Tests-resources.sh │ │ ├── Pods-JDSwiftAvatarProgress_Tests-umbrella.h │ │ ├── Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig │ │ ├── Pods-JDSwiftAvatarProgress_Tests.modulemap │ │ └── Pods-JDSwiftAvatarProgress_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── JDSwiftAvatarProgress.podspec ├── LICENSE ├── Pod ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── JDAvatarProgress.swift ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | install: 12 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 13 | script: 14 | - set -o pipefail && xcodebuild test -workspace Example/JDSwiftAvatarProgress.xcworkspace -scheme JDSwiftAvatarProgress-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c 15 | - pod lib lint --quick 16 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 49B6FBA362DD60780B874A4F /* Pods_JDSwiftAvatarProgress_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C3131920E060E1F7DEB7F7A /* Pods_JDSwiftAvatarProgress_Tests.framework */; }; 11 | 5E0F27241DBBB2031C909C62 /* Pods_JDSwiftAvatarProgress_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 385274BFD6EA16D8A3212B0C /* Pods_JDSwiftAvatarProgress_Example.framework */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = JDSwiftAvatarProgress; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 09DCE522BF5C57571E7B0D2D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 32 | 144BFA1881CA1C3FB6B34CCB /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JDSwiftAvatarProgress_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.release.xcconfig"; sourceTree = ""; }; 33 | 385274BFD6EA16D8A3212B0C /* Pods_JDSwiftAvatarProgress_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JDSwiftAvatarProgress_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 4C3131920E060E1F7DEB7F7A /* Pods_JDSwiftAvatarProgress_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JDSwiftAvatarProgress_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD01AFB9204008FA782 /* JDSwiftAvatarProgress_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JDSwiftAvatarProgress_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* JDSwiftAvatarProgress_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JDSwiftAvatarProgress_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 45 | 8CAB49D2872F7866B6C9194B /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JDSwiftAvatarProgress_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.debug.xcconfig"; sourceTree = ""; }; 46 | BAD7B30549E7ADFE02B0A5E7 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JDSwiftAvatarProgress_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.release.xcconfig"; sourceTree = ""; }; 47 | BD6842B0FBBB5E0E09C473C0 /* JDSwiftAvatarProgress.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = JDSwiftAvatarProgress.podspec; path = ../JDSwiftAvatarProgress.podspec; sourceTree = ""; }; 48 | C4D689076FC45EF220FE50E6 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 49 | E7A63916B6F0F4D30A80F9B1 /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 5E0F27241DBBB2031C909C62 /* Pods_JDSwiftAvatarProgress_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 49B6FBA362DD60780B874A4F /* Pods_JDSwiftAvatarProgress_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 13907ADD7F1FE7F0609A76F9 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 8CAB49D2872F7866B6C9194B /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */, 76 | BAD7B30549E7ADFE02B0A5E7 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */, 77 | E7A63916B6F0F4D30A80F9B1 /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */, 78 | 144BFA1881CA1C3FB6B34CCB /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 607FACC71AFB9204008FA782 = { 84 | isa = PBXGroup; 85 | children = ( 86 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 87 | 607FACD21AFB9204008FA782 /* Example for JDSwiftAvatarProgress */, 88 | 607FACE81AFB9204008FA782 /* Tests */, 89 | 607FACD11AFB9204008FA782 /* Products */, 90 | 13907ADD7F1FE7F0609A76F9 /* Pods */, 91 | E3D2C85C1D212F78A6A7EFAE /* Frameworks */, 92 | ); 93 | sourceTree = ""; 94 | }; 95 | 607FACD11AFB9204008FA782 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 607FACD01AFB9204008FA782 /* JDSwiftAvatarProgress_Example.app */, 99 | 607FACE51AFB9204008FA782 /* JDSwiftAvatarProgress_Tests.xctest */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | 607FACD21AFB9204008FA782 /* Example for JDSwiftAvatarProgress */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 108 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 109 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 110 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 111 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 112 | 607FACD31AFB9204008FA782 /* Supporting Files */, 113 | ); 114 | name = "Example for JDSwiftAvatarProgress"; 115 | path = JDSwiftAvatarProgress; 116 | sourceTree = ""; 117 | }; 118 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 607FACD41AFB9204008FA782 /* Info.plist */, 122 | ); 123 | name = "Supporting Files"; 124 | sourceTree = ""; 125 | }; 126 | 607FACE81AFB9204008FA782 /* Tests */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 130 | 607FACE91AFB9204008FA782 /* Supporting Files */, 131 | ); 132 | path = Tests; 133 | sourceTree = ""; 134 | }; 135 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACEA1AFB9204008FA782 /* Info.plist */, 139 | ); 140 | name = "Supporting Files"; 141 | sourceTree = ""; 142 | }; 143 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | BD6842B0FBBB5E0E09C473C0 /* JDSwiftAvatarProgress.podspec */, 147 | C4D689076FC45EF220FE50E6 /* README.md */, 148 | 09DCE522BF5C57571E7B0D2D /* LICENSE */, 149 | ); 150 | name = "Podspec Metadata"; 151 | sourceTree = ""; 152 | }; 153 | E3D2C85C1D212F78A6A7EFAE /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | 385274BFD6EA16D8A3212B0C /* Pods_JDSwiftAvatarProgress_Example.framework */, 157 | 4C3131920E060E1F7DEB7F7A /* Pods_JDSwiftAvatarProgress_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* JDSwiftAvatarProgress_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress_Example" */; 168 | buildPhases = ( 169 | 73BDC389D42E6EDAA49C2E39 /* Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | 743B2F71958BB1ED6C78BE21 /* Embed Pods Frameworks */, 174 | 24DB833B2843041E69E71555 /* Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = JDSwiftAvatarProgress_Example; 181 | productName = JDSwiftAvatarProgress; 182 | productReference = 607FACD01AFB9204008FA782 /* JDSwiftAvatarProgress_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* JDSwiftAvatarProgress_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress_Tests" */; 188 | buildPhases = ( 189 | BAEE507CD559B408A6CC7051 /* Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 25A08AE49176A750D47EB85D /* Embed Pods Frameworks */, 194 | 97EE8B31815571DDDC406A88 /* Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = JDSwiftAvatarProgress_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* JDSwiftAvatarProgress_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0700; 213 | LastUpgradeCheck = 0700; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | }; 219 | 607FACE41AFB9204008FA782 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | TestTargetID = 607FACCF1AFB9204008FA782; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "JDSwiftAvatarProgress" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 607FACC71AFB9204008FA782; 234 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 607FACCF1AFB9204008FA782 /* JDSwiftAvatarProgress_Example */, 239 | 607FACE41AFB9204008FA782 /* JDSwiftAvatarProgress_Tests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 607FACCE1AFB9204008FA782 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 250 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 251 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | }; 255 | 607FACE31AFB9204008FA782 /* Resources */ = { 256 | isa = PBXResourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | /* End PBXResourcesBuildPhase section */ 263 | 264 | /* Begin PBXShellScriptBuildPhase section */ 265 | 24DB833B2843041E69E71555 /* Copy Pods Resources */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | ); 272 | name = "Copy Pods Resources"; 273 | outputPaths = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-resources.sh\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | 25A08AE49176A750D47EB85D /* Embed Pods Frameworks */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputPaths = ( 286 | ); 287 | name = "Embed Pods Frameworks"; 288 | outputPaths = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-frameworks.sh\"\n"; 293 | showEnvVarsInLog = 0; 294 | }; 295 | 73BDC389D42E6EDAA49C2E39 /* Check Pods Manifest.lock */ = { 296 | isa = PBXShellScriptBuildPhase; 297 | buildActionMask = 2147483647; 298 | files = ( 299 | ); 300 | inputPaths = ( 301 | ); 302 | name = "Check Pods Manifest.lock"; 303 | outputPaths = ( 304 | ); 305 | runOnlyForDeploymentPostprocessing = 0; 306 | shellPath = /bin/sh; 307 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 308 | showEnvVarsInLog = 0; 309 | }; 310 | 743B2F71958BB1ED6C78BE21 /* Embed Pods Frameworks */ = { 311 | isa = PBXShellScriptBuildPhase; 312 | buildActionMask = 2147483647; 313 | files = ( 314 | ); 315 | inputPaths = ( 316 | ); 317 | name = "Embed Pods Frameworks"; 318 | outputPaths = ( 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | shellPath = /bin/sh; 322 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-frameworks.sh\"\n"; 323 | showEnvVarsInLog = 0; 324 | }; 325 | 97EE8B31815571DDDC406A88 /* Copy Pods Resources */ = { 326 | isa = PBXShellScriptBuildPhase; 327 | buildActionMask = 2147483647; 328 | files = ( 329 | ); 330 | inputPaths = ( 331 | ); 332 | name = "Copy Pods Resources"; 333 | outputPaths = ( 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | shellPath = /bin/sh; 337 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-resources.sh\"\n"; 338 | showEnvVarsInLog = 0; 339 | }; 340 | BAEE507CD559B408A6CC7051 /* Check Pods Manifest.lock */ = { 341 | isa = PBXShellScriptBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | inputPaths = ( 346 | ); 347 | name = "Check Pods Manifest.lock"; 348 | outputPaths = ( 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | shellPath = /bin/sh; 352 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 353 | showEnvVarsInLog = 0; 354 | }; 355 | /* End PBXShellScriptBuildPhase section */ 356 | 357 | /* Begin PBXSourcesBuildPhase section */ 358 | 607FACCC1AFB9204008FA782 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 363 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | 607FACE11AFB9204008FA782 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | target = 607FACCF1AFB9204008FA782 /* JDSwiftAvatarProgress_Example */; 381 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 382 | }; 383 | /* End PBXTargetDependency section */ 384 | 385 | /* Begin PBXVariantGroup section */ 386 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 387 | isa = PBXVariantGroup; 388 | children = ( 389 | 607FACDA1AFB9204008FA782 /* Base */, 390 | ); 391 | name = Main.storyboard; 392 | sourceTree = ""; 393 | }; 394 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 395 | isa = PBXVariantGroup; 396 | children = ( 397 | 607FACDF1AFB9204008FA782 /* Base */, 398 | ); 399 | name = LaunchScreen.xib; 400 | sourceTree = ""; 401 | }; 402 | /* End PBXVariantGroup section */ 403 | 404 | /* Begin XCBuildConfiguration section */ 405 | 607FACED1AFB9204008FA782 /* Debug */ = { 406 | isa = XCBuildConfiguration; 407 | buildSettings = { 408 | ALWAYS_SEARCH_USER_PATHS = NO; 409 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 410 | CLANG_CXX_LIBRARY = "libc++"; 411 | CLANG_ENABLE_MODULES = YES; 412 | CLANG_ENABLE_OBJC_ARC = YES; 413 | CLANG_WARN_BOOL_CONVERSION = YES; 414 | CLANG_WARN_CONSTANT_CONVERSION = YES; 415 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 416 | CLANG_WARN_EMPTY_BODY = YES; 417 | CLANG_WARN_ENUM_CONVERSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 420 | CLANG_WARN_UNREACHABLE_CODE = YES; 421 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 422 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_STRICT_OBJC_MSGSEND = YES; 426 | ENABLE_TESTABILITY = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu99; 428 | GCC_DYNAMIC_NO_PIC = NO; 429 | GCC_NO_COMMON_BLOCKS = YES; 430 | GCC_OPTIMIZATION_LEVEL = 0; 431 | GCC_PREPROCESSOR_DEFINITIONS = ( 432 | "DEBUG=1", 433 | "$(inherited)", 434 | ); 435 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 436 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 437 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 438 | GCC_WARN_UNDECLARED_SELECTOR = YES; 439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 440 | GCC_WARN_UNUSED_FUNCTION = YES; 441 | GCC_WARN_UNUSED_VARIABLE = YES; 442 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 443 | MTL_ENABLE_DEBUG_INFO = YES; 444 | ONLY_ACTIVE_ARCH = YES; 445 | SDKROOT = iphoneos; 446 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 447 | }; 448 | name = Debug; 449 | }; 450 | 607FACEE1AFB9204008FA782 /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | ALWAYS_SEARCH_USER_PATHS = NO; 454 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 455 | CLANG_CXX_LIBRARY = "libc++"; 456 | CLANG_ENABLE_MODULES = YES; 457 | CLANG_ENABLE_OBJC_ARC = YES; 458 | CLANG_WARN_BOOL_CONVERSION = YES; 459 | CLANG_WARN_CONSTANT_CONVERSION = YES; 460 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INT_CONVERSION = YES; 464 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 465 | CLANG_WARN_UNREACHABLE_CODE = YES; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 468 | COPY_PHASE_STRIP = NO; 469 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 470 | ENABLE_NS_ASSERTIONS = NO; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | GCC_C_LANGUAGE_STANDARD = gnu99; 473 | GCC_NO_COMMON_BLOCKS = YES; 474 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 475 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 476 | GCC_WARN_UNDECLARED_SELECTOR = YES; 477 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 478 | GCC_WARN_UNUSED_FUNCTION = YES; 479 | GCC_WARN_UNUSED_VARIABLE = YES; 480 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 481 | MTL_ENABLE_DEBUG_INFO = NO; 482 | SDKROOT = iphoneos; 483 | VALIDATE_PRODUCT = YES; 484 | }; 485 | name = Release; 486 | }; 487 | 607FACF01AFB9204008FA782 /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | baseConfigurationReference = 8CAB49D2872F7866B6C9194B /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */; 490 | buildSettings = { 491 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 492 | INFOPLIST_FILE = JDSwiftAvatarProgress/Info.plist; 493 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 494 | MODULE_NAME = ExampleApp; 495 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 496 | PRODUCT_NAME = "$(TARGET_NAME)"; 497 | }; 498 | name = Debug; 499 | }; 500 | 607FACF11AFB9204008FA782 /* Release */ = { 501 | isa = XCBuildConfiguration; 502 | baseConfigurationReference = BAD7B30549E7ADFE02B0A5E7 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */; 503 | buildSettings = { 504 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 505 | INFOPLIST_FILE = JDSwiftAvatarProgress/Info.plist; 506 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 507 | MODULE_NAME = ExampleApp; 508 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 509 | PRODUCT_NAME = "$(TARGET_NAME)"; 510 | }; 511 | name = Release; 512 | }; 513 | 607FACF31AFB9204008FA782 /* Debug */ = { 514 | isa = XCBuildConfiguration; 515 | baseConfigurationReference = E7A63916B6F0F4D30A80F9B1 /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */; 516 | buildSettings = { 517 | BUNDLE_LOADER = "$(TEST_HOST)"; 518 | GCC_PREPROCESSOR_DEFINITIONS = ( 519 | "DEBUG=1", 520 | "$(inherited)", 521 | ); 522 | INFOPLIST_FILE = Tests/Info.plist; 523 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 524 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 525 | PRODUCT_NAME = "$(TARGET_NAME)"; 526 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JDSwiftAvatarProgress_Example.app/JDSwiftAvatarProgress_Example"; 527 | }; 528 | name = Debug; 529 | }; 530 | 607FACF41AFB9204008FA782 /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | baseConfigurationReference = 144BFA1881CA1C3FB6B34CCB /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */; 533 | buildSettings = { 534 | BUNDLE_LOADER = "$(TEST_HOST)"; 535 | INFOPLIST_FILE = Tests/Info.plist; 536 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 537 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 538 | PRODUCT_NAME = "$(TARGET_NAME)"; 539 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JDSwiftAvatarProgress_Example.app/JDSwiftAvatarProgress_Example"; 540 | }; 541 | name = Release; 542 | }; 543 | /* End XCBuildConfiguration section */ 544 | 545 | /* Begin XCConfigurationList section */ 546 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "JDSwiftAvatarProgress" */ = { 547 | isa = XCConfigurationList; 548 | buildConfigurations = ( 549 | 607FACED1AFB9204008FA782 /* Debug */, 550 | 607FACEE1AFB9204008FA782 /* Release */, 551 | ); 552 | defaultConfigurationIsVisible = 0; 553 | defaultConfigurationName = Release; 554 | }; 555 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress_Example" */ = { 556 | isa = XCConfigurationList; 557 | buildConfigurations = ( 558 | 607FACF01AFB9204008FA782 /* Debug */, 559 | 607FACF11AFB9204008FA782 /* Release */, 560 | ); 561 | defaultConfigurationIsVisible = 0; 562 | defaultConfigurationName = Release; 563 | }; 564 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress_Tests" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 607FACF31AFB9204008FA782 /* Debug */, 568 | 607FACF41AFB9204008FA782 /* Release */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | /* End XCConfigurationList section */ 574 | }; 575 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 576 | } 577 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress.xcodeproj/xcshareddata/xcschemes/JDSwiftAvatarProgress-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // JDSwiftAvatarProgress 4 | // 5 | // Created by David López on 10/20/2015. 6 | // Copyright (c) 2015 David López. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 22 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 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 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Images.xcassets/empty_avatar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "empty_avatar.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "empty_avatar@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Images.xcassets/empty_avatar.imageset/empty_avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JellyDevelopment/JDSwiftAvatarProgress/3f389375616e5cb7093f7b0318bd1ecbe8c3f545/Example/JDSwiftAvatarProgress/Images.xcassets/empty_avatar.imageset/empty_avatar.png -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/Images.xcassets/empty_avatar.imageset/empty_avatar@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JellyDevelopment/JDSwiftAvatarProgress/3f389375616e5cb7093f7b0318bd1ecbe8c3f545/Example/JDSwiftAvatarProgress/Images.xcassets/empty_avatar.imageset/empty_avatar@2x.png -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/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 | NSAppTransportSecurity 22 | 23 | NSAllowsArbitraryLoads 24 | 25 | 26 | CFBundleVersion 27 | 1 28 | LSRequiresIPhoneOS 29 | 30 | UILaunchStoryboardName 31 | LaunchScreen 32 | UIMainStoryboardFile 33 | Main 34 | UIRequiredDeviceCapabilities 35 | 36 | armv7 37 | 38 | UISupportedInterfaceOrientations 39 | 40 | UIInterfaceOrientationPortrait 41 | UIInterfaceOrientationLandscapeLeft 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Example/JDSwiftAvatarProgress/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // JDSwiftAvatarProgress 4 | // 5 | // Created by David López on 10/20/2015. 6 | // Copyright (c) 2015 David López. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import JDSwiftAvatarProgress 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var avatarImgView: JDAvatarProgress! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | // Do any additional setup after loading the view, typically from a nib. 19 | self.avatarImgView.image = UIImage(named: "empty_avatar") 20 | } 21 | 22 | override func didReceiveMemoryWarning() { 23 | super.didReceiveMemoryWarning() 24 | // Dispose of any resources that can be recreated. 25 | } 26 | 27 | @IBAction func loadAvatar(sender: AnyObject) { 28 | 29 | self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!, 30 | placeholder: nil, 31 | progressBarColor: UIColor.orangeColor(), 32 | progressBarLineWidth: JDAvatarDefaultProgressBarLineWidth, 33 | borderColor:nil, 34 | borderWidth: JDAvatarDefaultBorderWidth, 35 | completion: { (image, error) -> Void in 36 | 37 | print("image => \(image)") 38 | print("error => \(error)") 39 | print("------------------") 40 | }) 41 | 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'JDSwiftAvatarProgress_Example', :exclusive => true do 5 | pod "JDSwiftAvatarProgress", :path => "../" 6 | end 7 | 8 | target 'JDSwiftAvatarProgress_Tests', :exclusive => true do 9 | pod "JDSwiftAvatarProgress", :path => "../" 10 | 11 | 12 | end 13 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JDSwiftAvatarProgress (1.0.2) 3 | 4 | DEPENDENCIES: 5 | - JDSwiftAvatarProgress (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | JDSwiftAvatarProgress: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | JDSwiftAvatarProgress: f58a6fa342f8faf638489eb25f3bf1789ed753c4 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/JDSwiftAvatarProgress.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JDSwiftAvatarProgress", 3 | "version": "1.0.2", 4 | "summary": "Easy customizable round avatar, a derived UIImageView class, load asynchronously the image with optional border and progress bar animated.", 5 | "description": "Easy customizable round avatar, a derived UIImageView class, load asynchronously the image with optional border and progress bar animated. Perfect to use in the profile section in your apps.", 6 | "homepage": "https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git", 7 | "license": "MIT", 8 | "authors": { 9 | "David López": "davidlcarrascal@gmail.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git", 13 | "tag": "1.0.2" 14 | }, 15 | "social_media_url": "https://twitter.com/davidlcarrascal", 16 | "platforms": { 17 | "ios": "8.0" 18 | }, 19 | "requires_arc": true, 20 | "source_files": "Pod/Classes/**/*", 21 | "frameworks": [ 22 | "UIKit", 23 | "QuartzCore" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JDSwiftAvatarProgress (1.0.2) 3 | 4 | DEPENDENCIES: 5 | - JDSwiftAvatarProgress (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | JDSwiftAvatarProgress: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | JDSwiftAvatarProgress: f58a6fa342f8faf638489eb25f3bf1789ed753c4 13 | 14 | COCOAPODS: 0.39.0 15 | -------------------------------------------------------------------------------- /Example/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 | 05F10B8D21F6EE15E12DB96551EC6D22 /* Pods-JDSwiftAvatarProgress_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 20CAC4CB3A8D7DEFE783CC437A836EEA /* Pods-JDSwiftAvatarProgress_Example-dummy.m */; }; 11 | 1202CCE6E57A0BB6920D2D7AFF3DE0B3 /* Pods-JDSwiftAvatarProgress_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D4C6F4A313DB5B83DF680FCB91129CF /* Pods-JDSwiftAvatarProgress_Tests-dummy.m */; }; 12 | 29C333E4DC6B14F95F340DD1B7095302 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E642B1A057ADA2ABEF90BE2417F349C1 /* QuartzCore.framework */; }; 13 | 2A81475CD1A89857918568EE5AE2AB56 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D9DE615671731BF3AEFB3CB1F984FA8F /* UIKit.framework */; }; 14 | 6397E0FF12C449F82A08522970B2CAC3 /* Pods-JDSwiftAvatarProgress_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 09BF9F76157DBA5A9F83006271AD1C9C /* Pods-JDSwiftAvatarProgress_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 83D08DED694D83792BD1E1761BFC30EB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 91413329813FA6FE5A78842159E69621 /* Foundation.framework */; }; 16 | 8F85CED5BA3DD015E1B38127D134C8FC /* Pods-JDSwiftAvatarProgress_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = FB019D40C30BF00FA0B88508B9AC7DD5 /* Pods-JDSwiftAvatarProgress_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 8FECBA3680DD4DCFFADE5F0DD994EECD /* JDSwiftAvatarProgress-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 03771FD47C614037829DE64A0F1D0696 /* JDSwiftAvatarProgress-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 95C18855841C17E290C7AE17EF9504E2 /* JDAvatarProgress.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E45A2220E2B475CB6C36F65807BA935 /* JDAvatarProgress.swift */; }; 19 | 96413AEADA4DC87344B6A110075CE703 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 91413329813FA6FE5A78842159E69621 /* Foundation.framework */; }; 20 | C4D0C765AE676CBDD09D74CC4CEDB4C0 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 91413329813FA6FE5A78842159E69621 /* Foundation.framework */; }; 21 | D389999D03FBB1F24CA0BD2F224FF31A /* JDSwiftAvatarProgress-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BD06FA1244AFF124CD1B7D4068A22465 /* JDSwiftAvatarProgress-dummy.m */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 21342FC5043B0C7848B653F2C6D04B33 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = AEEA7610A1EF343ACCF69DDE456C1DF8; 30 | remoteInfo = JDSwiftAvatarProgress; 31 | }; 32 | 550C8CC4476CA4715CA4B6448377BC0A /* PBXContainerItemProxy */ = { 33 | isa = PBXContainerItemProxy; 34 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 35 | proxyType = 1; 36 | remoteGlobalIDString = AEEA7610A1EF343ACCF69DDE456C1DF8; 37 | remoteInfo = JDSwiftAvatarProgress; 38 | }; 39 | /* End PBXContainerItemProxy section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 004E9FD45BE6566202BE172104A95C7C /* Pods-JDSwiftAvatarProgress_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-JDSwiftAvatarProgress_Tests-resources.sh"; sourceTree = ""; }; 43 | 03771FD47C614037829DE64A0F1D0696 /* JDSwiftAvatarProgress-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JDSwiftAvatarProgress-umbrella.h"; sourceTree = ""; }; 44 | 04CAC5713E6128D655F148C00FBEDC74 /* Pods-JDSwiftAvatarProgress_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-JDSwiftAvatarProgress_Example-resources.sh"; sourceTree = ""; }; 45 | 09BF9F76157DBA5A9F83006271AD1C9C /* Pods-JDSwiftAvatarProgress_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-JDSwiftAvatarProgress_Tests-umbrella.h"; sourceTree = ""; }; 46 | 1344391AFC16A6EA799082EAB1FB3C7D /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 20CAC4CB3A8D7DEFE783CC437A836EEA /* Pods-JDSwiftAvatarProgress_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-JDSwiftAvatarProgress_Example-dummy.m"; sourceTree = ""; }; 48 | 222DFF8602DA35CA6FF11234DC312541 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 25B927E9301BAC3D49BE8132AC7B1501 /* Pods-JDSwiftAvatarProgress_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-JDSwiftAvatarProgress_Example-acknowledgements.plist"; sourceTree = ""; }; 50 | 2D289286EC97565187F40C77562854F6 /* Pods-JDSwiftAvatarProgress_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-JDSwiftAvatarProgress_Example-frameworks.sh"; sourceTree = ""; }; 51 | 338400209D307EB26E331229F4ABB3A2 /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JDSwiftAvatarProgress_Example.debug.xcconfig"; sourceTree = ""; }; 52 | 381B0E52DA7B7D0E7F3EABDEBF1541FE /* Pods-JDSwiftAvatarProgress_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-JDSwiftAvatarProgress_Tests-acknowledgements.markdown"; sourceTree = ""; }; 53 | 3E45A2220E2B475CB6C36F65807BA935 /* JDAvatarProgress.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = JDAvatarProgress.swift; sourceTree = ""; }; 54 | 57A5075BF4A6F47286592CA62C30921D /* Pods_JDSwiftAvatarProgress_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JDSwiftAvatarProgress_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 5D4C6F4A313DB5B83DF680FCB91129CF /* Pods-JDSwiftAvatarProgress_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-JDSwiftAvatarProgress_Tests-dummy.m"; sourceTree = ""; }; 56 | 6764D256FA40443F9A0DEBBDAD89F7B6 /* Pods_JDSwiftAvatarProgress_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_JDSwiftAvatarProgress_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 896283E1CBF9FF63EE37919ECD10B197 /* JDSwiftAvatarProgress-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JDSwiftAvatarProgress-prefix.pch"; sourceTree = ""; }; 58 | 8BFF0ACCC9A528495E2644D4550FCC4A /* JDSwiftAvatarProgress.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JDSwiftAvatarProgress.xcconfig; sourceTree = ""; }; 59 | 8D6C7F0E50DD0A9E1E3461EC5902918F /* Pods-JDSwiftAvatarProgress_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-JDSwiftAvatarProgress_Tests.modulemap"; sourceTree = ""; }; 60 | 91413329813FA6FE5A78842159E69621 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 61 | A12BFBE701882217D62071B86EBDAB98 /* Pods-JDSwiftAvatarProgress_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-JDSwiftAvatarProgress_Tests-frameworks.sh"; sourceTree = ""; }; 62 | A8D2620615130E6F160C3D403D951C8C /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig"; sourceTree = ""; }; 63 | B75BDA06720D2CD7BAC8A6E86274BA47 /* JDSwiftAvatarProgress.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = JDSwiftAvatarProgress.modulemap; sourceTree = ""; }; 64 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 65 | BBD817F1188959AECA737768303B6DA7 /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JDSwiftAvatarProgress_Tests.release.xcconfig"; sourceTree = ""; }; 66 | BD06FA1244AFF124CD1B7D4068A22465 /* JDSwiftAvatarProgress-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "JDSwiftAvatarProgress-dummy.m"; sourceTree = ""; }; 67 | C29305B57F21064F1DA59A5CB1B56DDD /* Pods-JDSwiftAvatarProgress_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-JDSwiftAvatarProgress_Example-acknowledgements.markdown"; sourceTree = ""; }; 68 | CEA03A058E353EDDAA36C5BE2517D2CC /* JDSwiftAvatarProgress.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JDSwiftAvatarProgress.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 69 | D9DE615671731BF3AEFB3CB1F984FA8F /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 70 | E09A3131711E037C807AEE3063F42145 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-JDSwiftAvatarProgress_Example.release.xcconfig"; sourceTree = ""; }; 71 | E642B1A057ADA2ABEF90BE2417F349C1 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/Library/Frameworks/QuartzCore.framework; sourceTree = DEVELOPER_DIR; }; 72 | F56B4C86C3FBEF175F7CC695FA0EDE95 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | F8613D3A7A93A05DF9AAC75442081870 /* Pods-JDSwiftAvatarProgress_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-JDSwiftAvatarProgress_Tests-acknowledgements.plist"; sourceTree = ""; }; 74 | F892C26E4C7B116F93BFD15DB123DA9D /* Pods-JDSwiftAvatarProgress_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-JDSwiftAvatarProgress_Example.modulemap"; sourceTree = ""; }; 75 | FB019D40C30BF00FA0B88508B9AC7DD5 /* Pods-JDSwiftAvatarProgress_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-JDSwiftAvatarProgress_Example-umbrella.h"; sourceTree = ""; }; 76 | /* End PBXFileReference section */ 77 | 78 | /* Begin PBXFrameworksBuildPhase section */ 79 | 1A8CBAE50B5E7604C59765E6628B972D /* Frameworks */ = { 80 | isa = PBXFrameworksBuildPhase; 81 | buildActionMask = 2147483647; 82 | files = ( 83 | C4D0C765AE676CBDD09D74CC4CEDB4C0 /* Foundation.framework in Frameworks */, 84 | ); 85 | runOnlyForDeploymentPostprocessing = 0; 86 | }; 87 | 1DB0C7FB0665FDF8A018F277A11C6CAE /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | 83D08DED694D83792BD1E1761BFC30EB /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | DB84331A1107B5E7491088FC73D8EEEC /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | 96413AEADA4DC87344B6A110075CE703 /* Foundation.framework in Frameworks */, 100 | 29C333E4DC6B14F95F340DD1B7095302 /* QuartzCore.framework in Frameworks */, 101 | 2A81475CD1A89857918568EE5AE2AB56 /* UIKit.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 017618062DA3BEF03138E14EC29A519E /* Pods-JDSwiftAvatarProgress_Example */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | F56B4C86C3FBEF175F7CC695FA0EDE95 /* Info.plist */, 112 | F892C26E4C7B116F93BFD15DB123DA9D /* Pods-JDSwiftAvatarProgress_Example.modulemap */, 113 | C29305B57F21064F1DA59A5CB1B56DDD /* Pods-JDSwiftAvatarProgress_Example-acknowledgements.markdown */, 114 | 25B927E9301BAC3D49BE8132AC7B1501 /* Pods-JDSwiftAvatarProgress_Example-acknowledgements.plist */, 115 | 20CAC4CB3A8D7DEFE783CC437A836EEA /* Pods-JDSwiftAvatarProgress_Example-dummy.m */, 116 | 2D289286EC97565187F40C77562854F6 /* Pods-JDSwiftAvatarProgress_Example-frameworks.sh */, 117 | 04CAC5713E6128D655F148C00FBEDC74 /* Pods-JDSwiftAvatarProgress_Example-resources.sh */, 118 | FB019D40C30BF00FA0B88508B9AC7DD5 /* Pods-JDSwiftAvatarProgress_Example-umbrella.h */, 119 | 338400209D307EB26E331229F4ABB3A2 /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */, 120 | E09A3131711E037C807AEE3063F42145 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */, 121 | ); 122 | name = "Pods-JDSwiftAvatarProgress_Example"; 123 | path = "Target Support Files/Pods-JDSwiftAvatarProgress_Example"; 124 | sourceTree = ""; 125 | }; 126 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | DA23025FEDA7F7FE2AACB2532BD80D14 /* iOS */, 130 | ); 131 | name = Frameworks; 132 | sourceTree = ""; 133 | }; 134 | 219718A96BEB0FFA09ED3C652D8F3934 /* Products */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | CEA03A058E353EDDAA36C5BE2517D2CC /* JDSwiftAvatarProgress.framework */, 138 | 57A5075BF4A6F47286592CA62C30921D /* Pods_JDSwiftAvatarProgress_Example.framework */, 139 | 6764D256FA40443F9A0DEBBDAD89F7B6 /* Pods_JDSwiftAvatarProgress_Tests.framework */, 140 | ); 141 | name = Products; 142 | sourceTree = ""; 143 | }; 144 | 337B72A34D012835E96A6EA29E9391B9 /* Development Pods */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 718F5AA4C405914367673E912717F6C6 /* JDSwiftAvatarProgress */, 148 | ); 149 | name = "Development Pods"; 150 | sourceTree = ""; 151 | }; 152 | 3EE3FE5B51D829E5DD80F46D078C33D9 /* Pods-JDSwiftAvatarProgress_Tests */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 1344391AFC16A6EA799082EAB1FB3C7D /* Info.plist */, 156 | 8D6C7F0E50DD0A9E1E3461EC5902918F /* Pods-JDSwiftAvatarProgress_Tests.modulemap */, 157 | 381B0E52DA7B7D0E7F3EABDEBF1541FE /* Pods-JDSwiftAvatarProgress_Tests-acknowledgements.markdown */, 158 | F8613D3A7A93A05DF9AAC75442081870 /* Pods-JDSwiftAvatarProgress_Tests-acknowledgements.plist */, 159 | 5D4C6F4A313DB5B83DF680FCB91129CF /* Pods-JDSwiftAvatarProgress_Tests-dummy.m */, 160 | A12BFBE701882217D62071B86EBDAB98 /* Pods-JDSwiftAvatarProgress_Tests-frameworks.sh */, 161 | 004E9FD45BE6566202BE172104A95C7C /* Pods-JDSwiftAvatarProgress_Tests-resources.sh */, 162 | 09BF9F76157DBA5A9F83006271AD1C9C /* Pods-JDSwiftAvatarProgress_Tests-umbrella.h */, 163 | A8D2620615130E6F160C3D403D951C8C /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */, 164 | BBD817F1188959AECA737768303B6DA7 /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */, 165 | ); 166 | name = "Pods-JDSwiftAvatarProgress_Tests"; 167 | path = "Target Support Files/Pods-JDSwiftAvatarProgress_Tests"; 168 | sourceTree = ""; 169 | }; 170 | 718F5AA4C405914367673E912717F6C6 /* JDSwiftAvatarProgress */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | 9EEDCD34BE216633CEBBF1B6EEDC24F7 /* Pod */, 174 | 7E504E3C6382D17C33B84AF5DB40DAC2 /* Support Files */, 175 | ); 176 | name = JDSwiftAvatarProgress; 177 | path = ../..; 178 | sourceTree = ""; 179 | }; 180 | 7DB346D0F39D3F0E887471402A8071AB = { 181 | isa = PBXGroup; 182 | children = ( 183 | BA6428E9F66FD5A23C0A2E06ED26CD2F /* Podfile */, 184 | 337B72A34D012835E96A6EA29E9391B9 /* Development Pods */, 185 | 122DA2E5084A4393C29BE363C764795C /* Frameworks */, 186 | 219718A96BEB0FFA09ED3C652D8F3934 /* Products */, 187 | D35CF3A31056EDA78294CFDA5ACB137A /* Targets Support Files */, 188 | ); 189 | sourceTree = ""; 190 | }; 191 | 7E504E3C6382D17C33B84AF5DB40DAC2 /* Support Files */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 222DFF8602DA35CA6FF11234DC312541 /* Info.plist */, 195 | B75BDA06720D2CD7BAC8A6E86274BA47 /* JDSwiftAvatarProgress.modulemap */, 196 | 8BFF0ACCC9A528495E2644D4550FCC4A /* JDSwiftAvatarProgress.xcconfig */, 197 | BD06FA1244AFF124CD1B7D4068A22465 /* JDSwiftAvatarProgress-dummy.m */, 198 | 896283E1CBF9FF63EE37919ECD10B197 /* JDSwiftAvatarProgress-prefix.pch */, 199 | 03771FD47C614037829DE64A0F1D0696 /* JDSwiftAvatarProgress-umbrella.h */, 200 | ); 201 | name = "Support Files"; 202 | path = "Example/Pods/Target Support Files/JDSwiftAvatarProgress"; 203 | sourceTree = ""; 204 | }; 205 | 9EEDCD34BE216633CEBBF1B6EEDC24F7 /* Pod */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | A728CD7D3ABCB8D288F732513FC5D235 /* Classes */, 209 | ); 210 | path = Pod; 211 | sourceTree = ""; 212 | }; 213 | A728CD7D3ABCB8D288F732513FC5D235 /* Classes */ = { 214 | isa = PBXGroup; 215 | children = ( 216 | 3E45A2220E2B475CB6C36F65807BA935 /* JDAvatarProgress.swift */, 217 | ); 218 | path = Classes; 219 | sourceTree = ""; 220 | }; 221 | D35CF3A31056EDA78294CFDA5ACB137A /* Targets Support Files */ = { 222 | isa = PBXGroup; 223 | children = ( 224 | 017618062DA3BEF03138E14EC29A519E /* Pods-JDSwiftAvatarProgress_Example */, 225 | 3EE3FE5B51D829E5DD80F46D078C33D9 /* Pods-JDSwiftAvatarProgress_Tests */, 226 | ); 227 | name = "Targets Support Files"; 228 | sourceTree = ""; 229 | }; 230 | DA23025FEDA7F7FE2AACB2532BD80D14 /* iOS */ = { 231 | isa = PBXGroup; 232 | children = ( 233 | 91413329813FA6FE5A78842159E69621 /* Foundation.framework */, 234 | E642B1A057ADA2ABEF90BE2417F349C1 /* QuartzCore.framework */, 235 | D9DE615671731BF3AEFB3CB1F984FA8F /* UIKit.framework */, 236 | ); 237 | name = iOS; 238 | sourceTree = ""; 239 | }; 240 | /* End PBXGroup section */ 241 | 242 | /* Begin PBXHeadersBuildPhase section */ 243 | 14AF559E4A733910C317EBF750E84216 /* Headers */ = { 244 | isa = PBXHeadersBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | 6397E0FF12C449F82A08522970B2CAC3 /* Pods-JDSwiftAvatarProgress_Tests-umbrella.h in Headers */, 248 | ); 249 | runOnlyForDeploymentPostprocessing = 0; 250 | }; 251 | 8C5511BD1085E0F7D56A6450521BE105 /* Headers */ = { 252 | isa = PBXHeadersBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | 8FECBA3680DD4DCFFADE5F0DD994EECD /* JDSwiftAvatarProgress-umbrella.h in Headers */, 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | C31CA9D94E855015A51129BD8E016FE4 /* Headers */ = { 260 | isa = PBXHeadersBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 8F85CED5BA3DD015E1B38127D134C8FC /* Pods-JDSwiftAvatarProgress_Example-umbrella.h in Headers */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | /* End PBXHeadersBuildPhase section */ 268 | 269 | /* Begin PBXNativeTarget section */ 270 | 4A43FC3C5D71AC7E6132997E1190AC6C /* Pods-JDSwiftAvatarProgress_Example */ = { 271 | isa = PBXNativeTarget; 272 | buildConfigurationList = DD63D98A7B4524E729D6DF59F06B5665 /* Build configuration list for PBXNativeTarget "Pods-JDSwiftAvatarProgress_Example" */; 273 | buildPhases = ( 274 | 531D597ECCB0E0690DE7D329A7394B60 /* Sources */, 275 | 1A8CBAE50B5E7604C59765E6628B972D /* Frameworks */, 276 | C31CA9D94E855015A51129BD8E016FE4 /* Headers */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | 839E91C8573D5474575D9E24524464CC /* PBXTargetDependency */, 282 | ); 283 | name = "Pods-JDSwiftAvatarProgress_Example"; 284 | productName = "Pods-JDSwiftAvatarProgress_Example"; 285 | productReference = 57A5075BF4A6F47286592CA62C30921D /* Pods_JDSwiftAvatarProgress_Example.framework */; 286 | productType = "com.apple.product-type.framework"; 287 | }; 288 | 5902DA966FFA07724584297D19400B8E /* Pods-JDSwiftAvatarProgress_Tests */ = { 289 | isa = PBXNativeTarget; 290 | buildConfigurationList = C17A6083BF256F3BADC4E57C549AD11E /* Build configuration list for PBXNativeTarget "Pods-JDSwiftAvatarProgress_Tests" */; 291 | buildPhases = ( 292 | 1D8173BAFA85CDA448C4E54BBFA5D970 /* Sources */, 293 | 1DB0C7FB0665FDF8A018F277A11C6CAE /* Frameworks */, 294 | 14AF559E4A733910C317EBF750E84216 /* Headers */, 295 | ); 296 | buildRules = ( 297 | ); 298 | dependencies = ( 299 | DD05A1A4B5CE10A78A8FE9DAA1085C67 /* PBXTargetDependency */, 300 | ); 301 | name = "Pods-JDSwiftAvatarProgress_Tests"; 302 | productName = "Pods-JDSwiftAvatarProgress_Tests"; 303 | productReference = 6764D256FA40443F9A0DEBBDAD89F7B6 /* Pods_JDSwiftAvatarProgress_Tests.framework */; 304 | productType = "com.apple.product-type.framework"; 305 | }; 306 | AEEA7610A1EF343ACCF69DDE456C1DF8 /* JDSwiftAvatarProgress */ = { 307 | isa = PBXNativeTarget; 308 | buildConfigurationList = EBDBFC630196849C5617AC806DD56041 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress" */; 309 | buildPhases = ( 310 | B4DE2071D120B0F33AF2738C27773E1C /* Sources */, 311 | DB84331A1107B5E7491088FC73D8EEEC /* Frameworks */, 312 | 8C5511BD1085E0F7D56A6450521BE105 /* Headers */, 313 | ); 314 | buildRules = ( 315 | ); 316 | dependencies = ( 317 | ); 318 | name = JDSwiftAvatarProgress; 319 | productName = JDSwiftAvatarProgress; 320 | productReference = CEA03A058E353EDDAA36C5BE2517D2CC /* JDSwiftAvatarProgress.framework */; 321 | productType = "com.apple.product-type.framework"; 322 | }; 323 | /* End PBXNativeTarget section */ 324 | 325 | /* Begin PBXProject section */ 326 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 327 | isa = PBXProject; 328 | attributes = { 329 | LastSwiftUpdateCheck = 0700; 330 | LastUpgradeCheck = 0700; 331 | }; 332 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 333 | compatibilityVersion = "Xcode 3.2"; 334 | developmentRegion = English; 335 | hasScannedForEncodings = 0; 336 | knownRegions = ( 337 | en, 338 | ); 339 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 340 | productRefGroup = 219718A96BEB0FFA09ED3C652D8F3934 /* Products */; 341 | projectDirPath = ""; 342 | projectRoot = ""; 343 | targets = ( 344 | AEEA7610A1EF343ACCF69DDE456C1DF8 /* JDSwiftAvatarProgress */, 345 | 4A43FC3C5D71AC7E6132997E1190AC6C /* Pods-JDSwiftAvatarProgress_Example */, 346 | 5902DA966FFA07724584297D19400B8E /* Pods-JDSwiftAvatarProgress_Tests */, 347 | ); 348 | }; 349 | /* End PBXProject section */ 350 | 351 | /* Begin PBXSourcesBuildPhase section */ 352 | 1D8173BAFA85CDA448C4E54BBFA5D970 /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | 1202CCE6E57A0BB6920D2D7AFF3DE0B3 /* Pods-JDSwiftAvatarProgress_Tests-dummy.m in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | 531D597ECCB0E0690DE7D329A7394B60 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 05F10B8D21F6EE15E12DB96551EC6D22 /* Pods-JDSwiftAvatarProgress_Example-dummy.m in Sources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | B4DE2071D120B0F33AF2738C27773E1C /* Sources */ = { 369 | isa = PBXSourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | 95C18855841C17E290C7AE17EF9504E2 /* JDAvatarProgress.swift in Sources */, 373 | D389999D03FBB1F24CA0BD2F224FF31A /* JDSwiftAvatarProgress-dummy.m in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 839E91C8573D5474575D9E24524464CC /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | name = JDSwiftAvatarProgress; 383 | target = AEEA7610A1EF343ACCF69DDE456C1DF8 /* JDSwiftAvatarProgress */; 384 | targetProxy = 550C8CC4476CA4715CA4B6448377BC0A /* PBXContainerItemProxy */; 385 | }; 386 | DD05A1A4B5CE10A78A8FE9DAA1085C67 /* PBXTargetDependency */ = { 387 | isa = PBXTargetDependency; 388 | name = JDSwiftAvatarProgress; 389 | target = AEEA7610A1EF343ACCF69DDE456C1DF8 /* JDSwiftAvatarProgress */; 390 | targetProxy = 21342FC5043B0C7848B653F2C6D04B33 /* PBXContainerItemProxy */; 391 | }; 392 | /* End PBXTargetDependency section */ 393 | 394 | /* Begin XCBuildConfiguration section */ 395 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */ = { 396 | isa = XCBuildConfiguration; 397 | buildSettings = { 398 | ALWAYS_SEARCH_USER_PATHS = NO; 399 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 400 | CLANG_CXX_LIBRARY = "libc++"; 401 | CLANG_ENABLE_MODULES = YES; 402 | CLANG_ENABLE_OBJC_ARC = YES; 403 | CLANG_WARN_BOOL_CONVERSION = YES; 404 | CLANG_WARN_CONSTANT_CONVERSION = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INT_CONVERSION = YES; 409 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 410 | CLANG_WARN_UNREACHABLE_CODE = YES; 411 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 412 | COPY_PHASE_STRIP = YES; 413 | ENABLE_NS_ASSERTIONS = NO; 414 | GCC_C_LANGUAGE_STANDARD = gnu99; 415 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 416 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 417 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 418 | GCC_WARN_UNDECLARED_SELECTOR = YES; 419 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 420 | GCC_WARN_UNUSED_FUNCTION = YES; 421 | GCC_WARN_UNUSED_VARIABLE = YES; 422 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 423 | STRIP_INSTALLED_PRODUCT = NO; 424 | SYMROOT = "${SRCROOT}/../build"; 425 | VALIDATE_PRODUCT = YES; 426 | }; 427 | name = Release; 428 | }; 429 | 32F1F648F57BEFDF84A5322D267CB57C /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = BBD817F1188959AECA737768303B6DA7 /* Pods-JDSwiftAvatarProgress_Tests.release.xcconfig */; 432 | buildSettings = { 433 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 434 | CURRENT_PROJECT_VERSION = 1; 435 | DEFINES_MODULE = YES; 436 | DYLIB_COMPATIBILITY_VERSION = 1; 437 | DYLIB_CURRENT_VERSION = 1; 438 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 439 | ENABLE_STRICT_OBJC_MSGSEND = YES; 440 | INFOPLIST_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Info.plist"; 441 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 442 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 443 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 444 | MACH_O_TYPE = staticlib; 445 | MODULEMAP_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.modulemap"; 446 | MTL_ENABLE_DEBUG_INFO = NO; 447 | OTHER_LDFLAGS = ""; 448 | OTHER_LIBTOOLFLAGS = ""; 449 | PODS_ROOT = "$(SRCROOT)"; 450 | PRODUCT_NAME = Pods_JDSwiftAvatarProgress_Tests; 451 | SDKROOT = iphoneos; 452 | SKIP_INSTALL = YES; 453 | TARGETED_DEVICE_FAMILY = "1,2"; 454 | VERSIONING_SYSTEM = "apple-generic"; 455 | VERSION_INFO_PREFIX = ""; 456 | }; 457 | name = Release; 458 | }; 459 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */ = { 460 | isa = XCBuildConfiguration; 461 | buildSettings = { 462 | ALWAYS_SEARCH_USER_PATHS = NO; 463 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 464 | CLANG_CXX_LIBRARY = "libc++"; 465 | CLANG_ENABLE_MODULES = YES; 466 | CLANG_ENABLE_OBJC_ARC = YES; 467 | CLANG_WARN_BOOL_CONVERSION = YES; 468 | CLANG_WARN_CONSTANT_CONVERSION = YES; 469 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 470 | CLANG_WARN_EMPTY_BODY = YES; 471 | CLANG_WARN_ENUM_CONVERSION = YES; 472 | CLANG_WARN_INT_CONVERSION = YES; 473 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 474 | CLANG_WARN_UNREACHABLE_CODE = YES; 475 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 476 | COPY_PHASE_STRIP = NO; 477 | GCC_C_LANGUAGE_STANDARD = gnu99; 478 | GCC_DYNAMIC_NO_PIC = NO; 479 | GCC_OPTIMIZATION_LEVEL = 0; 480 | GCC_PREPROCESSOR_DEFINITIONS = ( 481 | "DEBUG=1", 482 | "$(inherited)", 483 | ); 484 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 485 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 486 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 487 | GCC_WARN_UNDECLARED_SELECTOR = YES; 488 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 489 | GCC_WARN_UNUSED_FUNCTION = YES; 490 | GCC_WARN_UNUSED_VARIABLE = YES; 491 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 492 | ONLY_ACTIVE_ARCH = YES; 493 | STRIP_INSTALLED_PRODUCT = NO; 494 | SYMROOT = "${SRCROOT}/../build"; 495 | }; 496 | name = Debug; 497 | }; 498 | 57355C3C7E3C24DB5786CBFE7C0B2627 /* Debug */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = 8BFF0ACCC9A528495E2644D4550FCC4A /* JDSwiftAvatarProgress.xcconfig */; 501 | buildSettings = { 502 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 503 | CURRENT_PROJECT_VERSION = 1; 504 | DEFINES_MODULE = YES; 505 | DYLIB_COMPATIBILITY_VERSION = 1; 506 | DYLIB_CURRENT_VERSION = 1; 507 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 508 | ENABLE_STRICT_OBJC_MSGSEND = YES; 509 | GCC_PREFIX_HEADER = "Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress-prefix.pch"; 510 | INFOPLIST_FILE = "Target Support Files/JDSwiftAvatarProgress/Info.plist"; 511 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 512 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 514 | MODULEMAP_FILE = "Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress.modulemap"; 515 | MTL_ENABLE_DEBUG_INFO = YES; 516 | PRODUCT_NAME = JDSwiftAvatarProgress; 517 | SDKROOT = iphoneos; 518 | SKIP_INSTALL = YES; 519 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 520 | TARGETED_DEVICE_FAMILY = "1,2"; 521 | VERSIONING_SYSTEM = "apple-generic"; 522 | VERSION_INFO_PREFIX = ""; 523 | }; 524 | name = Debug; 525 | }; 526 | 608BB21D09C37311A080C59ED5312F5D /* Release */ = { 527 | isa = XCBuildConfiguration; 528 | baseConfigurationReference = E09A3131711E037C807AEE3063F42145 /* Pods-JDSwiftAvatarProgress_Example.release.xcconfig */; 529 | buildSettings = { 530 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 531 | CURRENT_PROJECT_VERSION = 1; 532 | DEFINES_MODULE = YES; 533 | DYLIB_COMPATIBILITY_VERSION = 1; 534 | DYLIB_CURRENT_VERSION = 1; 535 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 536 | ENABLE_STRICT_OBJC_MSGSEND = YES; 537 | INFOPLIST_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Example/Info.plist"; 538 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 539 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 541 | MACH_O_TYPE = staticlib; 542 | MODULEMAP_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.modulemap"; 543 | MTL_ENABLE_DEBUG_INFO = NO; 544 | OTHER_LDFLAGS = ""; 545 | OTHER_LIBTOOLFLAGS = ""; 546 | PODS_ROOT = "$(SRCROOT)"; 547 | PRODUCT_NAME = Pods_JDSwiftAvatarProgress_Example; 548 | SDKROOT = iphoneos; 549 | SKIP_INSTALL = YES; 550 | TARGETED_DEVICE_FAMILY = "1,2"; 551 | VERSIONING_SYSTEM = "apple-generic"; 552 | VERSION_INFO_PREFIX = ""; 553 | }; 554 | name = Release; 555 | }; 556 | 725FED8A9FF2055FB9C05B5F6B13620B /* Debug */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = A8D2620615130E6F160C3D403D951C8C /* Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig */; 559 | buildSettings = { 560 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 561 | CURRENT_PROJECT_VERSION = 1; 562 | DEFINES_MODULE = YES; 563 | DYLIB_COMPATIBILITY_VERSION = 1; 564 | DYLIB_CURRENT_VERSION = 1; 565 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 566 | ENABLE_STRICT_OBJC_MSGSEND = YES; 567 | INFOPLIST_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Info.plist"; 568 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 569 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 570 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 571 | MACH_O_TYPE = staticlib; 572 | MODULEMAP_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.modulemap"; 573 | MTL_ENABLE_DEBUG_INFO = YES; 574 | OTHER_LDFLAGS = ""; 575 | OTHER_LIBTOOLFLAGS = ""; 576 | PODS_ROOT = "$(SRCROOT)"; 577 | PRODUCT_NAME = Pods_JDSwiftAvatarProgress_Tests; 578 | SDKROOT = iphoneos; 579 | SKIP_INSTALL = YES; 580 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 581 | TARGETED_DEVICE_FAMILY = "1,2"; 582 | VERSIONING_SYSTEM = "apple-generic"; 583 | VERSION_INFO_PREFIX = ""; 584 | }; 585 | name = Debug; 586 | }; 587 | 9CECEE30BA757921AE095356B8A48573 /* Debug */ = { 588 | isa = XCBuildConfiguration; 589 | baseConfigurationReference = 338400209D307EB26E331229F4ABB3A2 /* Pods-JDSwiftAvatarProgress_Example.debug.xcconfig */; 590 | buildSettings = { 591 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 592 | CURRENT_PROJECT_VERSION = 1; 593 | DEFINES_MODULE = YES; 594 | DYLIB_COMPATIBILITY_VERSION = 1; 595 | DYLIB_CURRENT_VERSION = 1; 596 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 597 | ENABLE_STRICT_OBJC_MSGSEND = YES; 598 | INFOPLIST_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Example/Info.plist"; 599 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 600 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 601 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 602 | MACH_O_TYPE = staticlib; 603 | MODULEMAP_FILE = "Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.modulemap"; 604 | MTL_ENABLE_DEBUG_INFO = YES; 605 | OTHER_LDFLAGS = ""; 606 | OTHER_LIBTOOLFLAGS = ""; 607 | PODS_ROOT = "$(SRCROOT)"; 608 | PRODUCT_NAME = Pods_JDSwiftAvatarProgress_Example; 609 | SDKROOT = iphoneos; 610 | SKIP_INSTALL = YES; 611 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 612 | TARGETED_DEVICE_FAMILY = "1,2"; 613 | VERSIONING_SYSTEM = "apple-generic"; 614 | VERSION_INFO_PREFIX = ""; 615 | }; 616 | name = Debug; 617 | }; 618 | CA47D70B3F1DF0B10963637CFEE80C9F /* Release */ = { 619 | isa = XCBuildConfiguration; 620 | baseConfigurationReference = 8BFF0ACCC9A528495E2644D4550FCC4A /* JDSwiftAvatarProgress.xcconfig */; 621 | buildSettings = { 622 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 623 | CURRENT_PROJECT_VERSION = 1; 624 | DEFINES_MODULE = YES; 625 | DYLIB_COMPATIBILITY_VERSION = 1; 626 | DYLIB_CURRENT_VERSION = 1; 627 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 628 | ENABLE_STRICT_OBJC_MSGSEND = YES; 629 | GCC_PREFIX_HEADER = "Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress-prefix.pch"; 630 | INFOPLIST_FILE = "Target Support Files/JDSwiftAvatarProgress/Info.plist"; 631 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 632 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 633 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 634 | MODULEMAP_FILE = "Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress.modulemap"; 635 | MTL_ENABLE_DEBUG_INFO = NO; 636 | PRODUCT_NAME = JDSwiftAvatarProgress; 637 | SDKROOT = iphoneos; 638 | SKIP_INSTALL = YES; 639 | TARGETED_DEVICE_FAMILY = "1,2"; 640 | VERSIONING_SYSTEM = "apple-generic"; 641 | VERSION_INFO_PREFIX = ""; 642 | }; 643 | name = Release; 644 | }; 645 | /* End XCBuildConfiguration section */ 646 | 647 | /* Begin XCConfigurationList section */ 648 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 649 | isa = XCConfigurationList; 650 | buildConfigurations = ( 651 | 552D02D5BA751AC2E8790D2811D496CA /* Debug */, 652 | 10DE1947DAC0ED28F6C0A9F9BD75D546 /* Release */, 653 | ); 654 | defaultConfigurationIsVisible = 0; 655 | defaultConfigurationName = Release; 656 | }; 657 | C17A6083BF256F3BADC4E57C549AD11E /* Build configuration list for PBXNativeTarget "Pods-JDSwiftAvatarProgress_Tests" */ = { 658 | isa = XCConfigurationList; 659 | buildConfigurations = ( 660 | 725FED8A9FF2055FB9C05B5F6B13620B /* Debug */, 661 | 32F1F648F57BEFDF84A5322D267CB57C /* Release */, 662 | ); 663 | defaultConfigurationIsVisible = 0; 664 | defaultConfigurationName = Release; 665 | }; 666 | DD63D98A7B4524E729D6DF59F06B5665 /* Build configuration list for PBXNativeTarget "Pods-JDSwiftAvatarProgress_Example" */ = { 667 | isa = XCConfigurationList; 668 | buildConfigurations = ( 669 | 9CECEE30BA757921AE095356B8A48573 /* Debug */, 670 | 608BB21D09C37311A080C59ED5312F5D /* Release */, 671 | ); 672 | defaultConfigurationIsVisible = 0; 673 | defaultConfigurationName = Release; 674 | }; 675 | EBDBFC630196849C5617AC806DD56041 /* Build configuration list for PBXNativeTarget "JDSwiftAvatarProgress" */ = { 676 | isa = XCConfigurationList; 677 | buildConfigurations = ( 678 | 57355C3C7E3C24DB5786CBFE7C0B2627 /* Debug */, 679 | CA47D70B3F1DF0B10963637CFEE80C9F /* Release */, 680 | ); 681 | defaultConfigurationIsVisible = 0; 682 | defaultConfigurationName = Release; 683 | }; 684 | /* End XCConfigurationList section */ 685 | }; 686 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 687 | } 688 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/JDSwiftAvatarProgress.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.3 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_JDSwiftAvatarProgress : NSObject 3 | @end 4 | @implementation PodsDummy_JDSwiftAvatarProgress 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double JDSwiftAvatarProgressVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char JDSwiftAvatarProgressVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress.modulemap: -------------------------------------------------------------------------------- 1 | framework module JDSwiftAvatarProgress { 2 | umbrella header "JDSwiftAvatarProgress-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JDSwiftAvatarProgress/JDSwiftAvatarProgress.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/JDSwiftAvatarProgress" "${PODS_ROOT}/Headers/Public" 3 | OTHER_LDFLAGS = -framework "QuartzCore" -framework "UIKit" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_ROOT = ${SRCROOT} 6 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## JDSwiftAvatarProgress 5 | 6 | Copyright (c) 2015 David López 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-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 | Copyright (c) 2015 David López <david.lopez@thinksmart.es> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | JDSwiftAvatarProgress 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_JDSwiftAvatarProgress_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_JDSwiftAvatarProgress_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-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="${CONFIGURATION_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} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --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 "Pods-JDSwiftAvatarProgress_Example/JDSwiftAvatarProgress.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-JDSwiftAvatarProgress_Example/JDSwiftAvatarProgress.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_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 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_JDSwiftAvatarProgress_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_JDSwiftAvatarProgress_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/JDSwiftAvatarProgress.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "JDSwiftAvatarProgress" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-JDSwiftAvatarProgress_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_JDSwiftAvatarProgress_Example { 2 | umbrella header "Pods-JDSwiftAvatarProgress_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Example/Pods-JDSwiftAvatarProgress_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/JDSwiftAvatarProgress.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "JDSwiftAvatarProgress" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-JDSwiftAvatarProgress_Example 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 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 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## JDSwiftAvatarProgress 5 | 6 | Copyright (c) 2015 David López 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-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 | Copyright (c) 2015 David López <david.lopez@thinksmart.es> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | JDSwiftAvatarProgress 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_JDSwiftAvatarProgress_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_JDSwiftAvatarProgress_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-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="${CONFIGURATION_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} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --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 "Pods-JDSwiftAvatarProgress_Tests/JDSwiftAvatarProgress.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "Pods-JDSwiftAvatarProgress_Tests/JDSwiftAvatarProgress.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_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 | realpath() { 12 | DIRECTORY="$(cd "${1%/*}" && pwd)" 13 | FILENAME="${1##*/}" 14 | echo "$DIRECTORY/$FILENAME" 15 | } 16 | 17 | install_resource() 18 | { 19 | case $1 in 20 | *.storyboard) 21 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 22 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 23 | ;; 24 | *.xib) 25 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 26 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 27 | ;; 28 | *.framework) 29 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 30 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 31 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 32 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 33 | ;; 34 | *.xcdatamodel) 35 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 36 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 37 | ;; 38 | *.xcdatamodeld) 39 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 40 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 41 | ;; 42 | *.xcmappingmodel) 43 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 44 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 45 | ;; 46 | *.xcassets) 47 | ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1") 48 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 49 | ;; 50 | /*) 51 | echo "$1" 52 | echo "$1" >> "$RESOURCES_TO_COPY" 53 | ;; 54 | *) 55 | echo "${PODS_ROOT}/$1" 56 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 57 | ;; 58 | esac 59 | } 60 | 61 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 62 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 63 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 64 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 65 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 66 | fi 67 | rm -f "$RESOURCES_TO_COPY" 68 | 69 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 70 | then 71 | case "${TARGETED_DEVICE_FAMILY}" in 72 | 1,2) 73 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 74 | ;; 75 | 1) 76 | TARGET_DEVICE_ARGS="--target-device iphone" 77 | ;; 78 | 2) 79 | TARGET_DEVICE_ARGS="--target-device ipad" 80 | ;; 81 | *) 82 | TARGET_DEVICE_ARGS="--target-device mac" 83 | ;; 84 | esac 85 | 86 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 87 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 88 | while read line; do 89 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 90 | XCASSET_FILES+=("$line") 91 | fi 92 | done <<<"$OTHER_XCASSETS" 93 | 94 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 95 | fi 96 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_JDSwiftAvatarProgress_TestsVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_JDSwiftAvatarProgress_TestsVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/JDSwiftAvatarProgress.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "JDSwiftAvatarProgress" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-JDSwiftAvatarProgress_Tests 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_JDSwiftAvatarProgress_Tests { 2 | umbrella header "Pods-JDSwiftAvatarProgress_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-JDSwiftAvatarProgress_Tests/Pods-JDSwiftAvatarProgress_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/JDSwiftAvatarProgress.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "JDSwiftAvatarProgress" 6 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 7 | PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-JDSwiftAvatarProgress_Tests 8 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Tests/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 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import JDSwiftAvatarProgress 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measureBlock() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /JDSwiftAvatarProgress.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint JDSwiftAvatarProgress.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = "JDSwiftAvatarProgress" 11 | s.version = "1.0.3" 12 | s.summary = "Easy customizable round avatar, a derived UIImageView class, load asynchronously the image with optional border and progress bar animated." 13 | s.description = "Easy customizable round avatar, a derived UIImageView class, load asynchronously the image with optional border and progress bar animated. Perfect to use in the profile section in your apps." 14 | s.homepage = "https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git" 15 | s.license = 'MIT' 16 | s.author = { "David López" => "davidlcarrascal@gmail.com" } 17 | s.source = { :git => "https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git", :tag => s.version.to_s } 18 | s.social_media_url = 'https://twitter.com/davidlcarrascal' 19 | 20 | s.platform = :ios, '8.0' 21 | s.requires_arc = true 22 | 23 | s.source_files = 'Pod/Classes/**/*' 24 | s.frameworks = 'UIKit', 'QuartzCore' 25 | end 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 David López 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JellyDevelopment/JDSwiftAvatarProgress/3f389375616e5cb7093f7b0318bd1ecbe8c3f545/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JellyDevelopment/JDSwiftAvatarProgress/3f389375616e5cb7093f7b0318bd1ecbe8c3f545/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/JDAvatarProgress.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JDAvatarProgress.swift 3 | // JDAvatarProgress 4 | // 5 | // Created by David López Carrascal on 17/10/15. 6 | // Copyright © 2015 David López Carrascal. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import QuartzCore 11 | 12 | public let JDAvatarDefaultProgressBarLineWidth = 10.0 13 | public let JDAvatarDefaultBorderWidth = 5.0 14 | 15 | 16 | public class JDAvatarProgress: UIImageView, NSURLSessionTaskDelegate, NSURLSessionDownloadDelegate { 17 | 18 | public typealias JDAvatarCompletionBlock = (image: UIImage?, error: NSError?) -> Void 19 | 20 | public var placeholderImage : UIImage!{ 21 | 22 | didSet{ 23 | 24 | self.image = self.placeholderImage 25 | } 26 | } 27 | 28 | public var urlSession : NSURLSession? 29 | 30 | public var downloadTask : NSURLSessionDownloadTask! 31 | public var spinLayer : CAShapeLayer? 32 | public var progress : Double! 33 | public var tickness : Double! 34 | public var completionBlock : JDAvatarCompletionBlock! 35 | 36 | // ----------------------------- 37 | // Customization Progress 38 | // ----------------------------- 39 | 40 | public var progressBarColor : UIColor?{ 41 | 42 | didSet{ 43 | self.setNeedsDisplay() 44 | } 45 | } 46 | 47 | public var progressBarLineWidth : Double!{ 48 | 49 | didSet{ 50 | if self.borderWidth != nil { 51 | 52 | self.progressBarLineWidth = self.progressBarLineWidth! + self.borderWidth! 53 | self.setNeedsDisplay() 54 | } 55 | } 56 | } 57 | 58 | // ----------------------------- 59 | // Customization Border 60 | // ----------------------------- 61 | 62 | public var borderColor : UIColor?{ 63 | 64 | didSet{ 65 | self._drawBorder() 66 | } 67 | } 68 | 69 | public var borderWidth : Double!{ 70 | 71 | didSet{ 72 | self._drawBorder() 73 | } 74 | } 75 | 76 | override public func awakeFromNib() { 77 | self._commonInit() 78 | } 79 | 80 | override public func layoutSubviews() { 81 | 82 | super.layoutSubviews() 83 | 84 | let bounds : CGRect = self.bounds 85 | let outer : CGRect = CGRectInset(self.bounds, CGFloat(self.tickness/2.0), CGFloat(self.tickness/2.0)) 86 | 87 | let outerPath: UIBezierPath = UIBezierPath(arcCenter: CGPointMake(CGRectGetMidX(outer), CGRectGetMidY(outer)), radius: self._radius(), startAngle: CGFloat(-M_PI_2), endAngle: CGFloat(2.0 * M_PI - M_PI_2), clockwise: true) 88 | 89 | self.spinLayer?.path = outerPath.CGPath 90 | self.spinLayer?.frame = bounds 91 | 92 | UIGraphicsBeginImageContextWithOptions(bounds.size, false, UIScreen.mainScreen().scale) 93 | UIGraphicsEndImageContext() 94 | 95 | 96 | } 97 | 98 | public func addBorderWithColor(color: UIColor?, width: Double){ 99 | 100 | if(color != nil){ 101 | 102 | self.borderColor = color 103 | } 104 | 105 | self.borderWidth = width 106 | } 107 | 108 | // MARK: Setters 109 | public func setImageWithURLString(urlString : String){ 110 | 111 | let url = NSURL(string: urlString) 112 | 113 | self.setImageWithURL(url!, placeholder: nil, progressBarColor: nil, progressBarLineWidth: self.progressBarLineWidth, borderColor:nil, borderWidth: self.borderWidth, completion: nil) 114 | } 115 | 116 | public func setImageWithURL(urlImage : NSURL){ 117 | 118 | self.setImageWithURL(urlImage, placeholder: nil, progressBarColor: nil, progressBarLineWidth: self.progressBarLineWidth, borderColor: nil, borderWidth: self.borderWidth, completion: nil) 119 | } 120 | 121 | public func setImageWithURL(urlImage : NSURL, placeholder : UIImage){ 122 | 123 | self.setImageWithURL(urlImage, placeholder: placeholder, progressBarColor: nil, progressBarLineWidth: self.progressBarLineWidth, borderColor: nil, borderWidth: self.borderWidth, completion: nil) 124 | 125 | } 126 | 127 | public func setImageWithURL(urlImage : NSURL, placeholder : UIImage, completion : JDAvatarCompletionBlock ){ 128 | 129 | self.setImageWithURL(urlImage, placeholder: placeholder, progressBarColor: nil, progressBarLineWidth: self.progressBarLineWidth, borderColor: nil, borderWidth: self.borderWidth, completion: completion) 130 | 131 | } 132 | 133 | public func setImageWithURL(urlImage : NSURL, placeholder : UIImage?, progressBarColor: UIColor?, progressBarLineWidth: Double, completion : JDAvatarCompletionBlock? ){ 134 | 135 | self.setImageWithURL(urlImage, placeholder: placeholder, progressBarColor: progressBarColor, progressBarLineWidth: progressBarLineWidth, borderColor: nil, borderWidth: self.borderWidth, completion: completion) 136 | } 137 | 138 | public func setImageWithURL(urlImage : NSURL, placeholder : UIImage?, progressBarColor: UIColor?, progressBarLineWidth: Double, borderColor: UIColor?, borderWidth: Double, completion : JDAvatarCompletionBlock? ){ 139 | 140 | if (self.downloadTask != nil && self.downloadTask.state == NSURLSessionTaskState.Running ){ 141 | 142 | self._dismissProgressBar() 143 | 144 | self.downloadTask.cancelByProducingResumeData({ (data) -> Void in 145 | 146 | self.downloadTask = nil 147 | 148 | dispatch_async(dispatch_get_main_queue(), { () -> Void in 149 | 150 | self.setImageWithURL(urlImage, placeholder: placeholder, progressBarColor: progressBarColor, progressBarLineWidth: progressBarLineWidth, borderColor: borderColor, borderWidth: borderWidth, completion: completion) 151 | 152 | }) 153 | }) 154 | 155 | } else { 156 | 157 | if (placeholder != nil) { 158 | self.placeholderImage = placeholder 159 | } 160 | 161 | if (completion != nil) { 162 | self.completionBlock = completion 163 | } 164 | 165 | if (progressBarColor != nil){ 166 | self.progressBarColor = progressBarColor 167 | } 168 | 169 | if (borderColor != nil) { 170 | 171 | self.borderColor = borderColor 172 | } 173 | 174 | self.progressBarLineWidth = progressBarLineWidth 175 | self.borderWidth = borderWidth 176 | 177 | self.progress = 0.0 178 | self._initalizateProgressBar() 179 | 180 | self.downloadTask = self.urlSession!.downloadTaskWithURL(urlImage) 181 | self.downloadTask.resume() 182 | } 183 | } 184 | 185 | 186 | // MARK: NSURLSession Delegate Methods 187 | public func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) { 188 | 189 | if (error != nil) { 190 | 191 | dispatch_async(dispatch_get_main_queue(), { () -> Void in 192 | 193 | if task.state != NSURLSessionTaskState.Completed { 194 | 195 | self._dismissProgressBar() 196 | } 197 | 198 | if (self.completionBlock != nil ) { 199 | 200 | self.completionBlock(image: nil, error: error) 201 | } 202 | }) 203 | } 204 | 205 | 206 | } 207 | public 208 | func URLSession(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, didWriteData bytesWritten: Int64, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64) { 209 | 210 | 211 | dispatch_async(dispatch_get_main_queue()) { () -> Void in 212 | 213 | let value : Double = Double(totalBytesWritten) / Double(totalBytesExpectedToWrite) 214 | 215 | self._setProgress(value, animated:true) 216 | 217 | } 218 | 219 | } 220 | 221 | public func URLSession(session: NSURLSession, downloadTask: NSURLSessionDownloadTask, didFinishDownloadingToURL location: NSURL) { 222 | 223 | let data : NSData = NSData(contentsOfURL: location)! 224 | let imageObtained : UIImage = UIImage(data: data)! 225 | 226 | dispatch_async(dispatch_get_main_queue()) { () -> Void in 227 | 228 | self._setProgress(1.0, animated: false) 229 | self._dismissProgressBar() 230 | 231 | UIView.transitionWithView(self, duration: 0.3, options: UIViewAnimationOptions.TransitionCrossDissolve, 232 | animations: { () -> Void in 233 | 234 | self.image = imageObtained 235 | 236 | }, 237 | completion: { (finished) -> Void in }) 238 | 239 | if (self.completionBlock != nil) { 240 | 241 | self.completionBlock(image:imageObtained, error: nil) 242 | } 243 | } 244 | } 245 | 246 | 247 | // MARK: Private Methods 248 | 249 | 250 | func _setProgress(progress:Double, animated:Bool){ 251 | 252 | let currentProgress : Double = self.progress 253 | self.progress = Double(progress) 254 | 255 | CATransaction.begin() 256 | 257 | if (animated) { 258 | 259 | let delta : Double = fabs(self.progress - currentProgress) 260 | 261 | CATransaction.setAnimationDuration(max(0.2, delta * 1.0)) 262 | 263 | } else { 264 | 265 | CATransaction.setDisableActions(true) 266 | 267 | } 268 | 269 | //Añadido 270 | if self.spinLayer == nil{ 271 | 272 | self._initalizateProgressBar() 273 | } 274 | 275 | self.spinLayer?.strokeEnd = CGFloat(self.progress) 276 | CATransaction.commit() 277 | 278 | } 279 | 280 | func _dismissProgressBar(){ 281 | 282 | self.spinLayer?.removeFromSuperlayer() 283 | self.spinLayer = nil 284 | } 285 | 286 | func _commonInit(){ 287 | 288 | //self.placeholderImage = UIImage(named: "empty_avatar")! 289 | 290 | self.layer.cornerRadius = CGRectGetWidth(self.frame)/2; 291 | self.layer.masksToBounds = true 292 | 293 | //Default values 294 | self.progressBarColor = UIColor.blueColor() 295 | self.progressBarLineWidth = JDAvatarDefaultProgressBarLineWidth 296 | self.tickness = 1.0 297 | self.borderColor = UIColor(white: 0.9, alpha: 1.0) 298 | self.borderWidth = JDAvatarDefaultBorderWidth 299 | 300 | self.urlSession = NSURLSession(configuration: NSURLSessionConfiguration.defaultSessionConfiguration(), 301 | delegate: self, 302 | delegateQueue: NSOperationQueue.mainQueue()) 303 | 304 | } 305 | 306 | func _radius() -> CGFloat{ 307 | 308 | let r : CGRect = CGRectInset(self.bounds, CGFloat(self.tickness/2.0), CGFloat(self.tickness/2.0)) 309 | let w = r.size.width 310 | let h = r.size.height 311 | 312 | if (w > h) { 313 | 314 | return h / 2.0 315 | } 316 | 317 | return w / 2.0 318 | 319 | } 320 | 321 | func _initalizateProgressBar(){ 322 | 323 | if (self.spinLayer != nil){ 324 | 325 | self._dismissProgressBar() 326 | } 327 | 328 | self.spinLayer = CAShapeLayer(layer: layer) 329 | self.spinLayer!.lineCap = "round" 330 | self.spinLayer!.strokeColor = self.progressBarColor!.CGColor 331 | self.spinLayer!.fillColor = UIColor.clearColor().CGColor 332 | self.spinLayer!.lineWidth = CGFloat(self.progressBarLineWidth!) 333 | self.spinLayer!.strokeEnd = CGFloat(self.progress) 334 | 335 | self.layer.addSublayer(self.spinLayer!) 336 | } 337 | 338 | func _drawBorder(){ 339 | 340 | if (self.borderWidth != nil && self.borderColor != nil) { 341 | 342 | self.layer.borderColor = self.borderColor!.CGColor 343 | self.layer.borderWidth = CGFloat(self.borderWidth) 344 | } 345 | 346 | self.setNeedsDisplay() 347 | } 348 | 349 | 350 | } 351 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JDSwiftAvatarProgress 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress) 4 | [![License](https://img.shields.io/cocoapods/l/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress) 5 | [![Platform](https://img.shields.io/cocoapods/p/JDSwiftAvatarProgress.svg?style=flat)](http://cocoapods.org/pods/JDSwiftAvatarProgress) 6 | 7 | 8 | 9 | ##Objective-C 10 | 11 | JDAvatarProgress is available in Objective-C also, 12 | 13 | [JDAvatarProgress](https://github.com/JellyDevelopment/JDAvatarProgress) 14 | 15 | ## Usage 16 | 17 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 18 | 19 | ## Installation 20 | 21 | JDSwiftAvatarProgress is available through [CocoaPods](http://cocoapods.org). To install 22 | it, simply add the following line to your Podfile: 23 | 24 | ```ruby 25 | pod "JDSwiftAvatarProgress" 26 | ``` 27 | 28 | ### Manual 29 | 30 | Clone the repository: 31 | 32 | ```bash 33 | $ git clone https://github.com/JellyDevelopment/JDSwiftAvatarProgress.git 34 | ``` 35 | 36 | Drag and drop `JDAvatarProgress.swift` file into your project. Add `import JDSwiftAvatarProgress` to all view controllers that need to use it. 37 | 38 | ### Requirements 39 | `QuartzCore.framework` 40 | 41 | ## Sample Usage 42 | 43 | ```swift 44 | 45 | self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!) 46 | 47 | ``` 48 | 49 | ## Advanced Usage 50 | 51 | ```swift 52 | self.avatarImgView.setImageWithURL(NSURL(string: "http://3.bp.blogspot.com/-k-0O0FocJ2I/TyWbextRGlI/AAAAAAAACqo/GuPx0RH7PcY/s1600/Fondo+Pantalla.jpg")!, 53 | placeholder: nil, 54 | progressBarColor: UIColor.orangeColor(), 55 | progressBarLineWidth: JDAvatarDefaultProgressBarLineWidth, 56 | borderColor:nil, 57 | borderWidth: JDAvatarDefaultBorderWidth, 58 | completion: { (image, error) -> Void in 59 | 60 | print("image => \(image)") 61 | print("error => \(error)") 62 | print("------------------") 63 | }) 64 | ``` 65 | 66 | 67 | ## Author 68 | 69 | * [Jelly Development](https://github.com/JellyDevelopment) 70 | * Juanpe Catalán, juanpecm@gmail.com 71 | * David Carrascal, davidlcarrascal@gmail.com 72 | 73 | ## License 74 | 75 | JDSwiftAvatarProgress is available under the MIT license. See the LICENSE file for more info. 76 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------