├── .gitignore ├── .swift-version ├── .travis.yml ├── Example ├── Example.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Example.xcscheme ├── Example.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Example │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── close.imageset │ │ │ ├── Contents.json │ │ │ └── close@2x.png │ │ └── plus.imageset │ │ │ ├── Contents.json │ │ │ └── plus@2x.png │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── JTMaterialSpinner.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── JTMaterialSpinner │ ├── Info.plist │ ├── JTMaterialSpinner-dummy.m │ ├── JTMaterialSpinner-prefix.pch │ ├── JTMaterialSpinner-umbrella.h │ ├── JTMaterialSpinner.modulemap │ └── JTMaterialSpinner.xcconfig │ └── Pods-Example │ ├── Info.plist │ ├── Pods-Example-acknowledgements.markdown │ ├── Pods-Example-acknowledgements.plist │ ├── Pods-Example-dummy.m │ ├── Pods-Example-frameworks.sh │ ├── Pods-Example-resources.sh │ ├── Pods-Example-umbrella.h │ ├── Pods-Example.debug.xcconfig │ ├── Pods-Example.modulemap │ └── Pods-Example.release.xcconfig ├── JTMaterialSpinner.podspec ├── JTMaterialSpinner └── JTMaterialSpinner.swift ├── LICENSE ├── Package.swift ├── README.md └── Screens └── example.gif /.gitignore: -------------------------------------------------------------------------------- 1 | # Mac OS 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.2 -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: swift 2 | xcode_workspace: Example/Example.xcworkspace 3 | xcode_scheme: Example 4 | xcode_sdk: iphonesimulator 5 | env: CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=NO 6 | notifications: 7 | email: false -------------------------------------------------------------------------------- /Example/Example.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0801FA348A84241FE45F88F8 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C81AA1F00B2367A5C3D8B7B4 /* Pods_Example.framework */; }; 11 | AB459A511DD48A39001E6F2E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB459A501DD48A39001E6F2E /* AppDelegate.swift */; }; 12 | AB459A531DD48A39001E6F2E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB459A521DD48A39001E6F2E /* ViewController.swift */; }; 13 | AB459A561DD48A39001E6F2E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AB459A541DD48A39001E6F2E /* Main.storyboard */; }; 14 | AB459A581DD48A39001E6F2E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AB459A571DD48A39001E6F2E /* Assets.xcassets */; }; 15 | AB459A5B1DD48A39001E6F2E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AB459A591DD48A39001E6F2E /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 6BA42D5F80CDBEE43C055866 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig"; sourceTree = ""; }; 20 | 91D437DB3E3BFA1F9F652472 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig"; sourceTree = ""; }; 21 | AB459A4D1DD48A39001E6F2E /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | AB459A501DD48A39001E6F2E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 23 | AB459A521DD48A39001E6F2E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 24 | AB459A551DD48A39001E6F2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | AB459A571DD48A39001E6F2E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 26 | AB459A5A1DD48A39001E6F2E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 27 | AB459A5C1DD48A39001E6F2E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | C81AA1F00B2367A5C3D8B7B4 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | AB459A4A1DD48A38001E6F2E /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | 0801FA348A84241FE45F88F8 /* Pods_Example.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 4E3BEA01E5B70AC0462E4895 /* Pods */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | 6BA42D5F80CDBEE43C055866 /* Pods-Example.debug.xcconfig */, 47 | 91D437DB3E3BFA1F9F652472 /* Pods-Example.release.xcconfig */, 48 | ); 49 | name = Pods; 50 | sourceTree = ""; 51 | }; 52 | 936E5313F6B9E981CBCEC21C /* Frameworks */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | C81AA1F00B2367A5C3D8B7B4 /* Pods_Example.framework */, 56 | ); 57 | name = Frameworks; 58 | sourceTree = ""; 59 | }; 60 | AB459A441DD48A38001E6F2E = { 61 | isa = PBXGroup; 62 | children = ( 63 | AB459A4F1DD48A39001E6F2E /* Example */, 64 | AB459A4E1DD48A39001E6F2E /* Products */, 65 | 4E3BEA01E5B70AC0462E4895 /* Pods */, 66 | 936E5313F6B9E981CBCEC21C /* Frameworks */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | AB459A4E1DD48A39001E6F2E /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | AB459A4D1DD48A39001E6F2E /* Example.app */, 74 | ); 75 | name = Products; 76 | sourceTree = ""; 77 | }; 78 | AB459A4F1DD48A39001E6F2E /* Example */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | AB459A501DD48A39001E6F2E /* AppDelegate.swift */, 82 | AB459A521DD48A39001E6F2E /* ViewController.swift */, 83 | AB459A541DD48A39001E6F2E /* Main.storyboard */, 84 | AB459A571DD48A39001E6F2E /* Assets.xcassets */, 85 | AB459A591DD48A39001E6F2E /* LaunchScreen.storyboard */, 86 | AB459A5C1DD48A39001E6F2E /* Info.plist */, 87 | ); 88 | path = Example; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | AB459A4C1DD48A38001E6F2E /* Example */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = AB459A5F1DD48A39001E6F2E /* Build configuration list for PBXNativeTarget "Example" */; 97 | buildPhases = ( 98 | 98D52AE99A0A48F5C0668A87 /* [CP] Check Pods Manifest.lock */, 99 | AB459A491DD48A38001E6F2E /* Sources */, 100 | AB459A4A1DD48A38001E6F2E /* Frameworks */, 101 | AB459A4B1DD48A38001E6F2E /* Resources */, 102 | 1B1925B1B83494A17D1652B1 /* [CP] Embed Pods Frameworks */, 103 | ); 104 | buildRules = ( 105 | ); 106 | dependencies = ( 107 | ); 108 | name = Example; 109 | productName = Example; 110 | productReference = AB459A4D1DD48A39001E6F2E /* Example.app */; 111 | productType = "com.apple.product-type.application"; 112 | }; 113 | /* End PBXNativeTarget section */ 114 | 115 | /* Begin PBXProject section */ 116 | AB459A451DD48A38001E6F2E /* Project object */ = { 117 | isa = PBXProject; 118 | attributes = { 119 | LastSwiftUpdateCheck = 0810; 120 | LastUpgradeCheck = 0810; 121 | ORGANIZATIONNAME = EIVO; 122 | TargetAttributes = { 123 | AB459A4C1DD48A38001E6F2E = { 124 | CreatedOnToolsVersion = 8.1; 125 | DevelopmentTeam = 239CFKQ3YB; 126 | LastSwiftMigration = 1000; 127 | ProvisioningStyle = Automatic; 128 | }; 129 | }; 130 | }; 131 | buildConfigurationList = AB459A481DD48A38001E6F2E /* Build configuration list for PBXProject "Example" */; 132 | compatibilityVersion = "Xcode 3.2"; 133 | developmentRegion = English; 134 | hasScannedForEncodings = 0; 135 | knownRegions = ( 136 | en, 137 | Base, 138 | ); 139 | mainGroup = AB459A441DD48A38001E6F2E; 140 | productRefGroup = AB459A4E1DD48A39001E6F2E /* Products */; 141 | projectDirPath = ""; 142 | projectRoot = ""; 143 | targets = ( 144 | AB459A4C1DD48A38001E6F2E /* Example */, 145 | ); 146 | }; 147 | /* End PBXProject section */ 148 | 149 | /* Begin PBXResourcesBuildPhase section */ 150 | AB459A4B1DD48A38001E6F2E /* Resources */ = { 151 | isa = PBXResourcesBuildPhase; 152 | buildActionMask = 2147483647; 153 | files = ( 154 | AB459A5B1DD48A39001E6F2E /* LaunchScreen.storyboard in Resources */, 155 | AB459A581DD48A39001E6F2E /* Assets.xcassets in Resources */, 156 | AB459A561DD48A39001E6F2E /* Main.storyboard in Resources */, 157 | ); 158 | runOnlyForDeploymentPostprocessing = 0; 159 | }; 160 | /* End PBXResourcesBuildPhase section */ 161 | 162 | /* Begin PBXShellScriptBuildPhase section */ 163 | 1B1925B1B83494A17D1652B1 /* [CP] Embed Pods Frameworks */ = { 164 | isa = PBXShellScriptBuildPhase; 165 | buildActionMask = 2147483647; 166 | files = ( 167 | ); 168 | inputPaths = ( 169 | "${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh", 170 | "${BUILT_PRODUCTS_DIR}/JTMaterialSpinner/JTMaterialSpinner.framework", 171 | ); 172 | name = "[CP] Embed Pods Frameworks"; 173 | outputPaths = ( 174 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/JTMaterialSpinner.framework", 175 | ); 176 | runOnlyForDeploymentPostprocessing = 0; 177 | shellPath = /bin/sh; 178 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n"; 179 | showEnvVarsInLog = 0; 180 | }; 181 | 98D52AE99A0A48F5C0668A87 /* [CP] Check Pods Manifest.lock */ = { 182 | isa = PBXShellScriptBuildPhase; 183 | buildActionMask = 2147483647; 184 | files = ( 185 | ); 186 | inputPaths = ( 187 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 188 | "${PODS_ROOT}/Manifest.lock", 189 | ); 190 | name = "[CP] Check Pods Manifest.lock"; 191 | outputPaths = ( 192 | "$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt", 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | shellPath = /bin/sh; 196 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 197 | showEnvVarsInLog = 0; 198 | }; 199 | /* End PBXShellScriptBuildPhase section */ 200 | 201 | /* Begin PBXSourcesBuildPhase section */ 202 | AB459A491DD48A38001E6F2E /* Sources */ = { 203 | isa = PBXSourcesBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | AB459A531DD48A39001E6F2E /* ViewController.swift in Sources */, 207 | AB459A511DD48A39001E6F2E /* AppDelegate.swift in Sources */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXSourcesBuildPhase section */ 212 | 213 | /* Begin PBXVariantGroup section */ 214 | AB459A541DD48A39001E6F2E /* Main.storyboard */ = { 215 | isa = PBXVariantGroup; 216 | children = ( 217 | AB459A551DD48A39001E6F2E /* Base */, 218 | ); 219 | name = Main.storyboard; 220 | sourceTree = ""; 221 | }; 222 | AB459A591DD48A39001E6F2E /* LaunchScreen.storyboard */ = { 223 | isa = PBXVariantGroup; 224 | children = ( 225 | AB459A5A1DD48A39001E6F2E /* Base */, 226 | ); 227 | name = LaunchScreen.storyboard; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXVariantGroup section */ 231 | 232 | /* Begin XCBuildConfiguration section */ 233 | AB459A5D1DD48A39001E6F2E /* Debug */ = { 234 | isa = XCBuildConfiguration; 235 | buildSettings = { 236 | ALWAYS_SEARCH_USER_PATHS = NO; 237 | CLANG_ANALYZER_NONNULL = YES; 238 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 239 | CLANG_CXX_LIBRARY = "libc++"; 240 | CLANG_ENABLE_MODULES = YES; 241 | CLANG_ENABLE_OBJC_ARC = YES; 242 | CLANG_WARN_BOOL_CONVERSION = YES; 243 | CLANG_WARN_CONSTANT_CONVERSION = YES; 244 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 245 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 246 | CLANG_WARN_EMPTY_BODY = YES; 247 | CLANG_WARN_ENUM_CONVERSION = YES; 248 | CLANG_WARN_INFINITE_RECURSION = YES; 249 | CLANG_WARN_INT_CONVERSION = YES; 250 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 251 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 252 | CLANG_WARN_UNREACHABLE_CODE = YES; 253 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 254 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 255 | COPY_PHASE_STRIP = NO; 256 | DEBUG_INFORMATION_FORMAT = dwarf; 257 | ENABLE_STRICT_OBJC_MSGSEND = YES; 258 | ENABLE_TESTABILITY = YES; 259 | GCC_C_LANGUAGE_STANDARD = gnu99; 260 | GCC_DYNAMIC_NO_PIC = NO; 261 | GCC_NO_COMMON_BLOCKS = YES; 262 | GCC_OPTIMIZATION_LEVEL = 0; 263 | GCC_PREPROCESSOR_DEFINITIONS = ( 264 | "DEBUG=1", 265 | "$(inherited)", 266 | ); 267 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 268 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 269 | GCC_WARN_UNDECLARED_SELECTOR = YES; 270 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 271 | GCC_WARN_UNUSED_FUNCTION = YES; 272 | GCC_WARN_UNUSED_VARIABLE = YES; 273 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 274 | MTL_ENABLE_DEBUG_INFO = YES; 275 | ONLY_ACTIVE_ARCH = YES; 276 | SDKROOT = iphoneos; 277 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 278 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 279 | }; 280 | name = Debug; 281 | }; 282 | AB459A5E1DD48A39001E6F2E /* Release */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ALWAYS_SEARCH_USER_PATHS = NO; 286 | CLANG_ANALYZER_NONNULL = YES; 287 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 288 | CLANG_CXX_LIBRARY = "libc++"; 289 | CLANG_ENABLE_MODULES = YES; 290 | CLANG_ENABLE_OBJC_ARC = YES; 291 | CLANG_WARN_BOOL_CONVERSION = YES; 292 | CLANG_WARN_CONSTANT_CONVERSION = YES; 293 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 294 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 295 | CLANG_WARN_EMPTY_BODY = YES; 296 | CLANG_WARN_ENUM_CONVERSION = YES; 297 | CLANG_WARN_INFINITE_RECURSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 300 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 301 | CLANG_WARN_UNREACHABLE_CODE = YES; 302 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 303 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 304 | COPY_PHASE_STRIP = NO; 305 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 306 | ENABLE_NS_ASSERTIONS = NO; 307 | ENABLE_STRICT_OBJC_MSGSEND = YES; 308 | GCC_C_LANGUAGE_STANDARD = gnu99; 309 | GCC_NO_COMMON_BLOCKS = YES; 310 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 311 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 312 | GCC_WARN_UNDECLARED_SELECTOR = YES; 313 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 314 | GCC_WARN_UNUSED_FUNCTION = YES; 315 | GCC_WARN_UNUSED_VARIABLE = YES; 316 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 317 | MTL_ENABLE_DEBUG_INFO = NO; 318 | SDKROOT = iphoneos; 319 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 320 | VALIDATE_PRODUCT = YES; 321 | }; 322 | name = Release; 323 | }; 324 | AB459A601DD48A39001E6F2E /* Debug */ = { 325 | isa = XCBuildConfiguration; 326 | baseConfigurationReference = 6BA42D5F80CDBEE43C055866 /* Pods-Example.debug.xcconfig */; 327 | buildSettings = { 328 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 329 | DEVELOPMENT_TEAM = 239CFKQ3YB; 330 | INFOPLIST_FILE = Example/Info.plist; 331 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 332 | PRODUCT_BUNDLE_IDENTIFIER = fr.eivo.Example; 333 | PRODUCT_NAME = "$(TARGET_NAME)"; 334 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 335 | SWIFT_VERSION = 4.2; 336 | }; 337 | name = Debug; 338 | }; 339 | AB459A611DD48A39001E6F2E /* Release */ = { 340 | isa = XCBuildConfiguration; 341 | baseConfigurationReference = 91D437DB3E3BFA1F9F652472 /* Pods-Example.release.xcconfig */; 342 | buildSettings = { 343 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 344 | DEVELOPMENT_TEAM = 239CFKQ3YB; 345 | INFOPLIST_FILE = Example/Info.plist; 346 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 347 | PRODUCT_BUNDLE_IDENTIFIER = fr.eivo.Example; 348 | PRODUCT_NAME = "$(TARGET_NAME)"; 349 | SWIFT_SWIFT3_OBJC_INFERENCE = On; 350 | SWIFT_VERSION = 4.2; 351 | }; 352 | name = Release; 353 | }; 354 | /* End XCBuildConfiguration section */ 355 | 356 | /* Begin XCConfigurationList section */ 357 | AB459A481DD48A38001E6F2E /* Build configuration list for PBXProject "Example" */ = { 358 | isa = XCConfigurationList; 359 | buildConfigurations = ( 360 | AB459A5D1DD48A39001E6F2E /* Debug */, 361 | AB459A5E1DD48A39001E6F2E /* Release */, 362 | ); 363 | defaultConfigurationIsVisible = 0; 364 | defaultConfigurationName = Release; 365 | }; 366 | AB459A5F1DD48A39001E6F2E /* Build configuration list for PBXNativeTarget "Example" */ = { 367 | isa = XCConfigurationList; 368 | buildConfigurations = ( 369 | AB459A601DD48A39001E6F2E /* Debug */, 370 | AB459A611DD48A39001E6F2E /* Release */, 371 | ); 372 | defaultConfigurationIsVisible = 0; 373 | defaultConfigurationName = Release; 374 | }; 375 | /* End XCConfigurationList section */ 376 | }; 377 | rootObject = AB459A451DD48A38001E6F2E /* Project object */; 378 | } 379 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Example/Example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Jonathan Tribouharet 6 | 7 | import UIKit 8 | 9 | @UIApplicationMain 10 | class AppDelegate: UIResponder, UIApplicationDelegate { 11 | 12 | var window: UIWindow? 13 | 14 | 15 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 16 | // Override point for customization after application launch. 17 | return true 18 | } 19 | 20 | func applicationWillResignActive(_ application: UIApplication) { 21 | // 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. 22 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 23 | } 24 | 25 | func applicationDidEnterBackground(_ application: UIApplication) { 26 | // 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. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | func applicationWillEnterForeground(_ application: UIApplication) { 31 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 32 | } 33 | 34 | func applicationDidBecomeActive(_ application: UIApplication) { 35 | // 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. 36 | } 37 | 38 | func applicationWillTerminate(_ application: UIApplication) { 39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 40 | } 41 | 42 | 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/close.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "close@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/close.imageset/close@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnvuko/JTMaterialSpinner/006352c7caf2ec7467b87eca937eab059bb666e1/Example/Example/Assets.xcassets/close.imageset/close@2x.png -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/plus.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "plus@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/Example/Assets.xcassets/plus.imageset/plus@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnvuko/JTMaterialSpinner/006352c7caf2ec7467b87eca937eab059bb666e1/Example/Example/Assets.xcassets/plus.imageset/plus@2x.png -------------------------------------------------------------------------------- /Example/Example/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Example/Example/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Example/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 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Example/Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Jonathan Tribouharet 6 | 7 | import UIKit 8 | import JTMaterialSpinner 9 | 10 | class ViewController: UIViewController { 11 | 12 | var spinnerView = JTMaterialSpinner() 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | self.view.addSubview(spinnerView) 18 | spinnerView.frame = CGRect(x: (375.0 - 50.0) / 2.0, y: 300, width: 50, height: 50) 19 | 20 | spinnerView.circleLayer.lineWidth = 2.0 21 | spinnerView.circleLayer.strokeColor = UIColor.orange.cgColor 22 | spinnerView.beginRefreshing() 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | platform :ios, "12.0" 4 | use_frameworks! 5 | 6 | target 'Example' do 7 | 8 | pod 'JTMaterialSpinner' , path: '..' 9 | 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JTMaterialSpinner (3.0.5) 3 | 4 | DEPENDENCIES: 5 | - JTMaterialSpinner (from `..`) 6 | 7 | EXTERNAL SOURCES: 8 | JTMaterialSpinner: 9 | :path: ".." 10 | 11 | SPEC CHECKSUMS: 12 | JTMaterialSpinner: 3f0df8a87977bc885f3104af98f5a66119cdb772 13 | 14 | PODFILE CHECKSUM: a45eae521f867b1b973bc0a2b497b94317b6763f 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/JTMaterialSpinner.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "JTMaterialSpinner", 3 | "version": "3.0.5", 4 | "summary": "An iOS spinner view based on material design.", 5 | "homepage": "https://github.com/jonathantribouharet/JTMaterialSpinner", 6 | "license": { 7 | "type": "MIT" 8 | }, 9 | "authors": { 10 | "Jonathan VUKOVICH TRIBOUHARET": "jonathan.tribouharet@gmail.com" 11 | }, 12 | "platforms": { 13 | "ios": "8.0" 14 | }, 15 | "source": { 16 | "git": "https://github.com/jonathantribouharet/JTMaterialSpinner.git", 17 | "tag": "3.0.5" 18 | }, 19 | "source_files": "JTMaterialSpinner/*", 20 | "requires_arc": true, 21 | "screenshots": [ 22 | "https://raw.githubusercontent.com/jonathantribouharet/JTMaterialSpinner/master/Screens/example.gif" 23 | ], 24 | "swift_version": "4.2", 25 | "pod_target_xcconfig": { 26 | "SWIFT_VERSION": "4.2" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - JTMaterialSpinner (3.0.5) 3 | 4 | DEPENDENCIES: 5 | - JTMaterialSpinner (from `..`) 6 | 7 | EXTERNAL SOURCES: 8 | JTMaterialSpinner: 9 | :path: ".." 10 | 11 | SPEC CHECKSUMS: 12 | JTMaterialSpinner: 3f0df8a87977bc885f3104af98f5a66119cdb772 13 | 14 | PODFILE CHECKSUM: a45eae521f867b1b973bc0a2b497b94317b6763f 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /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 | 17313B5A84C915A5FB50A964ADEC0B46 /* Pods-Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */; }; 11 | 34EE497D7AC552F8294B368DD1C74730 /* Pods-Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 3DA6DC949F25E6325C6C1D5CC2416EB9 /* JTMaterialSpinner-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E5A35BCC96CE8A5D70DCCD5687F6EBE3 /* JTMaterialSpinner-dummy.m */; }; 13 | B5D0DE9259DD1209A18A0BD82097CFC5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 14 | B91AFDE2A6EFB0B821BD1FABBA3F5773 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */; }; 15 | E1BB287B24251B93A6B435BAFAEA5360 /* JTMaterialSpinner-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E23B9A5DC8F2A5349691F9BE6B6C5B3A /* JTMaterialSpinner-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | E9B9A1E31A88F99577ED6A11FE381BE6 /* JTMaterialSpinner.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2EF0B6D049E9BB0E1D385FA2922C4FFE /* JTMaterialSpinner.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | CA411BDE307839E765C7E9ECAEFF448E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 0335DAA2325BCC45C0501B87688341DC; 25 | remoteInfo = JTMaterialSpinner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-resources.sh"; sourceTree = ""; }; 31 | 0D80464AB0C607EFE0760EAFB2B98DF7 /* JTMaterialSpinner-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JTMaterialSpinner-prefix.pch"; sourceTree = ""; }; 32 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Example-acknowledgements.plist"; sourceTree = ""; }; 33 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Example-umbrella.h"; sourceTree = ""; }; 34 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Example-dummy.m"; sourceTree = ""; }; 35 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Example.modulemap"; sourceTree = ""; }; 36 | 2EF0B6D049E9BB0E1D385FA2922C4FFE /* JTMaterialSpinner.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = JTMaterialSpinner.swift; path = JTMaterialSpinner/JTMaterialSpinner.swift; sourceTree = ""; }; 37 | 31485334E3CEB1694A64610559571433 /* JTMaterialSpinner.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = JTMaterialSpinner.xcconfig; sourceTree = ""; }; 38 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Example-acknowledgements.markdown"; sourceTree = ""; }; 39 | 3CE43C5AC40D0EE5FC66FD6BA9E70F51 /* JTMaterialSpinner.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = JTMaterialSpinner.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 40 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-frameworks.sh"; sourceTree = ""; }; 41 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 7E2B4B35A00F14CEBC27134E4510C88C /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 9352E09B337A60FEF84A1954D06F56CE /* JTMaterialSpinner.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = JTMaterialSpinner.modulemap; sourceTree = ""; }; 44 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 45 | 9BFBBD5AAC94216CC5067107FB9DA4DD /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 46 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.release.xcconfig"; sourceTree = ""; }; 47 | B2132590F7387CEBC8802AB3AEFD650F /* JTMaterialSpinner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = JTMaterialSpinner.framework; path = JTMaterialSpinner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 49 | D7744DEAD57303C99F4B1ECD57148356 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 50 | E23B9A5DC8F2A5349691F9BE6B6C5B3A /* JTMaterialSpinner-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "JTMaterialSpinner-umbrella.h"; sourceTree = ""; }; 51 | E5A35BCC96CE8A5D70DCCD5687F6EBE3 /* JTMaterialSpinner-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "JTMaterialSpinner-dummy.m"; sourceTree = ""; }; 52 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.debug.xcconfig"; sourceTree = ""; }; 53 | FC35CF99A58ECBEE26DE535AD038D017 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Example.framework; path = "Pods-Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 51FA1E4C2F6BC75BFD75E5256ABBF3B7 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | B5D0DE9259DD1209A18A0BD82097CFC5 /* Foundation.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | E41156BE1F89309933A06DFA20BDD70D /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | B91AFDE2A6EFB0B821BD1FABBA3F5773 /* Foundation.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 1575CB0AF47B34E3C8D7FC1D51AF603C /* Pod */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 3CE43C5AC40D0EE5FC66FD6BA9E70F51 /* JTMaterialSpinner.podspec */, 80 | D7744DEAD57303C99F4B1ECD57148356 /* LICENSE */, 81 | 9BFBBD5AAC94216CC5067107FB9DA4DD /* README.md */, 82 | ); 83 | name = Pod; 84 | sourceTree = ""; 85 | }; 86 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */, 90 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */, 91 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */, 92 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */, 93 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */, 94 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */, 95 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */, 96 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */, 97 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */, 98 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */, 99 | ); 100 | name = "Pods-Example"; 101 | path = "Target Support Files/Pods-Example"; 102 | sourceTree = ""; 103 | }; 104 | 334F6135788757B7DA763E95E9826628 /* JTMaterialSpinner */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 2EF0B6D049E9BB0E1D385FA2922C4FFE /* JTMaterialSpinner.swift */, 108 | 1575CB0AF47B34E3C8D7FC1D51AF603C /* Pod */, 109 | E94E760CFE8531CF103F4028BB9A565E /* Support Files */, 110 | ); 111 | name = JTMaterialSpinner; 112 | path = ../..; 113 | sourceTree = ""; 114 | }; 115 | 44D5347904CF754D6785B84253F2574A /* iOS */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | D6DFF15000AFE2A371BF499E7AFDA808 /* Foundation.framework */, 119 | ); 120 | name = iOS; 121 | sourceTree = ""; 122 | }; 123 | 5AED26EDF795B0B4C1E2D0162C3EE3D3 /* Development Pods */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 334F6135788757B7DA763E95E9826628 /* JTMaterialSpinner */, 127 | ); 128 | name = "Development Pods"; 129 | sourceTree = ""; 130 | }; 131 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */, 135 | ); 136 | name = "Targets Support Files"; 137 | sourceTree = ""; 138 | }; 139 | 7DB346D0F39D3F0E887471402A8071AB = { 140 | isa = PBXGroup; 141 | children = ( 142 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 143 | 5AED26EDF795B0B4C1E2D0162C3EE3D3 /* Development Pods */, 144 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 145 | AD34D8FC0F0DF54A2F80944B23A1D899 /* Products */, 146 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */, 147 | ); 148 | sourceTree = ""; 149 | }; 150 | AD34D8FC0F0DF54A2F80944B23A1D899 /* Products */ = { 151 | isa = PBXGroup; 152 | children = ( 153 | B2132590F7387CEBC8802AB3AEFD650F /* JTMaterialSpinner.framework */, 154 | FC35CF99A58ECBEE26DE535AD038D017 /* Pods_Example.framework */, 155 | ); 156 | name = Products; 157 | sourceTree = ""; 158 | }; 159 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 44D5347904CF754D6785B84253F2574A /* iOS */, 163 | ); 164 | name = Frameworks; 165 | sourceTree = ""; 166 | }; 167 | E94E760CFE8531CF103F4028BB9A565E /* Support Files */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 7E2B4B35A00F14CEBC27134E4510C88C /* Info.plist */, 171 | 9352E09B337A60FEF84A1954D06F56CE /* JTMaterialSpinner.modulemap */, 172 | 31485334E3CEB1694A64610559571433 /* JTMaterialSpinner.xcconfig */, 173 | E5A35BCC96CE8A5D70DCCD5687F6EBE3 /* JTMaterialSpinner-dummy.m */, 174 | 0D80464AB0C607EFE0760EAFB2B98DF7 /* JTMaterialSpinner-prefix.pch */, 175 | E23B9A5DC8F2A5349691F9BE6B6C5B3A /* JTMaterialSpinner-umbrella.h */, 176 | ); 177 | name = "Support Files"; 178 | path = "Example/Pods/Target Support Files/JTMaterialSpinner"; 179 | sourceTree = ""; 180 | }; 181 | /* End PBXGroup section */ 182 | 183 | /* Begin PBXHeadersBuildPhase section */ 184 | A8304DC10316E79FF30FA363885B1E4E /* Headers */ = { 185 | isa = PBXHeadersBuildPhase; 186 | buildActionMask = 2147483647; 187 | files = ( 188 | 34EE497D7AC552F8294B368DD1C74730 /* Pods-Example-umbrella.h in Headers */, 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | }; 192 | C8FED6FE44DE69235D7CFB490D7A0823 /* Headers */ = { 193 | isa = PBXHeadersBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | E1BB287B24251B93A6B435BAFAEA5360 /* JTMaterialSpinner-umbrella.h in Headers */, 197 | ); 198 | runOnlyForDeploymentPostprocessing = 0; 199 | }; 200 | /* End PBXHeadersBuildPhase section */ 201 | 202 | /* Begin PBXNativeTarget section */ 203 | 0335DAA2325BCC45C0501B87688341DC /* JTMaterialSpinner */ = { 204 | isa = PBXNativeTarget; 205 | buildConfigurationList = 8E02C2D3021815AA16270AB8194B1733 /* Build configuration list for PBXNativeTarget "JTMaterialSpinner" */; 206 | buildPhases = ( 207 | C8FED6FE44DE69235D7CFB490D7A0823 /* Headers */, 208 | 05559AAAF5C082CA33D9340976B8C180 /* Sources */, 209 | E41156BE1F89309933A06DFA20BDD70D /* Frameworks */, 210 | 8368A4CD9215597C811B77139CBD6B06 /* Resources */, 211 | ); 212 | buildRules = ( 213 | ); 214 | dependencies = ( 215 | ); 216 | name = JTMaterialSpinner; 217 | productName = JTMaterialSpinner; 218 | productReference = B2132590F7387CEBC8802AB3AEFD650F /* JTMaterialSpinner.framework */; 219 | productType = "com.apple.product-type.framework"; 220 | }; 221 | 752EF8E5240B61B84E4E993CB68C5714 /* Pods-Example */ = { 222 | isa = PBXNativeTarget; 223 | buildConfigurationList = 41D0C1F6BC677C06B8692243B2AC2513 /* Build configuration list for PBXNativeTarget "Pods-Example" */; 224 | buildPhases = ( 225 | A8304DC10316E79FF30FA363885B1E4E /* Headers */, 226 | 0129DBF80483C9E38D7ECB546F68B10C /* Sources */, 227 | 51FA1E4C2F6BC75BFD75E5256ABBF3B7 /* Frameworks */, 228 | 0B87206403BDFE31B364948CE9D921D4 /* Resources */, 229 | ); 230 | buildRules = ( 231 | ); 232 | dependencies = ( 233 | DF480B33A0AB9C237BF7BB2C89C7CAB1 /* PBXTargetDependency */, 234 | ); 235 | name = "Pods-Example"; 236 | productName = "Pods-Example"; 237 | productReference = FC35CF99A58ECBEE26DE535AD038D017 /* Pods_Example.framework */; 238 | productType = "com.apple.product-type.framework"; 239 | }; 240 | /* End PBXNativeTarget section */ 241 | 242 | /* Begin PBXProject section */ 243 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 244 | isa = PBXProject; 245 | attributes = { 246 | LastSwiftUpdateCheck = 0930; 247 | LastUpgradeCheck = 0930; 248 | }; 249 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 250 | compatibilityVersion = "Xcode 3.2"; 251 | developmentRegion = English; 252 | hasScannedForEncodings = 0; 253 | knownRegions = ( 254 | en, 255 | ); 256 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 257 | productRefGroup = AD34D8FC0F0DF54A2F80944B23A1D899 /* Products */; 258 | projectDirPath = ""; 259 | projectRoot = ""; 260 | targets = ( 261 | 0335DAA2325BCC45C0501B87688341DC /* JTMaterialSpinner */, 262 | 752EF8E5240B61B84E4E993CB68C5714 /* Pods-Example */, 263 | ); 264 | }; 265 | /* End PBXProject section */ 266 | 267 | /* Begin PBXResourcesBuildPhase section */ 268 | 0B87206403BDFE31B364948CE9D921D4 /* Resources */ = { 269 | isa = PBXResourcesBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 8368A4CD9215597C811B77139CBD6B06 /* Resources */ = { 276 | isa = PBXResourcesBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | /* End PBXResourcesBuildPhase section */ 283 | 284 | /* Begin PBXSourcesBuildPhase section */ 285 | 0129DBF80483C9E38D7ECB546F68B10C /* Sources */ = { 286 | isa = PBXSourcesBuildPhase; 287 | buildActionMask = 2147483647; 288 | files = ( 289 | 17313B5A84C915A5FB50A964ADEC0B46 /* Pods-Example-dummy.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 05559AAAF5C082CA33D9340976B8C180 /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 3DA6DC949F25E6325C6C1D5CC2416EB9 /* JTMaterialSpinner-dummy.m in Sources */, 298 | E9B9A1E31A88F99577ED6A11FE381BE6 /* JTMaterialSpinner.swift in Sources */, 299 | ); 300 | runOnlyForDeploymentPostprocessing = 0; 301 | }; 302 | /* End PBXSourcesBuildPhase section */ 303 | 304 | /* Begin PBXTargetDependency section */ 305 | DF480B33A0AB9C237BF7BB2C89C7CAB1 /* PBXTargetDependency */ = { 306 | isa = PBXTargetDependency; 307 | name = JTMaterialSpinner; 308 | target = 0335DAA2325BCC45C0501B87688341DC /* JTMaterialSpinner */; 309 | targetProxy = CA411BDE307839E765C7E9ECAEFF448E /* PBXContainerItemProxy */; 310 | }; 311 | /* End PBXTargetDependency section */ 312 | 313 | /* Begin XCBuildConfiguration section */ 314 | 15AEB1D91B3017EBEF01F14AE8682091 /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | baseConfigurationReference = 31485334E3CEB1694A64610559571433 /* JTMaterialSpinner.xcconfig */; 317 | buildSettings = { 318 | CODE_SIGN_IDENTITY = ""; 319 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 320 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 321 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 322 | CURRENT_PROJECT_VERSION = 1; 323 | DEFINES_MODULE = YES; 324 | DYLIB_COMPATIBILITY_VERSION = 1; 325 | DYLIB_CURRENT_VERSION = 1; 326 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 327 | GCC_PREFIX_HEADER = "Target Support Files/JTMaterialSpinner/JTMaterialSpinner-prefix.pch"; 328 | INFOPLIST_FILE = "Target Support Files/JTMaterialSpinner/Info.plist"; 329 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 330 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 331 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 332 | MODULEMAP_FILE = "Target Support Files/JTMaterialSpinner/JTMaterialSpinner.modulemap"; 333 | PRODUCT_MODULE_NAME = JTMaterialSpinner; 334 | PRODUCT_NAME = JTMaterialSpinner; 335 | SDKROOT = iphoneos; 336 | SKIP_INSTALL = YES; 337 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 338 | SWIFT_VERSION = 4.2; 339 | TARGETED_DEVICE_FAMILY = "1,2"; 340 | VALIDATE_PRODUCT = YES; 341 | VERSIONING_SYSTEM = "apple-generic"; 342 | VERSION_INFO_PREFIX = ""; 343 | }; 344 | name = Release; 345 | }; 346 | 7BC753A6143B99E180BB430862A3BB9C /* Release */ = { 347 | isa = XCBuildConfiguration; 348 | baseConfigurationReference = A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */; 349 | buildSettings = { 350 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 351 | CLANG_ENABLE_OBJC_WEAK = NO; 352 | CODE_SIGN_IDENTITY = ""; 353 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 355 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 356 | CURRENT_PROJECT_VERSION = 1; 357 | DEFINES_MODULE = YES; 358 | DYLIB_COMPATIBILITY_VERSION = 1; 359 | DYLIB_CURRENT_VERSION = 1; 360 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 361 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 362 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 363 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 364 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 365 | MACH_O_TYPE = staticlib; 366 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 367 | OTHER_LDFLAGS = ""; 368 | OTHER_LIBTOOLFLAGS = ""; 369 | PODS_ROOT = "$(SRCROOT)"; 370 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 371 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 372 | SDKROOT = iphoneos; 373 | SKIP_INSTALL = YES; 374 | TARGETED_DEVICE_FAMILY = "1,2"; 375 | VALIDATE_PRODUCT = YES; 376 | VERSIONING_SYSTEM = "apple-generic"; 377 | VERSION_INFO_PREFIX = ""; 378 | }; 379 | name = Release; 380 | }; 381 | 98E98810EEEB96C99CB95CB91F4ADE0A /* Debug */ = { 382 | isa = XCBuildConfiguration; 383 | buildSettings = { 384 | ALWAYS_SEARCH_USER_PATHS = NO; 385 | CLANG_ANALYZER_NONNULL = YES; 386 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 387 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 388 | CLANG_CXX_LIBRARY = "libc++"; 389 | CLANG_ENABLE_MODULES = YES; 390 | CLANG_ENABLE_OBJC_ARC = YES; 391 | CLANG_ENABLE_OBJC_WEAK = YES; 392 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 393 | CLANG_WARN_BOOL_CONVERSION = YES; 394 | CLANG_WARN_COMMA = YES; 395 | CLANG_WARN_CONSTANT_CONVERSION = YES; 396 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 397 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 398 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 399 | CLANG_WARN_EMPTY_BODY = YES; 400 | CLANG_WARN_ENUM_CONVERSION = YES; 401 | CLANG_WARN_INFINITE_RECURSION = YES; 402 | CLANG_WARN_INT_CONVERSION = YES; 403 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 404 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 405 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 406 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 407 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 408 | CLANG_WARN_STRICT_PROTOTYPES = YES; 409 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 410 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 411 | CLANG_WARN_UNREACHABLE_CODE = YES; 412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 413 | CODE_SIGNING_ALLOWED = NO; 414 | CODE_SIGNING_REQUIRED = NO; 415 | COPY_PHASE_STRIP = NO; 416 | DEBUG_INFORMATION_FORMAT = dwarf; 417 | ENABLE_STRICT_OBJC_MSGSEND = YES; 418 | ENABLE_TESTABILITY = YES; 419 | GCC_C_LANGUAGE_STANDARD = gnu11; 420 | GCC_DYNAMIC_NO_PIC = NO; 421 | GCC_NO_COMMON_BLOCKS = YES; 422 | GCC_OPTIMIZATION_LEVEL = 0; 423 | GCC_PREPROCESSOR_DEFINITIONS = ( 424 | "POD_CONFIGURATION_DEBUG=1", 425 | "DEBUG=1", 426 | "$(inherited)", 427 | ); 428 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 429 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 430 | GCC_WARN_UNDECLARED_SELECTOR = YES; 431 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 432 | GCC_WARN_UNUSED_FUNCTION = YES; 433 | GCC_WARN_UNUSED_VARIABLE = YES; 434 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 435 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 436 | MTL_FAST_MATH = YES; 437 | ONLY_ACTIVE_ARCH = YES; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | STRIP_INSTALLED_PRODUCT = NO; 440 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 441 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 442 | SWIFT_VERSION = 4.2; 443 | SYMROOT = "${SRCROOT}/../build"; 444 | }; 445 | name = Debug; 446 | }; 447 | B97A7F6ACE1216BB5A2307CA83FC93C5 /* Release */ = { 448 | isa = XCBuildConfiguration; 449 | buildSettings = { 450 | ALWAYS_SEARCH_USER_PATHS = NO; 451 | CLANG_ANALYZER_NONNULL = YES; 452 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 453 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 454 | CLANG_CXX_LIBRARY = "libc++"; 455 | CLANG_ENABLE_MODULES = YES; 456 | CLANG_ENABLE_OBJC_ARC = YES; 457 | CLANG_ENABLE_OBJC_WEAK = YES; 458 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 459 | CLANG_WARN_BOOL_CONVERSION = YES; 460 | CLANG_WARN_COMMA = YES; 461 | CLANG_WARN_CONSTANT_CONVERSION = YES; 462 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 463 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 464 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 465 | CLANG_WARN_EMPTY_BODY = YES; 466 | CLANG_WARN_ENUM_CONVERSION = YES; 467 | CLANG_WARN_INFINITE_RECURSION = YES; 468 | CLANG_WARN_INT_CONVERSION = YES; 469 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 470 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 471 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 472 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 473 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 474 | CLANG_WARN_STRICT_PROTOTYPES = YES; 475 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 476 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 477 | CLANG_WARN_UNREACHABLE_CODE = YES; 478 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 479 | CODE_SIGNING_ALLOWED = NO; 480 | CODE_SIGNING_REQUIRED = NO; 481 | COPY_PHASE_STRIP = NO; 482 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 483 | ENABLE_NS_ASSERTIONS = NO; 484 | ENABLE_STRICT_OBJC_MSGSEND = YES; 485 | GCC_C_LANGUAGE_STANDARD = gnu11; 486 | GCC_NO_COMMON_BLOCKS = YES; 487 | GCC_PREPROCESSOR_DEFINITIONS = ( 488 | "POD_CONFIGURATION_RELEASE=1", 489 | "$(inherited)", 490 | ); 491 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 492 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 493 | GCC_WARN_UNDECLARED_SELECTOR = YES; 494 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 495 | GCC_WARN_UNUSED_FUNCTION = YES; 496 | GCC_WARN_UNUSED_VARIABLE = YES; 497 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 498 | MTL_ENABLE_DEBUG_INFO = NO; 499 | MTL_FAST_MATH = YES; 500 | PRODUCT_NAME = "$(TARGET_NAME)"; 501 | STRIP_INSTALLED_PRODUCT = NO; 502 | SWIFT_COMPILATION_MODE = wholemodule; 503 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 504 | SWIFT_VERSION = 4.2; 505 | SYMROOT = "${SRCROOT}/../build"; 506 | }; 507 | name = Release; 508 | }; 509 | BA12D46ABF7B29FD9605E6DCFEEE806B /* Debug */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */; 512 | buildSettings = { 513 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 514 | CLANG_ENABLE_OBJC_WEAK = NO; 515 | CODE_SIGN_IDENTITY = ""; 516 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 517 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 518 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 519 | CURRENT_PROJECT_VERSION = 1; 520 | DEFINES_MODULE = YES; 521 | DYLIB_COMPATIBILITY_VERSION = 1; 522 | DYLIB_CURRENT_VERSION = 1; 523 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 524 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 525 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 526 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; 527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 528 | MACH_O_TYPE = staticlib; 529 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 530 | OTHER_LDFLAGS = ""; 531 | OTHER_LIBTOOLFLAGS = ""; 532 | PODS_ROOT = "$(SRCROOT)"; 533 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 534 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 535 | SDKROOT = iphoneos; 536 | SKIP_INSTALL = YES; 537 | TARGETED_DEVICE_FAMILY = "1,2"; 538 | VERSIONING_SYSTEM = "apple-generic"; 539 | VERSION_INFO_PREFIX = ""; 540 | }; 541 | name = Debug; 542 | }; 543 | C9652566CE2046CAECE734581FDFA433 /* Debug */ = { 544 | isa = XCBuildConfiguration; 545 | baseConfigurationReference = 31485334E3CEB1694A64610559571433 /* JTMaterialSpinner.xcconfig */; 546 | buildSettings = { 547 | CODE_SIGN_IDENTITY = ""; 548 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 549 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 550 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 551 | CURRENT_PROJECT_VERSION = 1; 552 | DEFINES_MODULE = YES; 553 | DYLIB_COMPATIBILITY_VERSION = 1; 554 | DYLIB_CURRENT_VERSION = 1; 555 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 556 | GCC_PREFIX_HEADER = "Target Support Files/JTMaterialSpinner/JTMaterialSpinner-prefix.pch"; 557 | INFOPLIST_FILE = "Target Support Files/JTMaterialSpinner/Info.plist"; 558 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 559 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 561 | MODULEMAP_FILE = "Target Support Files/JTMaterialSpinner/JTMaterialSpinner.modulemap"; 562 | PRODUCT_MODULE_NAME = JTMaterialSpinner; 563 | PRODUCT_NAME = JTMaterialSpinner; 564 | SDKROOT = iphoneos; 565 | SKIP_INSTALL = YES; 566 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 567 | SWIFT_VERSION = 4.2; 568 | TARGETED_DEVICE_FAMILY = "1,2"; 569 | VERSIONING_SYSTEM = "apple-generic"; 570 | VERSION_INFO_PREFIX = ""; 571 | }; 572 | name = Debug; 573 | }; 574 | /* End XCBuildConfiguration section */ 575 | 576 | /* Begin XCConfigurationList section */ 577 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 578 | isa = XCConfigurationList; 579 | buildConfigurations = ( 580 | 98E98810EEEB96C99CB95CB91F4ADE0A /* Debug */, 581 | B97A7F6ACE1216BB5A2307CA83FC93C5 /* Release */, 582 | ); 583 | defaultConfigurationIsVisible = 0; 584 | defaultConfigurationName = Release; 585 | }; 586 | 41D0C1F6BC677C06B8692243B2AC2513 /* Build configuration list for PBXNativeTarget "Pods-Example" */ = { 587 | isa = XCConfigurationList; 588 | buildConfigurations = ( 589 | BA12D46ABF7B29FD9605E6DCFEEE806B /* Debug */, 590 | 7BC753A6143B99E180BB430862A3BB9C /* Release */, 591 | ); 592 | defaultConfigurationIsVisible = 0; 593 | defaultConfigurationName = Release; 594 | }; 595 | 8E02C2D3021815AA16270AB8194B1733 /* Build configuration list for PBXNativeTarget "JTMaterialSpinner" */ = { 596 | isa = XCConfigurationList; 597 | buildConfigurations = ( 598 | C9652566CE2046CAECE734581FDFA433 /* Debug */, 599 | 15AEB1D91B3017EBEF01F14AE8682091 /* Release */, 600 | ); 601 | defaultConfigurationIsVisible = 0; 602 | defaultConfigurationName = Release; 603 | }; 604 | /* End XCConfigurationList section */ 605 | }; 606 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 607 | } 608 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.5 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/JTMaterialSpinner-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_JTMaterialSpinner : NSObject 3 | @end 4 | @implementation PodsDummy_JTMaterialSpinner 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/JTMaterialSpinner-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/JTMaterialSpinner-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double JTMaterialSpinnerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char JTMaterialSpinnerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/JTMaterialSpinner.modulemap: -------------------------------------------------------------------------------- 1 | framework module JTMaterialSpinner { 2 | umbrella header "JTMaterialSpinner-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/JTMaterialSpinner/JTMaterialSpinner.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/JTMaterialSpinner 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | SWIFT_VERSION = 4.2 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## JTMaterialSpinner 5 | 6 | Copyright (c) 2015 Jonathan VUKOVICH TRIBOUHARET 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 | Generated by CocoaPods - https://cocoapods.org 26 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-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 Jonathan VUKOVICH TRIBOUHARET 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 | License 37 | MIT 38 | Title 39 | JTMaterialSpinner 40 | Type 41 | PSGroupSpecifier 42 | 43 | 44 | FooterText 45 | Generated by CocoaPods - https://cocoapods.org 46 | Title 47 | 48 | Type 49 | PSGroupSpecifier 50 | 51 | 52 | StringsTable 53 | Acknowledgements 54 | Title 55 | Acknowledgements 56 | 57 | 58 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/JTMaterialSpinner/JTMaterialSpinner.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/JTMaterialSpinner/JTMaterialSpinner.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 60 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 61 | ;; 62 | *.xib) 63 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 64 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 115 | else 116 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JTMaterialSpinner" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JTMaterialSpinner/JTMaterialSpinner.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "JTMaterialSpinner" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_Example { 2 | umbrella header "Pods-Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Example/Pods-Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/JTMaterialSpinner" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/JTMaterialSpinner/JTMaterialSpinner.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "JTMaterialSpinner" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /JTMaterialSpinner.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "JTMaterialSpinner" 3 | s.version = "3.0.5" 4 | s.summary = "An iOS spinner view based on material design." 5 | s.homepage = "https://github.com/jonathantribouharet/JTMaterialSpinner" 6 | s.license = { :type => 'MIT' } 7 | s.author = { "Jonathan VUKOVICH TRIBOUHARET" => "jonathan.tribouharet@gmail.com" } 8 | s.ios.deployment_target = '8.0' 9 | s.source = { :git => "https://github.com/jonathantribouharet/JTMaterialSpinner.git", :tag => s.version.to_s } 10 | s.source_files = 'JTMaterialSpinner/*' 11 | s.requires_arc = true 12 | s.screenshots = ["https://raw.githubusercontent.com/jonathantribouharet/JTMaterialSpinner/master/Screens/example.gif"] 13 | s.swift_version = '4.2' 14 | s.pod_target_xcconfig = { 15 | 'SWIFT_VERSION' => '4.2' 16 | } 17 | end 18 | -------------------------------------------------------------------------------- /JTMaterialSpinner/JTMaterialSpinner.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JTMaterialSpinner.swift 3 | // JTMaterialSpinner 4 | // 5 | // Created by Jonathan Tribouharet 6 | // 7 | 8 | import UIKit 9 | 10 | open class JTMaterialSpinner: UIView { 11 | 12 | public let circleLayer = CAShapeLayer() 13 | open private(set) var isAnimating = false 14 | open var animationDuration : TimeInterval = 2.0 15 | 16 | override public init(frame: CGRect) { 17 | super.init(frame: frame) 18 | commonInit() 19 | } 20 | 21 | required public init?(coder aDecoder: NSCoder) { 22 | super.init(coder: aDecoder) 23 | commonInit() 24 | } 25 | 26 | open func commonInit() { 27 | self.layer.addSublayer(circleLayer) 28 | 29 | circleLayer.fillColor = nil 30 | circleLayer.lineWidth = 1.5 31 | 32 | circleLayer.strokeColor = UIColor.orange.cgColor 33 | circleLayer.strokeStart = 0 34 | circleLayer.strokeEnd = 0 35 | 36 | #if swift(>=4.2) 37 | circleLayer.lineCap = CAShapeLayerLineCap.round 38 | #else 39 | circleLayer.lineCap = kCALineCapRound 40 | #endif 41 | } 42 | 43 | open override func layoutSubviews() { 44 | super.layoutSubviews() 45 | 46 | if self.circleLayer.frame != self.bounds { 47 | updateCircleLayer() 48 | } 49 | } 50 | 51 | open func updateCircleLayer() { 52 | let center = CGPoint(x: self.bounds.size.width / 2.0, y: self.bounds.size.height / 2.0) 53 | let radius = (self.bounds.height - self.circleLayer.lineWidth) / 2.0 54 | 55 | let startAngle : CGFloat = 0.0 56 | let endAngle : CGFloat = 2.0 * CGFloat.pi 57 | 58 | let path = UIBezierPath(arcCenter: center, 59 | radius: radius, 60 | startAngle: startAngle, 61 | endAngle: endAngle, 62 | clockwise: true) 63 | 64 | self.circleLayer.path = path.cgPath 65 | self.circleLayer.frame = self.bounds 66 | } 67 | 68 | open func forceBeginRefreshing() { 69 | self.isAnimating = false 70 | self.beginRefreshing() 71 | } 72 | 73 | open func beginRefreshing() { 74 | 75 | if(self.isAnimating){ 76 | return 77 | } 78 | 79 | self.isAnimating = true 80 | 81 | let rotateAnimation = CAKeyframeAnimation(keyPath: "transform.rotation") 82 | rotateAnimation.values = [ 83 | 0.0, 84 | Float.pi, 85 | (2.0 * Float.pi) 86 | ] 87 | 88 | 89 | let headAnimation = CABasicAnimation(keyPath: "strokeStart") 90 | headAnimation.duration = (self.animationDuration / 2.0) 91 | headAnimation.fromValue = 0 92 | headAnimation.toValue = 0.25 93 | 94 | let tailAnimation = CABasicAnimation(keyPath: "strokeEnd") 95 | tailAnimation.duration = (self.animationDuration / 2.0) 96 | tailAnimation.fromValue = 0 97 | tailAnimation.toValue = 1 98 | 99 | let endHeadAnimation = CABasicAnimation(keyPath: "strokeStart") 100 | endHeadAnimation.beginTime = (self.animationDuration / 2.0) 101 | endHeadAnimation.duration = (self.animationDuration / 2.0) 102 | endHeadAnimation.fromValue = 0.25 103 | endHeadAnimation.toValue = 1 104 | 105 | 106 | let endTailAnimation = CABasicAnimation(keyPath: "strokeEnd") 107 | endTailAnimation.beginTime = (self.animationDuration / 2.0) 108 | endTailAnimation.duration = (self.animationDuration / 2.0) 109 | endTailAnimation.fromValue = 1 110 | endTailAnimation.toValue = 1 111 | 112 | let animations = CAAnimationGroup() 113 | animations.duration = self.animationDuration 114 | animations.animations = [ 115 | rotateAnimation, 116 | headAnimation, 117 | tailAnimation, 118 | endHeadAnimation, 119 | endTailAnimation 120 | ] 121 | animations.repeatCount = Float.infinity 122 | animations.isRemovedOnCompletion = false 123 | 124 | self.circleLayer.add(animations, forKey: "animations") 125 | } 126 | 127 | open func endRefreshing () { 128 | self.isAnimating = false 129 | self.circleLayer.removeAnimation(forKey: "animations") 130 | } 131 | 132 | } 133 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Jonathan VUKOVICH TRIBOUHARET 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. -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.3.0 2 | import PackageDescription 3 | 4 | let package = Package( 5 | name: "JTMaterialSpinner", 6 | platforms: [.iOS(.v10)], 7 | products: [.library(name: "JTMaterialSpinner", targets: ["JTMaterialSpinner"])], 8 | targets: [ 9 | .target(name: "JTMaterialSpinner", path: "JTMaterialSpinner") 10 | ], 11 | swiftLanguageVersions: [SwiftVersion.v5] 12 | 13 | ) 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JTMaterialSpinner 2 | 3 | [![CI Status](http://img.shields.io/travis/jonathantribouharet/JTMaterialSpinner.svg)](https://travis-ci.org/jonathantribouharet/JTMaterialSpinner) 4 | ![Version](https://img.shields.io/cocoapods/v/JTMaterialSpinner.svg) 5 | ![License](https://img.shields.io/cocoapods/l/JTMaterialSpinner.svg) 6 | ![Platform](https://img.shields.io/cocoapods/p/JTMaterialSpinner.svg) 7 | 8 | An iOS material design spinner view. 9 | 10 | ## Installation 11 | 12 | With [CocoaPods](http://cocoapods.org/), add this line to your Podfile. 13 | 14 | pod 'JTMaterialSpinner', '~> 3.0' 15 | 16 | ## Screenshots 17 | 18 | ![Example](./Screens/example.gif "Example View") 19 | 20 | ## Usage 21 | 22 | ### Basic usage 23 | 24 | ```swift 25 | import UIKit 26 | import JTMaterialSpinner 27 | 28 | class ViewController: UIViewController { 29 | 30 | var spinnerView = JTMaterialSpinner() 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | 35 | // Customize the line width 36 | spinnerView.circleLayer.lineWidth = 2.0 37 | 38 | // Change the color of the line 39 | spinnerView.circleLayer.strokeColor = UIColor.orange.cgColor 40 | 41 | // Change the duration of the animation 42 | spinnerView.animationDuration = 2.5 43 | } 44 | 45 | func loadSomething () { 46 | spinnerView.beginRefreshing() 47 | MyService.loadSomeData() { () -> () in 48 | spinnerView.endRefreshing() 49 | } 50 | } 51 | } 52 | 53 | ``` 54 | 55 | ## Requirements 56 | 57 | - iOS 8.0 or higher 58 | - Swift 4.2 59 | 60 | ## Author 61 | 62 | - [Jonathan VUKOVICH TRIBOUHARET](https://github.com/jonathantribouharet) ([@johnvuko](https://twitter.com/johnvuko)) 63 | 64 | ## License 65 | 66 | JTMaterialSpinner is released under the MIT license. See the LICENSE file for more info. 67 | -------------------------------------------------------------------------------- /Screens/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/johnvuko/JTMaterialSpinner/006352c7caf2ec7467b87eca937eab059bb666e1/Screens/example.gif --------------------------------------------------------------------------------