├── .gitignore ├── .swift-version ├── Example ├── Example.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── Example.xcworkspace │ └── contents.xcworkspacedata ├── Example │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── KDLoadingView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── KDLoadingView │ ├── Info.plist │ ├── KDLoadingView-dummy.m │ ├── KDLoadingView-prefix.pch │ ├── KDLoadingView-umbrella.h │ ├── KDLoadingView.modulemap │ └── KDLoadingView.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 ├── KDLoadingView.podspec ├── KDLoadingView.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── KDLoadingView ├── Info.plist ├── KDLoadingBlurView.swift ├── KDLoadingExtension.swift ├── KDLoadingView.h └── KDLoadingView.swift ├── KDLoadingViewTests ├── Info.plist └── KDLoadingViewTests.swift ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Mac Files 6 | .DS_Store 7 | 8 | ## Build generated 9 | build/ 10 | DerivedData/ 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata/ 22 | 23 | ## Other 24 | *.moved-aside 25 | *.xcuserstate 26 | *.DS_Store 27 | Example/Example.xcworkspace/xcshareddata/ 28 | KDLoadingView.xcodeproj/project.xcworkspace/xcshareddata/ 29 | 30 | ## Obj-C/Swift specific 31 | *.hmap 32 | *.ipa 33 | *.dSYM.zip 34 | *.dSYM 35 | 36 | ## Playgrounds 37 | timeline.xctimeline 38 | playground.xcworkspace 39 | 40 | # Swift Package Manager 41 | # 42 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 43 | # Packages/ 44 | .build/ 45 | 46 | # CocoaPods 47 | # 48 | # We recommend against adding the Pods directory to your .gitignore. However 49 | # you should judge for yourself, the pros and cons are mentioned at: 50 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 51 | # 52 | # Pods/ 53 | 54 | # Carthage 55 | # 56 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 57 | # Carthage/Checkouts 58 | 59 | Carthage/Build 60 | 61 | # fastlane 62 | # 63 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 64 | # screenshots whenever they are needed. 65 | # For more information about the recommended setup visit: 66 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 67 | 68 | fastlane/report.xml 69 | fastlane/Preview.html 70 | fastlane/screenshots 71 | fastlane/test_output 72 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.2 2 | -------------------------------------------------------------------------------- /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 | EC256FDB1E61FFEB008E79B2 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC256FDA1E61FFEB008E79B2 /* AppDelegate.swift */; }; 11 | EC256FDD1E61FFEB008E79B2 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC256FDC1E61FFEB008E79B2 /* ViewController.swift */; }; 12 | EC256FE01E61FFEB008E79B2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EC256FDE1E61FFEB008E79B2 /* Main.storyboard */; }; 13 | EC256FE21E61FFEB008E79B2 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC256FE11E61FFEB008E79B2 /* Assets.xcassets */; }; 14 | EC256FE51E61FFEB008E79B2 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = EC256FE31E61FFEB008E79B2 /* LaunchScreen.storyboard */; }; 15 | F2505C5A8AAC6FA0E523D046 /* Pods_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4DEAEEBCE979F57E3409337 /* Pods_Example.framework */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 2CFAB4E50E6CB939AB3E6C06 /* 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 | AEEFE514A4238CF793E28151 /* 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 | B4DEAEEBCE979F57E3409337 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | EC256FD71E61FFEB008E79B2 /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | EC256FDA1E61FFEB008E79B2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | EC256FDC1E61FFEB008E79B2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 25 | EC256FDF1E61FFEB008E79B2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | EC256FE11E61FFEB008E79B2 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | EC256FE41E61FFEB008E79B2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 28 | EC256FE61E61FFEB008E79B2 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | EC256FD41E61FFEB008E79B2 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | F2505C5A8AAC6FA0E523D046 /* Pods_Example.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 3684C902CE46BAA04652C736 /* Frameworks */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | B4DEAEEBCE979F57E3409337 /* Pods_Example.framework */, 47 | ); 48 | name = Frameworks; 49 | sourceTree = ""; 50 | }; 51 | 778444294F5973A063D920E0 /* Pods */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 2CFAB4E50E6CB939AB3E6C06 /* Pods-Example.debug.xcconfig */, 55 | AEEFE514A4238CF793E28151 /* Pods-Example.release.xcconfig */, 56 | ); 57 | name = Pods; 58 | sourceTree = ""; 59 | }; 60 | EC256FCE1E61FFEB008E79B2 = { 61 | isa = PBXGroup; 62 | children = ( 63 | EC256FD91E61FFEB008E79B2 /* Example */, 64 | EC256FD81E61FFEB008E79B2 /* Products */, 65 | 778444294F5973A063D920E0 /* Pods */, 66 | 3684C902CE46BAA04652C736 /* Frameworks */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | EC256FD81E61FFEB008E79B2 /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | EC256FD71E61FFEB008E79B2 /* Example.app */, 74 | ); 75 | name = Products; 76 | sourceTree = ""; 77 | }; 78 | EC256FD91E61FFEB008E79B2 /* Example */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | EC256FDA1E61FFEB008E79B2 /* AppDelegate.swift */, 82 | EC256FDC1E61FFEB008E79B2 /* ViewController.swift */, 83 | EC256FDE1E61FFEB008E79B2 /* Main.storyboard */, 84 | EC256FE11E61FFEB008E79B2 /* Assets.xcassets */, 85 | EC256FE31E61FFEB008E79B2 /* LaunchScreen.storyboard */, 86 | EC256FE61E61FFEB008E79B2 /* Info.plist */, 87 | ); 88 | path = Example; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | EC256FD61E61FFEB008E79B2 /* Example */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = EC256FE91E61FFEB008E79B2 /* Build configuration list for PBXNativeTarget "Example" */; 97 | buildPhases = ( 98 | 12D2127045CAAC2152220377 /* [CP] Check Pods Manifest.lock */, 99 | EC256FD31E61FFEB008E79B2 /* Sources */, 100 | EC256FD41E61FFEB008E79B2 /* Frameworks */, 101 | EC256FD51E61FFEB008E79B2 /* Resources */, 102 | 6FDD54D682EA381CC1E03B16 /* [CP] Embed Pods Frameworks */, 103 | ); 104 | buildRules = ( 105 | ); 106 | dependencies = ( 107 | ); 108 | name = Example; 109 | productName = Example; 110 | productReference = EC256FD71E61FFEB008E79B2 /* Example.app */; 111 | productType = "com.apple.product-type.application"; 112 | }; 113 | /* End PBXNativeTarget section */ 114 | 115 | /* Begin PBXProject section */ 116 | EC256FCF1E61FFEB008E79B2 /* Project object */ = { 117 | isa = PBXProject; 118 | attributes = { 119 | LastSwiftUpdateCheck = 0820; 120 | LastUpgradeCheck = 1000; 121 | ORGANIZATIONNAME = "Kaique Damato"; 122 | TargetAttributes = { 123 | EC256FD61E61FFEB008E79B2 = { 124 | CreatedOnToolsVersion = 8.2.1; 125 | DevelopmentTeam = 66BPT5DT27; 126 | LastSwiftMigration = 1000; 127 | ProvisioningStyle = Automatic; 128 | }; 129 | }; 130 | }; 131 | buildConfigurationList = EC256FD21E61FFEB008E79B2 /* 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 = EC256FCE1E61FFEB008E79B2; 140 | productRefGroup = EC256FD81E61FFEB008E79B2 /* Products */; 141 | projectDirPath = ""; 142 | projectRoot = ""; 143 | targets = ( 144 | EC256FD61E61FFEB008E79B2 /* Example */, 145 | ); 146 | }; 147 | /* End PBXProject section */ 148 | 149 | /* Begin PBXResourcesBuildPhase section */ 150 | EC256FD51E61FFEB008E79B2 /* Resources */ = { 151 | isa = PBXResourcesBuildPhase; 152 | buildActionMask = 2147483647; 153 | files = ( 154 | EC256FE51E61FFEB008E79B2 /* LaunchScreen.storyboard in Resources */, 155 | EC256FE21E61FFEB008E79B2 /* Assets.xcassets in Resources */, 156 | EC256FE01E61FFEB008E79B2 /* Main.storyboard in Resources */, 157 | ); 158 | runOnlyForDeploymentPostprocessing = 0; 159 | }; 160 | /* End PBXResourcesBuildPhase section */ 161 | 162 | /* Begin PBXShellScriptBuildPhase section */ 163 | 12D2127045CAAC2152220377 /* [CP] Check Pods Manifest.lock */ = { 164 | isa = PBXShellScriptBuildPhase; 165 | buildActionMask = 2147483647; 166 | files = ( 167 | ); 168 | inputPaths = ( 169 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 170 | "${PODS_ROOT}/Manifest.lock", 171 | ); 172 | name = "[CP] Check Pods Manifest.lock"; 173 | outputPaths = ( 174 | "$(DERIVED_FILE_DIR)/Pods-Example-checkManifestLockResult.txt", 175 | ); 176 | runOnlyForDeploymentPostprocessing = 0; 177 | shellPath = /bin/sh; 178 | 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"; 179 | showEnvVarsInLog = 0; 180 | }; 181 | 6FDD54D682EA381CC1E03B16 /* [CP] Embed Pods Frameworks */ = { 182 | isa = PBXShellScriptBuildPhase; 183 | buildActionMask = 2147483647; 184 | files = ( 185 | ); 186 | inputPaths = ( 187 | "${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh", 188 | "${BUILT_PRODUCTS_DIR}/KDLoadingView/KDLoadingView.framework", 189 | ); 190 | name = "[CP] Embed Pods Frameworks"; 191 | outputPaths = ( 192 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KDLoadingView.framework", 193 | ); 194 | runOnlyForDeploymentPostprocessing = 0; 195 | shellPath = /bin/sh; 196 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Example/Pods-Example-frameworks.sh\"\n"; 197 | showEnvVarsInLog = 0; 198 | }; 199 | /* End PBXShellScriptBuildPhase section */ 200 | 201 | /* Begin PBXSourcesBuildPhase section */ 202 | EC256FD31E61FFEB008E79B2 /* Sources */ = { 203 | isa = PBXSourcesBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | EC256FDD1E61FFEB008E79B2 /* ViewController.swift in Sources */, 207 | EC256FDB1E61FFEB008E79B2 /* AppDelegate.swift in Sources */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXSourcesBuildPhase section */ 212 | 213 | /* Begin PBXVariantGroup section */ 214 | EC256FDE1E61FFEB008E79B2 /* Main.storyboard */ = { 215 | isa = PBXVariantGroup; 216 | children = ( 217 | EC256FDF1E61FFEB008E79B2 /* Base */, 218 | ); 219 | name = Main.storyboard; 220 | sourceTree = ""; 221 | }; 222 | EC256FE31E61FFEB008E79B2 /* LaunchScreen.storyboard */ = { 223 | isa = PBXVariantGroup; 224 | children = ( 225 | EC256FE41E61FFEB008E79B2 /* Base */, 226 | ); 227 | name = LaunchScreen.storyboard; 228 | sourceTree = ""; 229 | }; 230 | /* End PBXVariantGroup section */ 231 | 232 | /* Begin XCBuildConfiguration section */ 233 | EC256FE71E61FFEB008E79B2 /* 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_BLOCK_CAPTURE_AUTORELEASING = YES; 243 | CLANG_WARN_BOOL_CONVERSION = YES; 244 | CLANG_WARN_COMMA = YES; 245 | CLANG_WARN_CONSTANT_CONVERSION = YES; 246 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 247 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 248 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = dwarf; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | ENABLE_TESTABILITY = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_DYNAMIC_NO_PIC = NO; 269 | GCC_NO_COMMON_BLOCKS = YES; 270 | GCC_OPTIMIZATION_LEVEL = 0; 271 | GCC_PREPROCESSOR_DEFINITIONS = ( 272 | "DEBUG=1", 273 | "$(inherited)", 274 | ); 275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 279 | GCC_WARN_UNUSED_FUNCTION = YES; 280 | GCC_WARN_UNUSED_VARIABLE = YES; 281 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 282 | MTL_ENABLE_DEBUG_INFO = YES; 283 | ONLY_ACTIVE_ARCH = YES; 284 | SDKROOT = iphoneos; 285 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 286 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 287 | TARGETED_DEVICE_FAMILY = "1,2"; 288 | }; 289 | name = Debug; 290 | }; 291 | EC256FE81E61FFEB008E79B2 /* Release */ = { 292 | isa = XCBuildConfiguration; 293 | buildSettings = { 294 | ALWAYS_SEARCH_USER_PATHS = NO; 295 | CLANG_ANALYZER_NONNULL = YES; 296 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 297 | CLANG_CXX_LIBRARY = "libc++"; 298 | CLANG_ENABLE_MODULES = YES; 299 | CLANG_ENABLE_OBJC_ARC = YES; 300 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 301 | CLANG_WARN_BOOL_CONVERSION = YES; 302 | CLANG_WARN_COMMA = YES; 303 | CLANG_WARN_CONSTANT_CONVERSION = YES; 304 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 305 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 306 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 307 | CLANG_WARN_EMPTY_BODY = YES; 308 | CLANG_WARN_ENUM_CONVERSION = YES; 309 | CLANG_WARN_INFINITE_RECURSION = YES; 310 | CLANG_WARN_INT_CONVERSION = YES; 311 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 312 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 313 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 314 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 315 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 316 | CLANG_WARN_STRICT_PROTOTYPES = YES; 317 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 318 | CLANG_WARN_UNREACHABLE_CODE = YES; 319 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 320 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 321 | COPY_PHASE_STRIP = NO; 322 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 323 | ENABLE_NS_ASSERTIONS = NO; 324 | ENABLE_STRICT_OBJC_MSGSEND = YES; 325 | GCC_C_LANGUAGE_STANDARD = gnu99; 326 | GCC_NO_COMMON_BLOCKS = YES; 327 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 328 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 329 | GCC_WARN_UNDECLARED_SELECTOR = YES; 330 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 331 | GCC_WARN_UNUSED_FUNCTION = YES; 332 | GCC_WARN_UNUSED_VARIABLE = YES; 333 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 334 | MTL_ENABLE_DEBUG_INFO = NO; 335 | SDKROOT = iphoneos; 336 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 337 | TARGETED_DEVICE_FAMILY = "1,2"; 338 | VALIDATE_PRODUCT = YES; 339 | }; 340 | name = Release; 341 | }; 342 | EC256FEA1E61FFEB008E79B2 /* Debug */ = { 343 | isa = XCBuildConfiguration; 344 | baseConfigurationReference = 2CFAB4E50E6CB939AB3E6C06 /* Pods-Example.debug.xcconfig */; 345 | buildSettings = { 346 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 347 | DEVELOPMENT_TEAM = 66BPT5DT27; 348 | INFOPLIST_FILE = Example/Info.plist; 349 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 350 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 351 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.Example; 352 | PRODUCT_NAME = "$(TARGET_NAME)"; 353 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 354 | SWIFT_VERSION = 4.2; 355 | }; 356 | name = Debug; 357 | }; 358 | EC256FEB1E61FFEB008E79B2 /* Release */ = { 359 | isa = XCBuildConfiguration; 360 | baseConfigurationReference = AEEFE514A4238CF793E28151 /* Pods-Example.release.xcconfig */; 361 | buildSettings = { 362 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 363 | DEVELOPMENT_TEAM = 66BPT5DT27; 364 | INFOPLIST_FILE = Example/Info.plist; 365 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 366 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 367 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.Example; 368 | PRODUCT_NAME = "$(TARGET_NAME)"; 369 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 370 | SWIFT_VERSION = 4.2; 371 | }; 372 | name = Release; 373 | }; 374 | /* End XCBuildConfiguration section */ 375 | 376 | /* Begin XCConfigurationList section */ 377 | EC256FD21E61FFEB008E79B2 /* Build configuration list for PBXProject "Example" */ = { 378 | isa = XCConfigurationList; 379 | buildConfigurations = ( 380 | EC256FE71E61FFEB008E79B2 /* Debug */, 381 | EC256FE81E61FFEB008E79B2 /* Release */, 382 | ); 383 | defaultConfigurationIsVisible = 0; 384 | defaultConfigurationName = Release; 385 | }; 386 | EC256FE91E61FFEB008E79B2 /* Build configuration list for PBXNativeTarget "Example" */ = { 387 | isa = XCConfigurationList; 388 | buildConfigurations = ( 389 | EC256FEA1E61FFEB008E79B2 /* Debug */, 390 | EC256FEB1E61FFEB008E79B2 /* Release */, 391 | ); 392 | defaultConfigurationIsVisible = 0; 393 | defaultConfigurationName = Release; 394 | }; 395 | /* End XCConfigurationList section */ 396 | }; 397 | rootObject = EC256FCF1E61FFEB008E79B2 /* Project object */; 398 | } 399 | -------------------------------------------------------------------------------- /Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Kaique Damato on 2/25/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/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 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /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 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /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 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Kaique Damato on 2/25/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import KDLoadingView 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var loadingView: KDLoadingView! 15 | 16 | private var animating = false 17 | 18 | @IBAction func animate(_ sender: UIButton) { 19 | 20 | if loadingView.isAnimating { 21 | sender.setTitle("Start Loading", for: .normal) 22 | loadingView.stopAnimating() 23 | } else { 24 | sender.setTitle("Stop Loading", for: .normal) 25 | loadingView.startAnimating() 26 | } 27 | } 28 | 29 | override func touchesBegan(_ touches: Set, with event: UIEvent?) { 30 | super.touchesBegan(touches, with: event) 31 | 32 | if animating { 33 | animating = false 34 | KDLoadingView.stop() 35 | } else { 36 | animating = true 37 | KDLoadingView.animate(blurStyle: .dark, lineWidth: 3.0, size: 50, firstColor: #colorLiteral(red: 0.7450980544, green: 0.1568627506, blue: 0.07450980693, alpha: 1), secondColor: #colorLiteral(red: 0.2196078449, green: 0.007843137719, blue: 0.8549019694, alpha: 1)) 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | platform :ios, '8.0' 3 | 4 | target 'Example' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for Example 9 | pod 'KDLoadingView', :path => '../' 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KDLoadingView (1.0.5) 3 | 4 | DEPENDENCIES: 5 | - KDLoadingView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KDLoadingView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KDLoadingView: 121bd70507623c861ce59f0339d88b4fb02099cb 13 | 14 | PODFILE CHECKSUM: aea54c899de902214f8069e5860e20534a525441 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KDLoadingView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KDLoadingView", 3 | "version": "1.0.5", 4 | "summary": "A beautiful loading indicator inspired by material design.", 5 | "description": "The KDLoadingView is a completely customizable loading indicator that can be used in any iOS app.", 6 | "homepage": "https://github.com/KaiqueDamato/KDLoadingView.git", 7 | "license": "MIT", 8 | "authors": { 9 | "Kaique Pantosi D'amato": "kaiquedamato@icloud.com" 10 | }, 11 | "social_media_url": "https://twitter.com/KaiqueDamato", 12 | "platforms": { 13 | "ios": "8.0" 14 | }, 15 | "source": { 16 | "git": "https://github.com/KaiqueDamato/KDLoadingView.git", 17 | "tag": "1.0.5" 18 | }, 19 | "source_files": [ 20 | "KDLoadingView", 21 | "KDLoadingView/**/*.{h,m,swift}" 22 | ], 23 | "pod_target_xcconfig": { 24 | "SWIFT_VERSION": "4.2" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KDLoadingView (1.0.5) 3 | 4 | DEPENDENCIES: 5 | - KDLoadingView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KDLoadingView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KDLoadingView: 121bd70507623c861ce59f0339d88b4fb02099cb 13 | 14 | PODFILE CHECKSUM: aea54c899de902214f8069e5860e20534a525441 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 | 029F30513B463DFE4E2055188EAA5AC5 /* KDLoadingView.h in Headers */ = {isa = PBXBuildFile; fileRef = 0112F958F14CD0D2EFEFC2A8615B0AE0 /* KDLoadingView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 16562A29CC6CD77104D75BB360CFBEE5 /* Pods-Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 31FCB5C5FD8806511FD97A2BF0B08B3D /* KDLoadingView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 13C3CAABC98F3EB8E3AE6BFC5F736EC4 /* KDLoadingView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 3C03546D2C09265D605327C645A6E10F /* KDLoadingExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5777EC60FC17F4B9B1CD7E95A64D4B6B /* KDLoadingExtension.swift */; }; 14 | 443281B58870DDDF9B87ABB77166842F /* KDLoadingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5322EC41F20B738353827041A89D013 /* KDLoadingView.swift */; }; 15 | 4BE8D2AD521D948F0F4BD08A84ABCEAA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 16 | 52BC76742BC5F43D3E1483F07CFAE805 /* KDLoadingView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4906E1D12338DBBA7FEB55F747832183 /* KDLoadingView-dummy.m */; }; 17 | 615639BD55A120A3496A4C81A33D6083 /* KDLoadingBlurView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2D2BBF5DD0015D6E7693903FF3A771BE /* KDLoadingBlurView.swift */; }; 18 | 9F8B42B1971CF74021D45869D6EB481D /* Pods-Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */; }; 19 | CA374434C81B8FED78E8E2DDD1D9498A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | EC225FAFC94B577A172EC5BAA3784A2E /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = B8AB136850109C737B375912AEEC0F18; 28 | remoteInfo = KDLoadingView; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 0112F958F14CD0D2EFEFC2A8615B0AE0 /* KDLoadingView.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = KDLoadingView.h; path = KDLoadingView/KDLoadingView.h; sourceTree = ""; }; 34 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-resources.sh"; sourceTree = ""; }; 35 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Example-acknowledgements.plist"; sourceTree = ""; }; 36 | 13C3CAABC98F3EB8E3AE6BFC5F736EC4 /* KDLoadingView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KDLoadingView-umbrella.h"; sourceTree = ""; }; 37 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Example-umbrella.h"; sourceTree = ""; }; 38 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Example-dummy.m"; sourceTree = ""; }; 39 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-Example.modulemap"; sourceTree = ""; }; 40 | 2D2BBF5DD0015D6E7693903FF3A771BE /* KDLoadingBlurView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KDLoadingBlurView.swift; path = KDLoadingView/KDLoadingBlurView.swift; sourceTree = ""; }; 41 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Example-acknowledgements.markdown"; sourceTree = ""; }; 42 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Example-frameworks.sh"; sourceTree = ""; }; 43 | 3F73E42C381F50130286E8332D013AC6 /* KDLoadingView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = KDLoadingView.xcconfig; sourceTree = ""; }; 44 | 4906E1D12338DBBA7FEB55F747832183 /* KDLoadingView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "KDLoadingView-dummy.m"; sourceTree = ""; }; 45 | 5777EC60FC17F4B9B1CD7E95A64D4B6B /* KDLoadingExtension.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KDLoadingExtension.swift; path = KDLoadingView/KDLoadingExtension.swift; sourceTree = ""; }; 46 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 47 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | 5DC86CE6A31193C3F82418AD1EEFBA90 /* KDLoadingView.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; path = KDLoadingView.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 49 | 5E31285A3C87F8EFE2E4F8ECA4DBA59B /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 50 | 6D11D929F834FF5CF7A5A1A42ECE766C /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 51 | 81FD9D59E2A97D8055C6170A5713CD96 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 53 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.release.xcconfig"; sourceTree = ""; }; 54 | B0926DDA391D7FE8BED55B1F1E3427C6 /* Pods_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_Example.framework; path = "Pods-Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | D5322EC41F20B738353827041A89D013 /* KDLoadingView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = KDLoadingView.swift; path = KDLoadingView/KDLoadingView.swift; sourceTree = ""; }; 56 | D80E9142597B569D08636071F368FFED /* KDLoadingView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KDLoadingView-prefix.pch"; sourceTree = ""; }; 57 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Example.debug.xcconfig"; sourceTree = ""; }; 58 | F862780EDCB77F78950E139D87374DE4 /* KDLoadingView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = KDLoadingView.framework; path = KDLoadingView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | FE02A380B511ED4EECCE2AA324C57740 /* KDLoadingView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = KDLoadingView.modulemap; sourceTree = ""; }; 60 | /* End PBXFileReference section */ 61 | 62 | /* Begin PBXFrameworksBuildPhase section */ 63 | 9FBE4F3F36F31C7F5881778CF55C7EE6 /* Frameworks */ = { 64 | isa = PBXFrameworksBuildPhase; 65 | buildActionMask = 2147483647; 66 | files = ( 67 | CA374434C81B8FED78E8E2DDD1D9498A /* Foundation.framework in Frameworks */, 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | B4B26662A9A21433BB435AB658BB4ED1 /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 4BE8D2AD521D948F0F4BD08A84ABCEAA /* Foundation.framework in Frameworks */, 76 | ); 77 | runOnlyForDeploymentPostprocessing = 0; 78 | }; 79 | /* End PBXFrameworksBuildPhase section */ 80 | 81 | /* Begin PBXGroup section */ 82 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 5B81C04F8E84EAE60AE15C8695031A5F /* Info.plist */, 86 | 25A37D4D536CC5988A439441117C41F4 /* Pods-Example.modulemap */, 87 | 3ADE9E5655579DB0F79DC9C80758673C /* Pods-Example-acknowledgements.markdown */, 88 | 11434BC759D12F57876FBB74A4775E74 /* Pods-Example-acknowledgements.plist */, 89 | 1AD65E35A3233FBE6F2EFDEB3D43D114 /* Pods-Example-dummy.m */, 90 | 3F3EFEBDE6702DEFDFFF9D5C6DBC3773 /* Pods-Example-frameworks.sh */, 91 | 044AA3E23F71470C9B5F50D44720EA0D /* Pods-Example-resources.sh */, 92 | 15D3FE98E9F2D34863BD3F3597A0485A /* Pods-Example-umbrella.h */, 93 | EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */, 94 | A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */, 95 | ); 96 | name = "Pods-Example"; 97 | path = "Target Support Files/Pods-Example"; 98 | sourceTree = ""; 99 | }; 100 | 428139E1D66EEA3E06790FB9BD1CB04C /* Pod */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 5DC86CE6A31193C3F82418AD1EEFBA90 /* KDLoadingView.podspec */, 104 | 5E31285A3C87F8EFE2E4F8ECA4DBA59B /* LICENSE */, 105 | 6D11D929F834FF5CF7A5A1A42ECE766C /* README.md */, 106 | ); 107 | name = Pod; 108 | sourceTree = ""; 109 | }; 110 | 5E0D919E635D23B70123790B8308F8EF /* iOS */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 5A16F4CFC63FAC439D7A04994F579A03 /* Foundation.framework */, 114 | ); 115 | name = iOS; 116 | sourceTree = ""; 117 | }; 118 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 1B5ECB992A56AE0C70DC72D88BB90B05 /* Pods-Example */, 122 | ); 123 | name = "Targets Support Files"; 124 | sourceTree = ""; 125 | }; 126 | 7DB346D0F39D3F0E887471402A8071AB = { 127 | isa = PBXGroup; 128 | children = ( 129 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 130 | EF81E2A51483CCD4D25C9A6C0AC53CFB /* Development Pods */, 131 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 132 | EDBA344E52177F4AF11643CD5A2A18F0 /* Products */, 133 | 6A4F6A14E3FB951290E4531728B7A461 /* Targets Support Files */, 134 | ); 135 | sourceTree = ""; 136 | }; 137 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 5E0D919E635D23B70123790B8308F8EF /* iOS */, 141 | ); 142 | name = Frameworks; 143 | sourceTree = ""; 144 | }; 145 | BDE4D4B5CEF03627E7C0E1A323A81B75 /* KDLoadingView */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 2D2BBF5DD0015D6E7693903FF3A771BE /* KDLoadingBlurView.swift */, 149 | 5777EC60FC17F4B9B1CD7E95A64D4B6B /* KDLoadingExtension.swift */, 150 | 0112F958F14CD0D2EFEFC2A8615B0AE0 /* KDLoadingView.h */, 151 | D5322EC41F20B738353827041A89D013 /* KDLoadingView.swift */, 152 | 428139E1D66EEA3E06790FB9BD1CB04C /* Pod */, 153 | BF5709CD679F3AADDE97B25C56CB1358 /* Support Files */, 154 | ); 155 | name = KDLoadingView; 156 | path = ../..; 157 | sourceTree = ""; 158 | }; 159 | BF5709CD679F3AADDE97B25C56CB1358 /* Support Files */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 81FD9D59E2A97D8055C6170A5713CD96 /* Info.plist */, 163 | FE02A380B511ED4EECCE2AA324C57740 /* KDLoadingView.modulemap */, 164 | 3F73E42C381F50130286E8332D013AC6 /* KDLoadingView.xcconfig */, 165 | 4906E1D12338DBBA7FEB55F747832183 /* KDLoadingView-dummy.m */, 166 | D80E9142597B569D08636071F368FFED /* KDLoadingView-prefix.pch */, 167 | 13C3CAABC98F3EB8E3AE6BFC5F736EC4 /* KDLoadingView-umbrella.h */, 168 | ); 169 | name = "Support Files"; 170 | path = "Example/Pods/Target Support Files/KDLoadingView"; 171 | sourceTree = ""; 172 | }; 173 | EDBA344E52177F4AF11643CD5A2A18F0 /* Products */ = { 174 | isa = PBXGroup; 175 | children = ( 176 | F862780EDCB77F78950E139D87374DE4 /* KDLoadingView.framework */, 177 | B0926DDA391D7FE8BED55B1F1E3427C6 /* Pods_Example.framework */, 178 | ); 179 | name = Products; 180 | sourceTree = ""; 181 | }; 182 | EF81E2A51483CCD4D25C9A6C0AC53CFB /* Development Pods */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | BDE4D4B5CEF03627E7C0E1A323A81B75 /* KDLoadingView */, 186 | ); 187 | name = "Development Pods"; 188 | sourceTree = ""; 189 | }; 190 | /* End PBXGroup section */ 191 | 192 | /* Begin PBXHeadersBuildPhase section */ 193 | A880F694F536BD125D90886CC250803A /* Headers */ = { 194 | isa = PBXHeadersBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | 31FCB5C5FD8806511FD97A2BF0B08B3D /* KDLoadingView-umbrella.h in Headers */, 198 | 029F30513B463DFE4E2055188EAA5AC5 /* KDLoadingView.h in Headers */, 199 | ); 200 | runOnlyForDeploymentPostprocessing = 0; 201 | }; 202 | EC76077EFFFDC26D638150BE014CE152 /* Headers */ = { 203 | isa = PBXHeadersBuildPhase; 204 | buildActionMask = 2147483647; 205 | files = ( 206 | 16562A29CC6CD77104D75BB360CFBEE5 /* Pods-Example-umbrella.h in Headers */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | /* End PBXHeadersBuildPhase section */ 211 | 212 | /* Begin PBXNativeTarget section */ 213 | B8AB136850109C737B375912AEEC0F18 /* KDLoadingView */ = { 214 | isa = PBXNativeTarget; 215 | buildConfigurationList = B831069ED9555E5BF2B099EF73742330 /* Build configuration list for PBXNativeTarget "KDLoadingView" */; 216 | buildPhases = ( 217 | 68612DFEC9AE6AC1D0440289FFE9D40D /* Sources */, 218 | 9FBE4F3F36F31C7F5881778CF55C7EE6 /* Frameworks */, 219 | A880F694F536BD125D90886CC250803A /* Headers */, 220 | ); 221 | buildRules = ( 222 | ); 223 | dependencies = ( 224 | ); 225 | name = KDLoadingView; 226 | productName = KDLoadingView; 227 | productReference = F862780EDCB77F78950E139D87374DE4 /* KDLoadingView.framework */; 228 | productType = "com.apple.product-type.framework"; 229 | }; 230 | EE985040F46EEBE40642DFE7F32FDACD /* Pods-Example */ = { 231 | isa = PBXNativeTarget; 232 | buildConfigurationList = DF60E0D1B0A100B05F5579A5D0586FDB /* Build configuration list for PBXNativeTarget "Pods-Example" */; 233 | buildPhases = ( 234 | 26A1A34C6B517FEE9D9833B7CBC7C74D /* Sources */, 235 | B4B26662A9A21433BB435AB658BB4ED1 /* Frameworks */, 236 | EC76077EFFFDC26D638150BE014CE152 /* Headers */, 237 | ); 238 | buildRules = ( 239 | ); 240 | dependencies = ( 241 | 260D6455422D123B286664EEC420FB75 /* PBXTargetDependency */, 242 | ); 243 | name = "Pods-Example"; 244 | productName = "Pods-Example"; 245 | productReference = B0926DDA391D7FE8BED55B1F1E3427C6 /* Pods_Example.framework */; 246 | productType = "com.apple.product-type.framework"; 247 | }; 248 | /* End PBXNativeTarget section */ 249 | 250 | /* Begin PBXProject section */ 251 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 252 | isa = PBXProject; 253 | attributes = { 254 | LastSwiftUpdateCheck = 0930; 255 | LastUpgradeCheck = 0930; 256 | }; 257 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 258 | compatibilityVersion = "Xcode 3.2"; 259 | developmentRegion = English; 260 | hasScannedForEncodings = 0; 261 | knownRegions = ( 262 | en, 263 | ); 264 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 265 | productRefGroup = EDBA344E52177F4AF11643CD5A2A18F0 /* Products */; 266 | projectDirPath = ""; 267 | projectRoot = ""; 268 | targets = ( 269 | B8AB136850109C737B375912AEEC0F18 /* KDLoadingView */, 270 | EE985040F46EEBE40642DFE7F32FDACD /* Pods-Example */, 271 | ); 272 | }; 273 | /* End PBXProject section */ 274 | 275 | /* Begin PBXSourcesBuildPhase section */ 276 | 26A1A34C6B517FEE9D9833B7CBC7C74D /* Sources */ = { 277 | isa = PBXSourcesBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | 9F8B42B1971CF74021D45869D6EB481D /* Pods-Example-dummy.m in Sources */, 281 | ); 282 | runOnlyForDeploymentPostprocessing = 0; 283 | }; 284 | 68612DFEC9AE6AC1D0440289FFE9D40D /* Sources */ = { 285 | isa = PBXSourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 615639BD55A120A3496A4C81A33D6083 /* KDLoadingBlurView.swift in Sources */, 289 | 3C03546D2C09265D605327C645A6E10F /* KDLoadingExtension.swift in Sources */, 290 | 52BC76742BC5F43D3E1483F07CFAE805 /* KDLoadingView-dummy.m in Sources */, 291 | 443281B58870DDDF9B87ABB77166842F /* KDLoadingView.swift in Sources */, 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | }; 295 | /* End PBXSourcesBuildPhase section */ 296 | 297 | /* Begin PBXTargetDependency section */ 298 | 260D6455422D123B286664EEC420FB75 /* PBXTargetDependency */ = { 299 | isa = PBXTargetDependency; 300 | name = KDLoadingView; 301 | target = B8AB136850109C737B375912AEEC0F18 /* KDLoadingView */; 302 | targetProxy = EC225FAFC94B577A172EC5BAA3784A2E /* PBXContainerItemProxy */; 303 | }; 304 | /* End PBXTargetDependency section */ 305 | 306 | /* Begin XCBuildConfiguration section */ 307 | 1EE19F5DD95931924296F637BF18BD8F /* Debug */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_ANALYZER_NONNULL = YES; 312 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 313 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 314 | CLANG_CXX_LIBRARY = "libc++"; 315 | CLANG_ENABLE_MODULES = YES; 316 | CLANG_ENABLE_OBJC_ARC = YES; 317 | CLANG_ENABLE_OBJC_WEAK = YES; 318 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 319 | CLANG_WARN_BOOL_CONVERSION = YES; 320 | CLANG_WARN_COMMA = YES; 321 | CLANG_WARN_CONSTANT_CONVERSION = YES; 322 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 323 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 324 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 337 | CLANG_WARN_UNREACHABLE_CODE = YES; 338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 339 | CODE_SIGNING_ALLOWED = NO; 340 | CODE_SIGNING_REQUIRED = NO; 341 | COPY_PHASE_STRIP = NO; 342 | DEBUG_INFORMATION_FORMAT = dwarf; 343 | ENABLE_STRICT_OBJC_MSGSEND = YES; 344 | ENABLE_TESTABILITY = YES; 345 | GCC_C_LANGUAGE_STANDARD = gnu11; 346 | GCC_DYNAMIC_NO_PIC = NO; 347 | GCC_NO_COMMON_BLOCKS = YES; 348 | GCC_OPTIMIZATION_LEVEL = 0; 349 | GCC_PREPROCESSOR_DEFINITIONS = ( 350 | "POD_CONFIGURATION_DEBUG=1", 351 | "DEBUG=1", 352 | "$(inherited)", 353 | ); 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNDECLARED_SELECTOR = YES; 357 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 358 | GCC_WARN_UNUSED_FUNCTION = YES; 359 | GCC_WARN_UNUSED_VARIABLE = YES; 360 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 361 | MTL_ENABLE_DEBUG_INFO = YES; 362 | ONLY_ACTIVE_ARCH = YES; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | STRIP_INSTALLED_PRODUCT = NO; 365 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 366 | SYMROOT = "${SRCROOT}/../build"; 367 | }; 368 | name = Debug; 369 | }; 370 | 2E41D76D9D469009D56226359F44CEA7 /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | baseConfigurationReference = 3F73E42C381F50130286E8332D013AC6 /* KDLoadingView.xcconfig */; 373 | buildSettings = { 374 | CODE_SIGN_IDENTITY = ""; 375 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 376 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 377 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 378 | CURRENT_PROJECT_VERSION = 1; 379 | DEFINES_MODULE = YES; 380 | DYLIB_COMPATIBILITY_VERSION = 1; 381 | DYLIB_CURRENT_VERSION = 1; 382 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 383 | GCC_PREFIX_HEADER = "Target Support Files/KDLoadingView/KDLoadingView-prefix.pch"; 384 | INFOPLIST_FILE = "Target Support Files/KDLoadingView/Info.plist"; 385 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 386 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 388 | MODULEMAP_FILE = "Target Support Files/KDLoadingView/KDLoadingView.modulemap"; 389 | PRODUCT_MODULE_NAME = KDLoadingView; 390 | PRODUCT_NAME = KDLoadingView; 391 | SDKROOT = iphoneos; 392 | SKIP_INSTALL = YES; 393 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 394 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 395 | SWIFT_VERSION = 4.2; 396 | TARGETED_DEVICE_FAMILY = "1,2"; 397 | VERSIONING_SYSTEM = "apple-generic"; 398 | VERSION_INFO_PREFIX = ""; 399 | }; 400 | name = Debug; 401 | }; 402 | 895F7B1201D5FA83EC919D71C71AD96B /* Debug */ = { 403 | isa = XCBuildConfiguration; 404 | baseConfigurationReference = EFC5B2E05B58CD826FD55659BF1D7E39 /* Pods-Example.debug.xcconfig */; 405 | buildSettings = { 406 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 407 | CODE_SIGN_IDENTITY = ""; 408 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 410 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 411 | CURRENT_PROJECT_VERSION = 1; 412 | DEFINES_MODULE = YES; 413 | DYLIB_COMPATIBILITY_VERSION = 1; 414 | DYLIB_CURRENT_VERSION = 1; 415 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 416 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 417 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 418 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 419 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 420 | MACH_O_TYPE = staticlib; 421 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 422 | OTHER_LDFLAGS = ""; 423 | OTHER_LIBTOOLFLAGS = ""; 424 | PODS_ROOT = "$(SRCROOT)"; 425 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 426 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 427 | SDKROOT = iphoneos; 428 | SKIP_INSTALL = YES; 429 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 430 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | VERSIONING_SYSTEM = "apple-generic"; 433 | VERSION_INFO_PREFIX = ""; 434 | }; 435 | name = Debug; 436 | }; 437 | A6F00EF3A57CE1B7C5758547F45A4307 /* Release */ = { 438 | isa = XCBuildConfiguration; 439 | baseConfigurationReference = A79AC23D5A157FED70D9C53D844B2319 /* Pods-Example.release.xcconfig */; 440 | buildSettings = { 441 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 442 | CODE_SIGN_IDENTITY = ""; 443 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 444 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 445 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 446 | CURRENT_PROJECT_VERSION = 1; 447 | DEFINES_MODULE = YES; 448 | DYLIB_COMPATIBILITY_VERSION = 1; 449 | DYLIB_CURRENT_VERSION = 1; 450 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 451 | INFOPLIST_FILE = "Target Support Files/Pods-Example/Info.plist"; 452 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 453 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 455 | MACH_O_TYPE = staticlib; 456 | MODULEMAP_FILE = "Target Support Files/Pods-Example/Pods-Example.modulemap"; 457 | OTHER_LDFLAGS = ""; 458 | OTHER_LIBTOOLFLAGS = ""; 459 | PODS_ROOT = "$(SRCROOT)"; 460 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 461 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 462 | SDKROOT = iphoneos; 463 | SKIP_INSTALL = YES; 464 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 465 | TARGETED_DEVICE_FAMILY = "1,2"; 466 | VALIDATE_PRODUCT = YES; 467 | VERSIONING_SYSTEM = "apple-generic"; 468 | VERSION_INFO_PREFIX = ""; 469 | }; 470 | name = Release; 471 | }; 472 | E6E64260302C4F209CE6AF2A90A14C0C /* Release */ = { 473 | isa = XCBuildConfiguration; 474 | baseConfigurationReference = 3F73E42C381F50130286E8332D013AC6 /* KDLoadingView.xcconfig */; 475 | buildSettings = { 476 | CODE_SIGN_IDENTITY = ""; 477 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 478 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 479 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 480 | CURRENT_PROJECT_VERSION = 1; 481 | DEFINES_MODULE = YES; 482 | DYLIB_COMPATIBILITY_VERSION = 1; 483 | DYLIB_CURRENT_VERSION = 1; 484 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 485 | GCC_PREFIX_HEADER = "Target Support Files/KDLoadingView/KDLoadingView-prefix.pch"; 486 | INFOPLIST_FILE = "Target Support Files/KDLoadingView/Info.plist"; 487 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 488 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 489 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 490 | MODULEMAP_FILE = "Target Support Files/KDLoadingView/KDLoadingView.modulemap"; 491 | PRODUCT_MODULE_NAME = KDLoadingView; 492 | PRODUCT_NAME = KDLoadingView; 493 | SDKROOT = iphoneos; 494 | SKIP_INSTALL = YES; 495 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 496 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 497 | SWIFT_VERSION = 4.2; 498 | TARGETED_DEVICE_FAMILY = "1,2"; 499 | VALIDATE_PRODUCT = YES; 500 | VERSIONING_SYSTEM = "apple-generic"; 501 | VERSION_INFO_PREFIX = ""; 502 | }; 503 | name = Release; 504 | }; 505 | F4568DEE257655D290C2B9CEAB37C934 /* Release */ = { 506 | isa = XCBuildConfiguration; 507 | buildSettings = { 508 | ALWAYS_SEARCH_USER_PATHS = NO; 509 | CLANG_ANALYZER_NONNULL = YES; 510 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 511 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 512 | CLANG_CXX_LIBRARY = "libc++"; 513 | CLANG_ENABLE_MODULES = YES; 514 | CLANG_ENABLE_OBJC_ARC = YES; 515 | CLANG_ENABLE_OBJC_WEAK = YES; 516 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 517 | CLANG_WARN_BOOL_CONVERSION = YES; 518 | CLANG_WARN_COMMA = YES; 519 | CLANG_WARN_CONSTANT_CONVERSION = YES; 520 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 521 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 522 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 523 | CLANG_WARN_EMPTY_BODY = YES; 524 | CLANG_WARN_ENUM_CONVERSION = YES; 525 | CLANG_WARN_INFINITE_RECURSION = YES; 526 | CLANG_WARN_INT_CONVERSION = YES; 527 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 528 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 529 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 530 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 531 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 532 | CLANG_WARN_STRICT_PROTOTYPES = YES; 533 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 534 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 535 | CLANG_WARN_UNREACHABLE_CODE = YES; 536 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 537 | CODE_SIGNING_ALLOWED = NO; 538 | CODE_SIGNING_REQUIRED = NO; 539 | COPY_PHASE_STRIP = NO; 540 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 541 | ENABLE_NS_ASSERTIONS = NO; 542 | ENABLE_STRICT_OBJC_MSGSEND = YES; 543 | GCC_C_LANGUAGE_STANDARD = gnu11; 544 | GCC_NO_COMMON_BLOCKS = YES; 545 | GCC_PREPROCESSOR_DEFINITIONS = ( 546 | "POD_CONFIGURATION_RELEASE=1", 547 | "$(inherited)", 548 | ); 549 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 550 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 551 | GCC_WARN_UNDECLARED_SELECTOR = YES; 552 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 553 | GCC_WARN_UNUSED_FUNCTION = YES; 554 | GCC_WARN_UNUSED_VARIABLE = YES; 555 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 556 | MTL_ENABLE_DEBUG_INFO = NO; 557 | PRODUCT_NAME = "$(TARGET_NAME)"; 558 | STRIP_INSTALLED_PRODUCT = NO; 559 | SYMROOT = "${SRCROOT}/../build"; 560 | }; 561 | name = Release; 562 | }; 563 | /* End XCBuildConfiguration section */ 564 | 565 | /* Begin XCConfigurationList section */ 566 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 567 | isa = XCConfigurationList; 568 | buildConfigurations = ( 569 | 1EE19F5DD95931924296F637BF18BD8F /* Debug */, 570 | F4568DEE257655D290C2B9CEAB37C934 /* Release */, 571 | ); 572 | defaultConfigurationIsVisible = 0; 573 | defaultConfigurationName = Release; 574 | }; 575 | B831069ED9555E5BF2B099EF73742330 /* Build configuration list for PBXNativeTarget "KDLoadingView" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 2E41D76D9D469009D56226359F44CEA7 /* Debug */, 579 | E6E64260302C4F209CE6AF2A90A14C0C /* Release */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | DF60E0D1B0A100B05F5579A5D0586FDB /* Build configuration list for PBXNativeTarget "Pods-Example" */ = { 585 | isa = XCConfigurationList; 586 | buildConfigurations = ( 587 | 895F7B1201D5FA83EC919D71C71AD96B /* Debug */, 588 | A6F00EF3A57CE1B7C5758547F45A4307 /* Release */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 596 | } 597 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KDLoadingView/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.5 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KDLoadingView/KDLoadingView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_KDLoadingView : NSObject 3 | @end 4 | @implementation PodsDummy_KDLoadingView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KDLoadingView/KDLoadingView-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/KDLoadingView/KDLoadingView-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 | #import "KDLoadingView.h" 14 | 15 | FOUNDATION_EXPORT double KDLoadingViewVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char KDLoadingViewVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KDLoadingView/KDLoadingView.modulemap: -------------------------------------------------------------------------------- 1 | framework module KDLoadingView { 2 | umbrella header "KDLoadingView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KDLoadingView/KDLoadingView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/KDLoadingView 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 | ## KDLoadingView 5 | 6 | MIT License 7 | 8 | Copyright (c) 2017 Kaique Pantosi D'amato 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /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 | MIT License 18 | 19 | Copyright (c) 2017 Kaique Pantosi D'amato 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | KDLoadingView 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /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}/KDLoadingView/KDLoadingView.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/KDLoadingView/KDLoadingView.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}/KDLoadingView" 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}/KDLoadingView/KDLoadingView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KDLoadingView" 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}/KDLoadingView" 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}/KDLoadingView/KDLoadingView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KDLoadingView" 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 | -------------------------------------------------------------------------------- /KDLoadingView.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "KDLoadingView" 3 | s.version = "1.0.5" 4 | s.summary = "A beautiful loading indicator inspired by material design." 5 | s.description = "The KDLoadingView is a completely customizable loading indicator that can be used in any iOS app." 6 | s.homepage = "https://github.com/KaiqueDamato/KDLoadingView.git" 7 | s.license = "MIT" 8 | s.author = { "Kaique Pantosi D'amato" => "kaiquedamato@icloud.com" } 9 | s.social_media_url = "https://twitter.com/KaiqueDamato" 10 | s.platform = :ios, "8.0" 11 | s.source = { :git => "https://github.com/KaiqueDamato/KDLoadingView.git", :tag => "1.0.5" } 12 | s.source_files = "KDLoadingView", "KDLoadingView/**/*.{h,m,swift}" 13 | s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.2' } 14 | end 15 | -------------------------------------------------------------------------------- /KDLoadingView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AC3254C11E67D66D007BAE50 /* KDLoadingBlurView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC3254C01E67D66D007BAE50 /* KDLoadingBlurView.swift */; }; 11 | AC3254C31E67D697007BAE50 /* KDLoadingExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC3254C21E67D697007BAE50 /* KDLoadingExtension.swift */; }; 12 | ECAB41E71E635C000052F4CB /* KDLoadingView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECAB41DD1E635C000052F4CB /* KDLoadingView.framework */; }; 13 | ECAB41EC1E635C000052F4CB /* KDLoadingViewTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECAB41EB1E635C000052F4CB /* KDLoadingViewTests.swift */; }; 14 | ECAB41EE1E635C000052F4CB /* KDLoadingView.h in Headers */ = {isa = PBXBuildFile; fileRef = ECAB41E01E635C000052F4CB /* KDLoadingView.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | ECAB41F81E635C2C0052F4CB /* KDLoadingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECAB41F71E635C2C0052F4CB /* KDLoadingView.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXContainerItemProxy section */ 19 | ECAB41E81E635C000052F4CB /* PBXContainerItemProxy */ = { 20 | isa = PBXContainerItemProxy; 21 | containerPortal = ECAB41D41E635C000052F4CB /* Project object */; 22 | proxyType = 1; 23 | remoteGlobalIDString = ECAB41DC1E635C000052F4CB; 24 | remoteInfo = KDLoadingView; 25 | }; 26 | /* End PBXContainerItemProxy section */ 27 | 28 | /* Begin PBXFileReference section */ 29 | AC3254C01E67D66D007BAE50 /* KDLoadingBlurView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KDLoadingBlurView.swift; sourceTree = ""; }; 30 | AC3254C21E67D697007BAE50 /* KDLoadingExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KDLoadingExtension.swift; sourceTree = ""; }; 31 | ECAB41DD1E635C000052F4CB /* KDLoadingView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = KDLoadingView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | ECAB41E01E635C000052F4CB /* KDLoadingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KDLoadingView.h; sourceTree = ""; }; 33 | ECAB41E11E635C000052F4CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | ECAB41E61E635C000052F4CB /* KDLoadingViewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KDLoadingViewTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | ECAB41EB1E635C000052F4CB /* KDLoadingViewTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KDLoadingViewTests.swift; sourceTree = ""; }; 36 | ECAB41ED1E635C000052F4CB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | ECAB41F71E635C2C0052F4CB /* KDLoadingView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = KDLoadingView.swift; sourceTree = ""; }; 38 | /* End PBXFileReference section */ 39 | 40 | /* Begin PBXFrameworksBuildPhase section */ 41 | ECAB41D91E635C000052F4CB /* Frameworks */ = { 42 | isa = PBXFrameworksBuildPhase; 43 | buildActionMask = 2147483647; 44 | files = ( 45 | ); 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | ECAB41E31E635C000052F4CB /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ECAB41E71E635C000052F4CB /* KDLoadingView.framework in Frameworks */, 53 | ); 54 | runOnlyForDeploymentPostprocessing = 0; 55 | }; 56 | /* End PBXFrameworksBuildPhase section */ 57 | 58 | /* Begin PBXGroup section */ 59 | ECAB41D31E635C000052F4CB = { 60 | isa = PBXGroup; 61 | children = ( 62 | ECAB41DF1E635C000052F4CB /* KDLoadingView */, 63 | ECAB41EA1E635C000052F4CB /* KDLoadingViewTests */, 64 | ECAB41DE1E635C000052F4CB /* Products */, 65 | ); 66 | sourceTree = ""; 67 | }; 68 | ECAB41DE1E635C000052F4CB /* Products */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | ECAB41DD1E635C000052F4CB /* KDLoadingView.framework */, 72 | ECAB41E61E635C000052F4CB /* KDLoadingViewTests.xctest */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | ECAB41DF1E635C000052F4CB /* KDLoadingView */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | ECAB41E01E635C000052F4CB /* KDLoadingView.h */, 81 | ECAB41F71E635C2C0052F4CB /* KDLoadingView.swift */, 82 | AC3254C01E67D66D007BAE50 /* KDLoadingBlurView.swift */, 83 | AC3254C21E67D697007BAE50 /* KDLoadingExtension.swift */, 84 | ECAB41E11E635C000052F4CB /* Info.plist */, 85 | ); 86 | path = KDLoadingView; 87 | sourceTree = ""; 88 | }; 89 | ECAB41EA1E635C000052F4CB /* KDLoadingViewTests */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | ECAB41EB1E635C000052F4CB /* KDLoadingViewTests.swift */, 93 | ECAB41ED1E635C000052F4CB /* Info.plist */, 94 | ); 95 | path = KDLoadingViewTests; 96 | sourceTree = ""; 97 | }; 98 | /* End PBXGroup section */ 99 | 100 | /* Begin PBXHeadersBuildPhase section */ 101 | ECAB41DA1E635C000052F4CB /* Headers */ = { 102 | isa = PBXHeadersBuildPhase; 103 | buildActionMask = 2147483647; 104 | files = ( 105 | ECAB41EE1E635C000052F4CB /* KDLoadingView.h in Headers */, 106 | ); 107 | runOnlyForDeploymentPostprocessing = 0; 108 | }; 109 | /* End PBXHeadersBuildPhase section */ 110 | 111 | /* Begin PBXNativeTarget section */ 112 | ECAB41DC1E635C000052F4CB /* KDLoadingView */ = { 113 | isa = PBXNativeTarget; 114 | buildConfigurationList = ECAB41F11E635C000052F4CB /* Build configuration list for PBXNativeTarget "KDLoadingView" */; 115 | buildPhases = ( 116 | ECAB41D81E635C000052F4CB /* Sources */, 117 | ECAB41D91E635C000052F4CB /* Frameworks */, 118 | ECAB41DA1E635C000052F4CB /* Headers */, 119 | ECAB41DB1E635C000052F4CB /* Resources */, 120 | ); 121 | buildRules = ( 122 | ); 123 | dependencies = ( 124 | ); 125 | name = KDLoadingView; 126 | productName = KDLoadingView; 127 | productReference = ECAB41DD1E635C000052F4CB /* KDLoadingView.framework */; 128 | productType = "com.apple.product-type.framework"; 129 | }; 130 | ECAB41E51E635C000052F4CB /* KDLoadingViewTests */ = { 131 | isa = PBXNativeTarget; 132 | buildConfigurationList = ECAB41F41E635C000052F4CB /* Build configuration list for PBXNativeTarget "KDLoadingViewTests" */; 133 | buildPhases = ( 134 | ECAB41E21E635C000052F4CB /* Sources */, 135 | ECAB41E31E635C000052F4CB /* Frameworks */, 136 | ECAB41E41E635C000052F4CB /* Resources */, 137 | ); 138 | buildRules = ( 139 | ); 140 | dependencies = ( 141 | ECAB41E91E635C000052F4CB /* PBXTargetDependency */, 142 | ); 143 | name = KDLoadingViewTests; 144 | productName = KDLoadingViewTests; 145 | productReference = ECAB41E61E635C000052F4CB /* KDLoadingViewTests.xctest */; 146 | productType = "com.apple.product-type.bundle.unit-test"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | ECAB41D41E635C000052F4CB /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastSwiftUpdateCheck = 0820; 155 | LastUpgradeCheck = 1000; 156 | ORGANIZATIONNAME = "Kaique Damato"; 157 | TargetAttributes = { 158 | ECAB41DC1E635C000052F4CB = { 159 | CreatedOnToolsVersion = 8.2.1; 160 | DevelopmentTeam = 66BPT5DT27; 161 | LastSwiftMigration = 1000; 162 | ProvisioningStyle = Automatic; 163 | }; 164 | ECAB41E51E635C000052F4CB = { 165 | CreatedOnToolsVersion = 8.2.1; 166 | DevelopmentTeam = 66BPT5DT27; 167 | LastSwiftMigration = 1000; 168 | ProvisioningStyle = Automatic; 169 | }; 170 | }; 171 | }; 172 | buildConfigurationList = ECAB41D71E635C000052F4CB /* Build configuration list for PBXProject "KDLoadingView" */; 173 | compatibilityVersion = "Xcode 3.2"; 174 | developmentRegion = English; 175 | hasScannedForEncodings = 0; 176 | knownRegions = ( 177 | en, 178 | ); 179 | mainGroup = ECAB41D31E635C000052F4CB; 180 | productRefGroup = ECAB41DE1E635C000052F4CB /* Products */; 181 | projectDirPath = ""; 182 | projectRoot = ""; 183 | targets = ( 184 | ECAB41DC1E635C000052F4CB /* KDLoadingView */, 185 | ECAB41E51E635C000052F4CB /* KDLoadingViewTests */, 186 | ); 187 | }; 188 | /* End PBXProject section */ 189 | 190 | /* Begin PBXResourcesBuildPhase section */ 191 | ECAB41DB1E635C000052F4CB /* Resources */ = { 192 | isa = PBXResourcesBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | ECAB41E41E635C000052F4CB /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXResourcesBuildPhase section */ 206 | 207 | /* Begin PBXSourcesBuildPhase section */ 208 | ECAB41D81E635C000052F4CB /* Sources */ = { 209 | isa = PBXSourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | AC3254C31E67D697007BAE50 /* KDLoadingExtension.swift in Sources */, 213 | ECAB41F81E635C2C0052F4CB /* KDLoadingView.swift in Sources */, 214 | AC3254C11E67D66D007BAE50 /* KDLoadingBlurView.swift in Sources */, 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | }; 218 | ECAB41E21E635C000052F4CB /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | ECAB41EC1E635C000052F4CB /* KDLoadingViewTests.swift in Sources */, 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | }; 226 | /* End PBXSourcesBuildPhase section */ 227 | 228 | /* Begin PBXTargetDependency section */ 229 | ECAB41E91E635C000052F4CB /* PBXTargetDependency */ = { 230 | isa = PBXTargetDependency; 231 | target = ECAB41DC1E635C000052F4CB /* KDLoadingView */; 232 | targetProxy = ECAB41E81E635C000052F4CB /* PBXContainerItemProxy */; 233 | }; 234 | /* End PBXTargetDependency section */ 235 | 236 | /* Begin XCBuildConfiguration section */ 237 | ECAB41EF1E635C000052F4CB /* Debug */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | ALWAYS_SEARCH_USER_PATHS = NO; 241 | CLANG_ANALYZER_NONNULL = YES; 242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 243 | CLANG_CXX_LIBRARY = "libc++"; 244 | CLANG_ENABLE_MODULES = YES; 245 | CLANG_ENABLE_OBJC_ARC = YES; 246 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 247 | CLANG_WARN_BOOL_CONVERSION = YES; 248 | CLANG_WARN_COMMA = YES; 249 | CLANG_WARN_CONSTANT_CONVERSION = YES; 250 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 251 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 252 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 253 | CLANG_WARN_EMPTY_BODY = YES; 254 | CLANG_WARN_ENUM_CONVERSION = YES; 255 | CLANG_WARN_INFINITE_RECURSION = YES; 256 | CLANG_WARN_INT_CONVERSION = YES; 257 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 258 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 259 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 260 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 261 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 262 | CLANG_WARN_STRICT_PROTOTYPES = YES; 263 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 264 | CLANG_WARN_UNREACHABLE_CODE = YES; 265 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 266 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 267 | COPY_PHASE_STRIP = NO; 268 | CURRENT_PROJECT_VERSION = 1; 269 | DEBUG_INFORMATION_FORMAT = dwarf; 270 | ENABLE_STRICT_OBJC_MSGSEND = YES; 271 | ENABLE_TESTABILITY = YES; 272 | GCC_C_LANGUAGE_STANDARD = gnu99; 273 | GCC_DYNAMIC_NO_PIC = NO; 274 | GCC_NO_COMMON_BLOCKS = YES; 275 | GCC_OPTIMIZATION_LEVEL = 0; 276 | GCC_PREPROCESSOR_DEFINITIONS = ( 277 | "DEBUG=1", 278 | "$(inherited)", 279 | ); 280 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 281 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 282 | GCC_WARN_UNDECLARED_SELECTOR = YES; 283 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 284 | GCC_WARN_UNUSED_FUNCTION = YES; 285 | GCC_WARN_UNUSED_VARIABLE = YES; 286 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 287 | MTL_ENABLE_DEBUG_INFO = YES; 288 | ONLY_ACTIVE_ARCH = YES; 289 | SDKROOT = iphoneos; 290 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 291 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 292 | TARGETED_DEVICE_FAMILY = "1,2"; 293 | VERSIONING_SYSTEM = "apple-generic"; 294 | VERSION_INFO_PREFIX = ""; 295 | }; 296 | name = Debug; 297 | }; 298 | ECAB41F01E635C000052F4CB /* Release */ = { 299 | isa = XCBuildConfiguration; 300 | buildSettings = { 301 | ALWAYS_SEARCH_USER_PATHS = NO; 302 | CLANG_ANALYZER_NONNULL = YES; 303 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 304 | CLANG_CXX_LIBRARY = "libc++"; 305 | CLANG_ENABLE_MODULES = YES; 306 | CLANG_ENABLE_OBJC_ARC = YES; 307 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 308 | CLANG_WARN_BOOL_CONVERSION = YES; 309 | CLANG_WARN_COMMA = YES; 310 | CLANG_WARN_CONSTANT_CONVERSION = YES; 311 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 319 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 320 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 322 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 323 | CLANG_WARN_STRICT_PROTOTYPES = YES; 324 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 325 | CLANG_WARN_UNREACHABLE_CODE = YES; 326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 328 | COPY_PHASE_STRIP = NO; 329 | CURRENT_PROJECT_VERSION = 1; 330 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 331 | ENABLE_NS_ASSERTIONS = NO; 332 | ENABLE_STRICT_OBJC_MSGSEND = YES; 333 | GCC_C_LANGUAGE_STANDARD = gnu99; 334 | GCC_NO_COMMON_BLOCKS = YES; 335 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 336 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 337 | GCC_WARN_UNDECLARED_SELECTOR = YES; 338 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 339 | GCC_WARN_UNUSED_FUNCTION = YES; 340 | GCC_WARN_UNUSED_VARIABLE = YES; 341 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 342 | MTL_ENABLE_DEBUG_INFO = NO; 343 | SDKROOT = iphoneos; 344 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 345 | TARGETED_DEVICE_FAMILY = "1,2"; 346 | VALIDATE_PRODUCT = YES; 347 | VERSIONING_SYSTEM = "apple-generic"; 348 | VERSION_INFO_PREFIX = ""; 349 | }; 350 | name = Release; 351 | }; 352 | ECAB41F21E635C000052F4CB /* Debug */ = { 353 | isa = XCBuildConfiguration; 354 | buildSettings = { 355 | CLANG_ENABLE_MODULES = YES; 356 | CODE_SIGN_IDENTITY = ""; 357 | DEFINES_MODULE = YES; 358 | DEVELOPMENT_TEAM = 66BPT5DT27; 359 | DYLIB_COMPATIBILITY_VERSION = 1; 360 | DYLIB_CURRENT_VERSION = 1; 361 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 362 | INFOPLIST_FILE = KDLoadingView/Info.plist; 363 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 364 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 366 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.KDLoadingView; 367 | PRODUCT_NAME = "$(TARGET_NAME)"; 368 | SKIP_INSTALL = YES; 369 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 370 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 371 | SWIFT_VERSION = 4.2; 372 | }; 373 | name = Debug; 374 | }; 375 | ECAB41F31E635C000052F4CB /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | CLANG_ENABLE_MODULES = YES; 379 | CODE_SIGN_IDENTITY = ""; 380 | DEFINES_MODULE = YES; 381 | DEVELOPMENT_TEAM = 66BPT5DT27; 382 | DYLIB_COMPATIBILITY_VERSION = 1; 383 | DYLIB_CURRENT_VERSION = 1; 384 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 385 | INFOPLIST_FILE = KDLoadingView/Info.plist; 386 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 387 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 388 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 389 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.KDLoadingView; 390 | PRODUCT_NAME = "$(TARGET_NAME)"; 391 | SKIP_INSTALL = YES; 392 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 393 | SWIFT_VERSION = 4.2; 394 | }; 395 | name = Release; 396 | }; 397 | ECAB41F51E635C000052F4CB /* Debug */ = { 398 | isa = XCBuildConfiguration; 399 | buildSettings = { 400 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 401 | DEVELOPMENT_TEAM = 66BPT5DT27; 402 | INFOPLIST_FILE = KDLoadingViewTests/Info.plist; 403 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 404 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.KDLoadingViewTests; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 407 | SWIFT_VERSION = 4.2; 408 | }; 409 | name = Debug; 410 | }; 411 | ECAB41F61E635C000052F4CB /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 415 | DEVELOPMENT_TEAM = 66BPT5DT27; 416 | INFOPLIST_FILE = KDLoadingViewTests/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.kaiquedamato.KDLoadingViewTests; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 421 | SWIFT_VERSION = 4.2; 422 | }; 423 | name = Release; 424 | }; 425 | /* End XCBuildConfiguration section */ 426 | 427 | /* Begin XCConfigurationList section */ 428 | ECAB41D71E635C000052F4CB /* Build configuration list for PBXProject "KDLoadingView" */ = { 429 | isa = XCConfigurationList; 430 | buildConfigurations = ( 431 | ECAB41EF1E635C000052F4CB /* Debug */, 432 | ECAB41F01E635C000052F4CB /* Release */, 433 | ); 434 | defaultConfigurationIsVisible = 0; 435 | defaultConfigurationName = Release; 436 | }; 437 | ECAB41F11E635C000052F4CB /* Build configuration list for PBXNativeTarget "KDLoadingView" */ = { 438 | isa = XCConfigurationList; 439 | buildConfigurations = ( 440 | ECAB41F21E635C000052F4CB /* Debug */, 441 | ECAB41F31E635C000052F4CB /* Release */, 442 | ); 443 | defaultConfigurationIsVisible = 0; 444 | defaultConfigurationName = Release; 445 | }; 446 | ECAB41F41E635C000052F4CB /* Build configuration list for PBXNativeTarget "KDLoadingViewTests" */ = { 447 | isa = XCConfigurationList; 448 | buildConfigurations = ( 449 | ECAB41F51E635C000052F4CB /* Debug */, 450 | ECAB41F61E635C000052F4CB /* Release */, 451 | ); 452 | defaultConfigurationIsVisible = 0; 453 | defaultConfigurationName = Release; 454 | }; 455 | /* End XCConfigurationList section */ 456 | }; 457 | rootObject = ECAB41D41E635C000052F4CB /* Project object */; 458 | } 459 | -------------------------------------------------------------------------------- /KDLoadingView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /KDLoadingView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /KDLoadingView/KDLoadingBlurView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KDLoadingBlurView.swift 3 | // KDLoadingView 4 | // 5 | // Created by Rodrigo Soldi Lopes on 02/03/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | final class KDLoadingBlurView: UIView { 12 | private let effectView: UIVisualEffectView 13 | public var loadingView : KDLoadingView? 14 | 15 | init(style: UIBlurEffect.Style, backgroundColor: UIColor? = nil) { 16 | self.effectView = UIVisualEffectView(effect: UIBlurEffect(style: style)) 17 | self.effectView.backgroundColor = backgroundColor 18 | super.init(frame: .zero) 19 | insertSubview(effectView, at: 0) 20 | } 21 | 22 | required init?(coder aDecoder: NSCoder) { 23 | fatalError() 24 | } 25 | 26 | override func addSubview(_ view: UIView) { 27 | effectView.contentView.addSubview(view) 28 | } 29 | 30 | override func layoutSubviews() { 31 | super.layoutSubviews() 32 | 33 | effectView.frame = bounds 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /KDLoadingView/KDLoadingExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KDLoadingExtension.swift 3 | // KDLoadingView 4 | // 5 | // Created by Rodrigo Soldi Lopes on 02/03/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | extension KDLoadingView { 10 | 11 | public class func animate(blurStyle: UIBlurEffect.Style = .light, lineWidth: CGFloat = 2.0, size: CGFloat = 25, duration: CGFloat = 3.0, firstColor: UIColor? = #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1), secondColor: UIColor? = nil, thirdColor: UIColor? = nil) { 12 | 13 | guard let window = UIApplication.shared.keyWindow else { 14 | // If not has a UIWindow there isn't a ViewController to present loading 15 | // e.g. the main view wasn't loaded yet 16 | return 17 | } 18 | 19 | guard let topView = window.rootViewController?.view else { 20 | // If not has a RootViewController with a View there isn't a way to present loading 21 | // e.g. the main view wasn't loaded yet 22 | return 23 | } 24 | 25 | 26 | let blurView = KDLoadingBlurView(style: blurStyle) 27 | blurView.frame = topView.frame 28 | 29 | let frame = CGRect(x: 0, y: 0, width: size, height: size) 30 | let loadingView = KDLoadingView(frame: frame, lineWidth: lineWidth, firstColor: firstColor, secondColor: secondColor, thirdColor: thirdColor, duration: duration) 31 | loadingView.center = blurView.center 32 | 33 | blurView.addSubview(loadingView) 34 | loadingView.startAnimating() 35 | blurView.loadingView = loadingView 36 | 37 | addSubviewWithTransitionAnimation(fromView: topView, toView: blurView) 38 | } 39 | 40 | public class func stop() { 41 | 42 | guard let window = UIApplication.shared.keyWindow else { 43 | // If not has a UIWindow there isn't a ViewController to present loading 44 | // e.g. the main view wasn't loaded yet 45 | return 46 | } 47 | 48 | guard let topView = window.rootViewController?.view else { 49 | // If not has a RootViewController with a View there isn't a way to present loading 50 | // e.g. the main view wasn't loaded yet 51 | return 52 | } 53 | 54 | for view in topView.subviews { 55 | if let blurView = view as? KDLoadingBlurView { 56 | removeLoadingBlurView(blurView) 57 | } 58 | } 59 | } 60 | 61 | private class func addSubviewWithTransitionAnimation(fromView: UIView, toView: UIView) { 62 | let transition = CATransition() 63 | transition.duration = 0.3 64 | transition.type = CATransitionType.reveal 65 | transition.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 66 | toView.layer.add(transition, forKey: nil) 67 | fromView.addSubview(toView) 68 | } 69 | 70 | private class func removeLoadingBlurView(_ view: KDLoadingBlurView) { 71 | UIView.animate(withDuration: 0.3, delay: 0.0, options: .curveEaseInOut, animations: { 72 | view.loadingView?.alpha = 0.0 73 | view.alpha = 0.0 74 | }, completion: { (_) in 75 | view.removeFromSuperview() 76 | }) 77 | } 78 | } 79 | 80 | -------------------------------------------------------------------------------- /KDLoadingView/KDLoadingView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KDLoadingView.h 3 | // KDLoadingView 4 | // 5 | // Created by Kaique Damato on 2/26/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for KDLoadingView. 12 | FOUNDATION_EXPORT double KDLoadingViewVersionNumber; 13 | 14 | //! Project version string for KDLoadingView. 15 | FOUNDATION_EXPORT const unsigned char KDLoadingViewVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /KDLoadingView/KDLoadingView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KDLoadingView.swift 3 | // Example 4 | // 5 | // Created by Kaique Damato on 2/25/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable public class KDLoadingView: UIView { 12 | 13 | fileprivate var shapeLayer = CAShapeLayer() 14 | fileprivate var animating = false 15 | 16 | @IBInspectable public var firstColor: UIColor? { 17 | get { 18 | return UIColor(cgColor:shapeLayer.strokeColor ?? #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1).cgColor) 19 | } 20 | set { 21 | shapeLayer.strokeColor = newValue?.cgColor 22 | } 23 | } 24 | 25 | @IBInspectable public var secondColor: UIColor? 26 | 27 | @IBInspectable public var thirdColor: UIColor? 28 | 29 | @IBInspectable public var duration: CGFloat = 3.0 30 | 31 | 32 | @IBInspectable public var lineWidth: CGFloat { 33 | get { 34 | return shapeLayer.lineWidth 35 | } 36 | set { 37 | shapeLayer.lineWidth = newValue 38 | } 39 | } 40 | 41 | public var isAnimating: Bool { 42 | return animating 43 | } 44 | 45 | @IBInspectable public var hidesWhenStopped: Bool = false 46 | 47 | override public init(frame: CGRect) { 48 | super.init(frame: frame) 49 | setup() 50 | } 51 | 52 | required public init?(coder aDecoder: NSCoder) { 53 | super.init(coder: aDecoder) 54 | setup() 55 | } 56 | 57 | public init(frame: CGRect, lineWidth: CGFloat, firstColor: UIColor? = #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1), secondColor: UIColor?, thirdColor: UIColor?, duration: CGFloat) { 58 | super.init(frame: frame) 59 | self.frame = frame 60 | self.firstColor = firstColor 61 | self.secondColor = secondColor 62 | self.thirdColor = thirdColor 63 | self.duration = duration 64 | shapeLayer.frame = frame 65 | shapeLayer.lineWidth = lineWidth 66 | setup() 67 | } 68 | 69 | fileprivate func setup() { 70 | self.backgroundColor = UIColor.clear 71 | shapeLayer.fillColor = UIColor.clear.cgColor 72 | shapeLayer.strokeColor = firstColor?.cgColor ?? #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1).cgColor 73 | shapeLayer.strokeStart = 0 74 | shapeLayer.strokeEnd = 1 75 | shapeLayer.lineWidth = lineWidth 76 | isHidden = true 77 | } 78 | 79 | public override func layoutSubviews() { 80 | super.layoutSubviews() 81 | 82 | let center = CGPoint(x: self.bounds.size.width / 2.0, y: self.bounds.size.height / 2.0) 83 | let radius = min(self.bounds.size.width, self.bounds.size.height)/2.0 - self.shapeLayer.lineWidth / 2.0 84 | 85 | let bezierPath = UIBezierPath(arcCenter: center, radius: radius, startAngle: 0, endAngle: 2 * .pi, clockwise: true) 86 | 87 | shapeLayer.path = bezierPath.cgPath 88 | shapeLayer.frame = self.bounds 89 | isHidden = hidesWhenStopped 90 | 91 | self.layer.addSublayer(shapeLayer) 92 | } 93 | 94 | fileprivate func animateStrokeEnd() -> CABasicAnimation { 95 | let animation = CABasicAnimation(keyPath: "strokeEnd") 96 | animation.beginTime = 0 97 | animation.duration = CFTimeInterval(duration / 2.0) 98 | animation.fromValue = 0 99 | animation.toValue = 1 100 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 101 | 102 | return animation 103 | } 104 | 105 | fileprivate func animateStrokeStart() -> CABasicAnimation { 106 | let animation = CABasicAnimation(keyPath: "strokeStart") 107 | animation.beginTime = CFTimeInterval(duration / 2.0) 108 | animation.duration = CFTimeInterval(duration / 2.0) 109 | animation.fromValue = 0 110 | animation.toValue = 1 111 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 112 | 113 | return animation 114 | } 115 | 116 | fileprivate func animateRotation() -> CABasicAnimation { 117 | let animation = CABasicAnimation(keyPath: "transform.rotation.z") 118 | animation.fromValue = 0 119 | animation.toValue = .pi * 2.0 120 | animation.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear) 121 | animation.repeatCount = Float.infinity 122 | 123 | return animation 124 | } 125 | 126 | fileprivate func animateColors() -> CAKeyframeAnimation { 127 | let colors = configureColors() 128 | 129 | let animation = CAKeyframeAnimation(keyPath: "strokeColor") 130 | animation.duration = CFTimeInterval(duration) 131 | animation.keyTimes = configureKeyTimes(colors: colors) 132 | animation.values = colors 133 | animation.repeatCount = Float.infinity 134 | 135 | return animation 136 | } 137 | 138 | fileprivate func animateGroup() { 139 | let animationGroup = CAAnimationGroup() 140 | animationGroup.animations = [animateStrokeEnd(), animateStrokeStart(), animateRotation(), animateColors()] 141 | animationGroup.duration = CFTimeInterval(duration) 142 | animationGroup.fillMode = CAMediaTimingFillMode.both 143 | animationGroup.isRemovedOnCompletion = false 144 | animationGroup.repeatCount = Float.infinity 145 | 146 | shapeLayer.add(animationGroup, forKey: "loading") 147 | } 148 | 149 | public func startAnimating() { 150 | animating = true 151 | isHidden = false 152 | animateGroup() 153 | } 154 | 155 | public func stopAnimating() { 156 | animating = false 157 | isHidden = hidesWhenStopped 158 | shapeLayer.removeAllAnimations() 159 | } 160 | 161 | fileprivate func configureColors() -> [CGColor] { 162 | var colors = [CGColor]() 163 | 164 | colors.append(firstColor!.cgColor) 165 | if secondColor != nil { colors.append(secondColor!.cgColor) } 166 | if thirdColor != nil { colors.append(thirdColor!.cgColor) } 167 | 168 | return colors 169 | } 170 | 171 | fileprivate func configureKeyTimes(colors: [CGColor]) -> [NSNumber] { 172 | switch colors.count { 173 | case 1: 174 | return [0] 175 | case 2: 176 | return [0, 1] 177 | default: 178 | return [0, 0.5, 1] 179 | } 180 | } 181 | } 182 | -------------------------------------------------------------------------------- /KDLoadingViewTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /KDLoadingViewTests/KDLoadingViewTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KDLoadingViewTests.swift 3 | // KDLoadingViewTests 4 | // 5 | // Created by Kaique Damato on 2/26/17. 6 | // Copyright © 2017 Kaique Damato. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import KDLoadingView 11 | 12 | class KDLoadingViewTests: XCTestCase { 13 | 14 | var sut: KDLoadingView! 15 | 16 | let frame = CGRect(x: 0, y: 0, width: 40, height: 40) 17 | let lineWidth = CGFloat(3.0) 18 | let firstColor = UIColor.gray 19 | let secondColor = UIColor.groupTableViewBackground 20 | let thirdColor = UIColor.lightGray 21 | let duration = CGFloat(1.0) 22 | 23 | override func setUp() { 24 | sut = KDLoadingView(frame: frame, 25 | lineWidth: lineWidth, 26 | firstColor: firstColor, 27 | secondColor: secondColor, 28 | thirdColor: thirdColor, 29 | duration: duration) 30 | } 31 | 32 | func testInit() { 33 | 34 | XCTAssertEqual(sut.frame, frame) 35 | XCTAssertEqual(sut.lineWidth, lineWidth) 36 | XCTAssertEqual(sut.firstColor, firstColor) 37 | XCTAssertEqual(sut.secondColor, secondColor) 38 | XCTAssertEqual(sut.thirdColor, thirdColor) 39 | XCTAssertEqual(sut.duration, duration) 40 | XCTAssertEqual(sut.isHidden, true) 41 | } 42 | 43 | func testConfiguringLayer() { 44 | 45 | sut.layoutSubviews() 46 | 47 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer else { 48 | XCTAssert(false, "It should have added a layer.") 49 | return 50 | } 51 | 52 | XCTAssertEqual(layer.fillColor, UIColor.clear.cgColor) 53 | XCTAssertEqual(layer.strokeColor, firstColor.cgColor) 54 | XCTAssertEqual(layer.strokeStart, 0) 55 | XCTAssertEqual(layer.strokeEnd, 1) 56 | XCTAssertEqual(layer.lineWidth, lineWidth) 57 | XCTAssertEqual(layer.frame, sut.bounds) 58 | } 59 | 60 | func testAnimationGroup() { 61 | 62 | sut.layoutSubviews() 63 | sut.startAnimating() 64 | 65 | XCTAssertFalse(sut.isHidden) 66 | 67 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer, 68 | let animationGroup = layer.animation(forKey: "loading") as? CAAnimationGroup else { 69 | XCTAssert(false, "It should have an animationGroup") 70 | return 71 | } 72 | 73 | XCTAssertEqual(animationGroup.duration, CFTimeInterval(duration)) 74 | XCTAssertEqual(convertFromCAMediaTimingFillMode(animationGroup.fillMode), convertFromCAMediaTimingFillMode(CAMediaTimingFillMode.both)) 75 | XCTAssertEqual(animationGroup.isRemovedOnCompletion, false) 76 | XCTAssertEqual(animationGroup.repeatCount, Float.infinity) 77 | 78 | } 79 | 80 | func testStrokeEndAnimations() { 81 | 82 | sut.layoutSubviews() 83 | sut.startAnimating() 84 | 85 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer, 86 | let animationGroup = layer.animation(forKey: "loading") as? CAAnimationGroup else { 87 | XCTAssert(false, "It should have an animationGroup") 88 | return 89 | } 90 | 91 | guard let animations = animationGroup.animations, 92 | let strokeEndAnimation = animations[0] as? CABasicAnimation else { 93 | XCTAssert(false, "It should have animations") 94 | return 95 | } 96 | 97 | XCTAssertEqual(strokeEndAnimation.keyPath, "strokeEnd") 98 | XCTAssertEqual(strokeEndAnimation.beginTime, 0) 99 | XCTAssertEqual(strokeEndAnimation.duration, CFTimeInterval(duration/2.0)) 100 | XCTAssertEqual(strokeEndAnimation.fromValue as? Int, 0) 101 | XCTAssertEqual(strokeEndAnimation.toValue as? Int, 1) 102 | XCTAssertEqual(strokeEndAnimation.timingFunction, CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)) 103 | 104 | } 105 | 106 | func testStrokeStartAnimation() { 107 | 108 | sut.layoutSubviews() 109 | sut.startAnimating() 110 | 111 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer, 112 | let animationGroup = layer.animation(forKey: "loading") as? CAAnimationGroup else { 113 | XCTAssert(false, "It should have an animationGroup") 114 | return 115 | } 116 | 117 | guard let animations = animationGroup.animations, 118 | let strokeStartAnimation = animations[1] as? CABasicAnimation else { 119 | XCTAssert(false, "It should have animations") 120 | return 121 | } 122 | 123 | XCTAssertEqual(strokeStartAnimation.keyPath, "strokeStart") 124 | XCTAssertEqual(strokeStartAnimation.beginTime, CFTimeInterval(duration/2.0)) 125 | XCTAssertEqual(strokeStartAnimation.duration, CFTimeInterval(duration/2.0)) 126 | XCTAssertEqual(strokeStartAnimation.fromValue as? Int, 0) 127 | XCTAssertEqual(strokeStartAnimation.toValue as? Int, 1) 128 | XCTAssertEqual(strokeStartAnimation.timingFunction, CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)) 129 | 130 | } 131 | 132 | func testRotationAnimation() { 133 | 134 | sut.layoutSubviews() 135 | sut.startAnimating() 136 | 137 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer, 138 | let animationGroup = layer.animation(forKey: "loading") as? CAAnimationGroup else { 139 | XCTAssert(false, "It should have an animationGroup") 140 | return 141 | } 142 | 143 | guard let animations = animationGroup.animations, 144 | let rotationAnimation = animations[2] as? CABasicAnimation else { 145 | XCTAssert(false, "It should have animations") 146 | return 147 | } 148 | 149 | XCTAssertEqual(rotationAnimation.keyPath, "transform.rotation.z") 150 | XCTAssertEqual(rotationAnimation.fromValue as? Int, 0) 151 | XCTAssertEqual(rotationAnimation.toValue as? CGFloat, CGFloat(.pi * 2.0)) 152 | XCTAssertEqual(rotationAnimation.timingFunction, CAMediaTimingFunction(name: CAMediaTimingFunctionName.linear)) 153 | XCTAssertEqual(rotationAnimation.repeatCount, Float.infinity) 154 | 155 | } 156 | 157 | func testColorsAnimation() { 158 | 159 | sut.layoutSubviews() 160 | sut.startAnimating() 161 | 162 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer, 163 | let animationGroup = layer.animation(forKey: "loading") as? CAAnimationGroup else { 164 | XCTAssert(false, "It should have an animationGroup") 165 | return 166 | } 167 | 168 | guard let animations = animationGroup.animations, 169 | let colorsAnimation = animations[3] as? CAKeyframeAnimation else { 170 | XCTAssert(false, "It should have animations") 171 | return 172 | } 173 | 174 | XCTAssertEqual(colorsAnimation.keyPath, "strokeColor") 175 | XCTAssertEqual(colorsAnimation.duration, CFTimeInterval(duration)) 176 | XCTAssertEqual(colorsAnimation.keyTimes!, [0, 0.5, 1]) 177 | XCTAssertEqual(colorsAnimation.values as! [CGColor], [firstColor.cgColor, secondColor.cgColor, thirdColor.cgColor]) 178 | XCTAssertEqual(colorsAnimation.repeatCount, Float.infinity) 179 | } 180 | 181 | func testStoppingAnimations() { 182 | 183 | sut.layoutSubviews() 184 | sut.hidesWhenStopped = true 185 | 186 | guard let layer = sut.layer.sublayers?.first as? CAShapeLayer else { 187 | XCTAssert(false, "It should have a shapeLayer.") 188 | return 189 | } 190 | 191 | sut.startAnimating() 192 | 193 | XCTAssertFalse(sut.isHidden) 194 | XCTAssertNotNil(layer.animationKeys()) 195 | 196 | sut.stopAnimating() 197 | 198 | XCTAssert(sut.isHidden) 199 | XCTAssertNil(layer.animationKeys()) 200 | } 201 | 202 | } 203 | 204 | // Helper function inserted by Swift 4.2 migrator. 205 | fileprivate func convertFromCAMediaTimingFillMode(_ input: CAMediaTimingFillMode) -> String { 206 | return input.rawValue 207 | } 208 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Kaique Pantosi D'amato 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KDLoadingView 2 | 3 | [![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](https://developer.apple.com/swift/) 4 | [![Platforms iOS](https://img.shields.io/badge/Platforms-iOS-lightgray.svg?style=flat)](https://developer.apple.com/swift/) 5 | [![Xcode 10.0+](https://img.shields.io/badge/Xcode-10.0+-blue.svg?style=flat)](https://developer.apple.com/swift/) 6 | [![pod v1.0.5](https://img.shields.io/badge/pod-v1.0.5-blue.svg)](https://cocoapods.org) 7 | 8 | A beautiful loading indicator inspired by material design. 🤘🏻 9 | 10 | # Demo 11 | 12 | ![alt tag](http://i.giphy.com/l44QxkFEfyVgnCl0I.gif) 13 | 14 | # Usage 15 | 16 | There are a few properties you may change: 17 | 18 | | Property | Description | Type | Default Value | 19 | |:-----------------|:-----------------------------------------------------------------|:--------|:--------------| 20 | | firstColor | The initial color of the loading | UIColor | UIColor.black | 21 | | secondColor | The second color of the loading | UIColor | nil | 22 | | thirdColor | The third color of the loading | UIColor | nil | 23 | | duration | The duration of the loading animation | CGFloat | 3 | 24 | | lineWidth | The width of the line | CGFloat | 1 | 25 | | hidesWhenStopped | Indicates if the loading must be hidden when the animation stops | Bool | false | 26 | 27 | All properties are ***IBInspectable*** so you can just drag and drop a new view, change the class and make all the configurations that you need in the Storyboard. 28 | 29 | I wish you a funny and happy coding. 🚀 30 | 31 | obs: you can set up to three colors in the loading but feel free to set just one or two if you like. 😄 32 | 33 | ## Author 34 | 35 | Kaique Pantosi D'amato, kaiquedamato@icloud.com. 🤓 36 | 37 | ## License 38 | 39 | KDLoadingView is available under the MIT license. See the [License](https://github.com/KaiqueDamato/KDLoadingView/blob/master/LICENSE) file for more info. 40 | --------------------------------------------------------------------------------