├── .gitattributes ├── .gitignore ├── Example ├── ParticlesLoadingView.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── ParticlesLoadingView-Example.xcscheme ├── ParticlesLoadingView.xcworkspace │ └── contents.xcworkspacedata ├── ParticlesLoadingView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Spark.sks │ ├── ViewController.swift │ └── spark.png ├── Podfile ├── Podfile.lock └── Pods │ ├── Local Podspecs │ └── ParticlesLoadingView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── Target Support Files │ ├── ParticlesLoadingView │ ├── Info.plist │ ├── ParticlesLoadingView-dummy.m │ ├── ParticlesLoadingView-prefix.pch │ ├── ParticlesLoadingView-umbrella.h │ ├── ParticlesLoadingView.modulemap │ ├── ParticlesLoadingView.xcconfig │ └── ResourceBundle-ParticlesLoadingView-Info.plist │ └── Pods-ParticlesLoadingView_Example │ ├── Info.plist │ ├── Pods-ParticlesLoadingView_Example-acknowledgements.markdown │ ├── Pods-ParticlesLoadingView_Example-acknowledgements.plist │ ├── Pods-ParticlesLoadingView_Example-dummy.m │ ├── Pods-ParticlesLoadingView_Example-frameworks.sh │ ├── Pods-ParticlesLoadingView_Example-resources.sh │ ├── Pods-ParticlesLoadingView_Example-umbrella.h │ ├── Pods-ParticlesLoadingView_Example.debug.xcconfig │ ├── Pods-ParticlesLoadingView_Example.modulemap │ └── Pods-ParticlesLoadingView_Example.release.xcconfig ├── LICENSE ├── ParticlesLoadingView.podspec ├── Pod ├── Assets │ ├── .gitkeep │ ├── Bokeh.sks │ ├── Fire.sks │ ├── Laser.sks │ ├── Spark.sks │ └── spark.png └── Classes │ ├── .gitkeep │ ├── EmitterCreator.swift │ ├── ParticleEffect.swift │ ├── ParticlesLoadingView.swift │ ├── ParticlesScene.swift │ └── UIView+ParticlesAnimation.swift ├── README.md ├── Resources └── ParticlesEmitterEditor.png └── _Pods.xcodeproj /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh linguist-language=Swift 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/screenshots 64 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7C5775822FA8BD465BD69310 /* Pods_ParticlesLoadingView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 21B343C7A3ABA308245341FE /* Pods_ParticlesLoadingView_Example.framework */; }; 11 | AE4CA89A1CEC66DA0074E71F /* Pods_ParticlesLoadingView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AE4CA8991CEC66DA0074E71F /* Pods_ParticlesLoadingView_Example.framework */; }; 12 | AE4CA89B1CEC67D00074E71F /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = AEBB69BF1CEC6303001DB4CA /* LaunchScreen.xib */; }; 13 | AE4CA89C1CEC67D00074E71F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AEBB69C11CEC6303001DB4CA /* Main.storyboard */; }; 14 | AEBB69B91CEC62E0001DB4CA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEBB69B81CEC62E0001DB4CA /* ViewController.swift */; }; 15 | AEBB69BB1CEC62E6001DB4CA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AEBB69BA1CEC62E6001DB4CA /* AppDelegate.swift */; }; 16 | AEBB69BD1CEC62EE001DB4CA /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AEBB69BC1CEC62EE001DB4CA /* Images.xcassets */; }; 17 | AEBB69C91CEC631A001DB4CA /* spark.png in Resources */ = {isa = PBXBuildFile; fileRef = AEBB69C71CEC631A001DB4CA /* spark.png */; }; 18 | AEBB69CA1CEC631A001DB4CA /* Spark.sks in Resources */ = {isa = PBXBuildFile; fileRef = AEBB69C81CEC631A001DB4CA /* Spark.sks */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | 21B343C7A3ABA308245341FE /* Pods_ParticlesLoadingView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ParticlesLoadingView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 2DD7656126E9444058834846 /* ParticlesLoadingView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ParticlesLoadingView.podspec; path = ../ParticlesLoadingView.podspec; sourceTree = ""; }; 24 | 607FACD01AFB9204008FA782 /* ParticlesLoadingView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ParticlesLoadingView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 6D546345799EF75596848339 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 26 | AE4CA8971CEC66C30074E71F /* ParticlesLoadingView.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ParticlesLoadingView.framework; path = "../../../../../Library/Developer/Xcode/DerivedData/ParticlesLoadingView-akklrpifjkmgthbtqzwmwbejisek/Build/Products/Debug-iphonesimulator/ParticlesLoadingView/ParticlesLoadingView.framework"; sourceTree = ""; }; 27 | AE4CA8991CEC66DA0074E71F /* Pods_ParticlesLoadingView_Example.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Pods_ParticlesLoadingView_Example.framework; path = "../../../../../Library/Developer/Xcode/DerivedData/ParticlesLoadingView-akklrpifjkmgthbtqzwmwbejisek/Build/Products/Debug-iphonesimulator/Pods_ParticlesLoadingView_Example.framework"; sourceTree = ""; }; 28 | AEBB69B81CEC62E0001DB4CA /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewController.swift; path = ParticlesLoadingView/ViewController.swift; sourceTree = SOURCE_ROOT; }; 29 | AEBB69BA1CEC62E6001DB4CA /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = ParticlesLoadingView/AppDelegate.swift; sourceTree = SOURCE_ROOT; }; 30 | AEBB69BC1CEC62EE001DB4CA /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ParticlesLoadingView/Images.xcassets; sourceTree = SOURCE_ROOT; }; 31 | AEBB69C01CEC6303001DB4CA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = ParticlesLoadingView/Base.lproj/LaunchScreen.xib; sourceTree = SOURCE_ROOT; }; 32 | AEBB69C21CEC6303001DB4CA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = ParticlesLoadingView/Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; }; 33 | AEBB69C51CEC6309001DB4CA /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ParticlesLoadingView/Info.plist; sourceTree = SOURCE_ROOT; }; 34 | AEBB69C71CEC631A001DB4CA /* spark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = spark.png; path = ParticlesLoadingView/spark.png; sourceTree = SOURCE_ROOT; }; 35 | AEBB69C81CEC631A001DB4CA /* Spark.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; name = Spark.sks; path = ParticlesLoadingView/Spark.sks; sourceTree = SOURCE_ROOT; }; 36 | C5E7D085E922F5AF8C412415 /* Pods-ParticlesLoadingView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ParticlesLoadingView_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.release.xcconfig"; sourceTree = ""; }; 37 | E4ACA28BC23E0E62601E63C9 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ParticlesLoadingView_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.debug.xcconfig"; sourceTree = ""; }; 38 | FBD6432433FF0004DC4D78A7 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | AE4CA89A1CEC66DA0074E71F /* Pods_ParticlesLoadingView_Example.framework in Frameworks */, 47 | 7C5775822FA8BD465BD69310 /* Pods_ParticlesLoadingView_Example.framework in Frameworks */, 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | /* End PBXFrameworksBuildPhase section */ 52 | 53 | /* Begin PBXGroup section */ 54 | 395C9A2AE012B9CBB94D3A41 /* Frameworks */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | AE4CA8991CEC66DA0074E71F /* Pods_ParticlesLoadingView_Example.framework */, 58 | AE4CA8971CEC66C30074E71F /* ParticlesLoadingView.framework */, 59 | 21B343C7A3ABA308245341FE /* Pods_ParticlesLoadingView_Example.framework */, 60 | ); 61 | name = Frameworks; 62 | sourceTree = ""; 63 | }; 64 | 607FACC71AFB9204008FA782 = { 65 | isa = PBXGroup; 66 | children = ( 67 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 68 | 607FACD21AFB9204008FA782 /* Example for ParticlesLoadingView */, 69 | 607FACD11AFB9204008FA782 /* Products */, 70 | B5B485C8D58CCD6520F3F482 /* Pods */, 71 | 395C9A2AE012B9CBB94D3A41 /* Frameworks */, 72 | ); 73 | sourceTree = ""; 74 | }; 75 | 607FACD11AFB9204008FA782 /* Products */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 607FACD01AFB9204008FA782 /* ParticlesLoadingView_Example.app */, 79 | ); 80 | name = Products; 81 | sourceTree = ""; 82 | }; 83 | 607FACD21AFB9204008FA782 /* Example for ParticlesLoadingView */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | AEC42C2A1C5CEA4D0008444D /* Sprites */, 87 | AEBB69BA1CEC62E6001DB4CA /* AppDelegate.swift */, 88 | AEBB69B81CEC62E0001DB4CA /* ViewController.swift */, 89 | AEBB69BC1CEC62EE001DB4CA /* Images.xcassets */, 90 | AEBB69BF1CEC6303001DB4CA /* LaunchScreen.xib */, 91 | AEBB69C11CEC6303001DB4CA /* Main.storyboard */, 92 | 607FACD31AFB9204008FA782 /* Supporting Files */, 93 | ); 94 | name = "Example for ParticlesLoadingView"; 95 | path = ParticlesLoadingButton; 96 | sourceTree = ""; 97 | }; 98 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | AEBB69C51CEC6309001DB4CA /* Info.plist */, 102 | ); 103 | name = "Supporting Files"; 104 | sourceTree = ""; 105 | }; 106 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 2DD7656126E9444058834846 /* ParticlesLoadingView.podspec */, 110 | FBD6432433FF0004DC4D78A7 /* README.md */, 111 | 6D546345799EF75596848339 /* LICENSE */, 112 | ); 113 | name = "Podspec Metadata"; 114 | sourceTree = ""; 115 | }; 116 | AEC42C2A1C5CEA4D0008444D /* Sprites */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | AEBB69C71CEC631A001DB4CA /* spark.png */, 120 | AEBB69C81CEC631A001DB4CA /* Spark.sks */, 121 | ); 122 | name = Sprites; 123 | sourceTree = ""; 124 | }; 125 | B5B485C8D58CCD6520F3F482 /* Pods */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | E4ACA28BC23E0E62601E63C9 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */, 129 | C5E7D085E922F5AF8C412415 /* Pods-ParticlesLoadingView_Example.release.xcconfig */, 130 | ); 131 | name = Pods; 132 | sourceTree = ""; 133 | }; 134 | /* End PBXGroup section */ 135 | 136 | /* Begin PBXNativeTarget section */ 137 | 607FACCF1AFB9204008FA782 /* ParticlesLoadingView_Example */ = { 138 | isa = PBXNativeTarget; 139 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ParticlesLoadingView_Example" */; 140 | buildPhases = ( 141 | 9AEB082AFDBFD2EFA3A25735 /* 📦 Check Pods Manifest.lock */, 142 | 607FACCC1AFB9204008FA782 /* Sources */, 143 | 607FACCD1AFB9204008FA782 /* Frameworks */, 144 | 607FACCE1AFB9204008FA782 /* Resources */, 145 | 287598FE1BDED1268CB4F793 /* 📦 Embed Pods Frameworks */, 146 | 9D95533FC0DECD35C9DC5C3B /* 📦 Copy Pods Resources */, 147 | ); 148 | buildRules = ( 149 | ); 150 | dependencies = ( 151 | ); 152 | name = ParticlesLoadingView_Example; 153 | productName = ParticlesLoadingButton; 154 | productReference = 607FACD01AFB9204008FA782 /* ParticlesLoadingView_Example.app */; 155 | productType = "com.apple.product-type.application"; 156 | }; 157 | /* End PBXNativeTarget section */ 158 | 159 | /* Begin PBXProject section */ 160 | 607FACC81AFB9204008FA782 /* Project object */ = { 161 | isa = PBXProject; 162 | attributes = { 163 | LastSwiftUpdateCheck = 0720; 164 | LastUpgradeCheck = 0930; 165 | ORGANIZATIONNAME = CocoaPods; 166 | TargetAttributes = { 167 | 607FACCF1AFB9204008FA782 = { 168 | CreatedOnToolsVersion = 6.3.1; 169 | LastSwiftMigration = 0900; 170 | }; 171 | }; 172 | }; 173 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ParticlesLoadingView" */; 174 | compatibilityVersion = "Xcode 3.2"; 175 | developmentRegion = English; 176 | hasScannedForEncodings = 0; 177 | knownRegions = ( 178 | en, 179 | Base, 180 | ); 181 | mainGroup = 607FACC71AFB9204008FA782; 182 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 183 | projectDirPath = ""; 184 | projectRoot = ""; 185 | targets = ( 186 | 607FACCF1AFB9204008FA782 /* ParticlesLoadingView_Example */, 187 | ); 188 | }; 189 | /* End PBXProject section */ 190 | 191 | /* Begin PBXResourcesBuildPhase section */ 192 | 607FACCE1AFB9204008FA782 /* Resources */ = { 193 | isa = PBXResourcesBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | AE4CA89B1CEC67D00074E71F /* LaunchScreen.xib in Resources */, 197 | AE4CA89C1CEC67D00074E71F /* Main.storyboard in Resources */, 198 | AEBB69CA1CEC631A001DB4CA /* Spark.sks in Resources */, 199 | AEBB69C91CEC631A001DB4CA /* spark.png in Resources */, 200 | AEBB69BD1CEC62EE001DB4CA /* Images.xcassets in Resources */, 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | }; 204 | /* End PBXResourcesBuildPhase section */ 205 | 206 | /* Begin PBXShellScriptBuildPhase section */ 207 | 287598FE1BDED1268CB4F793 /* 📦 Embed Pods Frameworks */ = { 208 | isa = PBXShellScriptBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | ); 212 | inputPaths = ( 213 | ); 214 | name = "📦 Embed Pods Frameworks"; 215 | outputPaths = ( 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | shellPath = /bin/sh; 219 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-frameworks.sh\"\n"; 220 | showEnvVarsInLog = 0; 221 | }; 222 | 9AEB082AFDBFD2EFA3A25735 /* 📦 Check Pods Manifest.lock */ = { 223 | isa = PBXShellScriptBuildPhase; 224 | buildActionMask = 2147483647; 225 | files = ( 226 | ); 227 | inputPaths = ( 228 | ); 229 | name = "📦 Check Pods Manifest.lock"; 230 | outputPaths = ( 231 | ); 232 | runOnlyForDeploymentPostprocessing = 0; 233 | shellPath = /bin/sh; 234 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 235 | showEnvVarsInLog = 0; 236 | }; 237 | 9D95533FC0DECD35C9DC5C3B /* 📦 Copy Pods Resources */ = { 238 | isa = PBXShellScriptBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | ); 242 | inputPaths = ( 243 | ); 244 | name = "📦 Copy Pods Resources"; 245 | outputPaths = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | shellPath = /bin/sh; 249 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-resources.sh\"\n"; 250 | showEnvVarsInLog = 0; 251 | }; 252 | /* End PBXShellScriptBuildPhase section */ 253 | 254 | /* Begin PBXSourcesBuildPhase section */ 255 | 607FACCC1AFB9204008FA782 /* Sources */ = { 256 | isa = PBXSourcesBuildPhase; 257 | buildActionMask = 2147483647; 258 | files = ( 259 | AEBB69BB1CEC62E6001DB4CA /* AppDelegate.swift in Sources */, 260 | AEBB69B91CEC62E0001DB4CA /* ViewController.swift in Sources */, 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXSourcesBuildPhase section */ 265 | 266 | /* Begin PBXVariantGroup section */ 267 | AEBB69BF1CEC6303001DB4CA /* LaunchScreen.xib */ = { 268 | isa = PBXVariantGroup; 269 | children = ( 270 | AEBB69C01CEC6303001DB4CA /* Base */, 271 | ); 272 | name = LaunchScreen.xib; 273 | sourceTree = ""; 274 | }; 275 | AEBB69C11CEC6303001DB4CA /* Main.storyboard */ = { 276 | isa = PBXVariantGroup; 277 | children = ( 278 | AEBB69C21CEC6303001DB4CA /* Base */, 279 | ); 280 | name = Main.storyboard; 281 | sourceTree = ""; 282 | }; 283 | /* End PBXVariantGroup section */ 284 | 285 | /* Begin XCBuildConfiguration section */ 286 | 607FACED1AFB9204008FA782 /* Debug */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ALWAYS_SEARCH_USER_PATHS = NO; 290 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 291 | CLANG_CXX_LIBRARY = "libc++"; 292 | CLANG_ENABLE_MODULES = YES; 293 | CLANG_ENABLE_OBJC_ARC = YES; 294 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 295 | CLANG_WARN_BOOL_CONVERSION = YES; 296 | CLANG_WARN_COMMA = YES; 297 | CLANG_WARN_CONSTANT_CONVERSION = YES; 298 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 299 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 300 | CLANG_WARN_EMPTY_BODY = YES; 301 | CLANG_WARN_ENUM_CONVERSION = YES; 302 | CLANG_WARN_INFINITE_RECURSION = YES; 303 | CLANG_WARN_INT_CONVERSION = YES; 304 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 305 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 306 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 307 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 308 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 309 | CLANG_WARN_STRICT_PROTOTYPES = YES; 310 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 311 | CLANG_WARN_UNREACHABLE_CODE = YES; 312 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 313 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 314 | COPY_PHASE_STRIP = NO; 315 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 316 | ENABLE_STRICT_OBJC_MSGSEND = YES; 317 | ENABLE_TESTABILITY = YES; 318 | GCC_C_LANGUAGE_STANDARD = gnu99; 319 | GCC_DYNAMIC_NO_PIC = NO; 320 | GCC_NO_COMMON_BLOCKS = YES; 321 | GCC_OPTIMIZATION_LEVEL = 0; 322 | GCC_PREPROCESSOR_DEFINITIONS = ( 323 | "DEBUG=1", 324 | "$(inherited)", 325 | ); 326 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 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 = 8.3; 334 | MTL_ENABLE_DEBUG_INFO = YES; 335 | ONLY_ACTIVE_ARCH = YES; 336 | SDKROOT = iphoneos; 337 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 338 | }; 339 | name = Debug; 340 | }; 341 | 607FACEE1AFB9204008FA782 /* Release */ = { 342 | isa = XCBuildConfiguration; 343 | buildSettings = { 344 | ALWAYS_SEARCH_USER_PATHS = NO; 345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 346 | CLANG_CXX_LIBRARY = "libc++"; 347 | CLANG_ENABLE_MODULES = YES; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 350 | CLANG_WARN_BOOL_CONVERSION = YES; 351 | CLANG_WARN_COMMA = YES; 352 | CLANG_WARN_CONSTANT_CONVERSION = YES; 353 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 354 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 355 | CLANG_WARN_EMPTY_BODY = YES; 356 | CLANG_WARN_ENUM_CONVERSION = YES; 357 | CLANG_WARN_INFINITE_RECURSION = YES; 358 | CLANG_WARN_INT_CONVERSION = YES; 359 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 360 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 361 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 362 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 363 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 364 | CLANG_WARN_STRICT_PROTOTYPES = YES; 365 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 366 | CLANG_WARN_UNREACHABLE_CODE = YES; 367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 368 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 369 | COPY_PHASE_STRIP = NO; 370 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 371 | ENABLE_NS_ASSERTIONS = NO; 372 | ENABLE_STRICT_OBJC_MSGSEND = YES; 373 | GCC_C_LANGUAGE_STANDARD = gnu99; 374 | GCC_NO_COMMON_BLOCKS = YES; 375 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 376 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 377 | GCC_WARN_UNDECLARED_SELECTOR = YES; 378 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 379 | GCC_WARN_UNUSED_FUNCTION = YES; 380 | GCC_WARN_UNUSED_VARIABLE = YES; 381 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 382 | MTL_ENABLE_DEBUG_INFO = NO; 383 | SDKROOT = iphoneos; 384 | VALIDATE_PRODUCT = YES; 385 | }; 386 | name = Release; 387 | }; 388 | 607FACF01AFB9204008FA782 /* Debug */ = { 389 | isa = XCBuildConfiguration; 390 | baseConfigurationReference = E4ACA28BC23E0E62601E63C9 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */; 391 | buildSettings = { 392 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 393 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 394 | INFOPLIST_FILE = ParticlesLoadingView/Info.plist; 395 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 397 | MODULE_NAME = ExampleApp; 398 | OTHER_CFLAGS = ( 399 | "$(inherited)", 400 | "-iquote", 401 | "\"$CONFIGURATION_BUILD_DIR/ParticlesLoadingView.framework/Headers\"", 402 | ); 403 | OTHER_LDFLAGS = ( 404 | "$(inherited)", 405 | "-framework", 406 | "\"ParticlesLoadingView\"", 407 | ); 408 | PODS_FRAMEWORK_BUILD_PATH = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-ParticlesLoadingView_Example"; 409 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 410 | PRODUCT_NAME = ParticlesLoadingView_Example; 411 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 412 | SWIFT_VERSION = 4.0; 413 | }; 414 | name = Debug; 415 | }; 416 | 607FACF11AFB9204008FA782 /* Release */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = C5E7D085E922F5AF8C412415 /* Pods-ParticlesLoadingView_Example.release.xcconfig */; 419 | buildSettings = { 420 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 421 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 422 | INFOPLIST_FILE = ParticlesLoadingView/Info.plist; 423 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 424 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 425 | MODULE_NAME = ExampleApp; 426 | OTHER_CFLAGS = ( 427 | "$(inherited)", 428 | "-iquote", 429 | "\"$CONFIGURATION_BUILD_DIR/ParticlesLoadingView.framework/Headers\"", 430 | ); 431 | OTHER_LDFLAGS = ( 432 | "$(inherited)", 433 | "-framework", 434 | "\"ParticlesLoadingView\"", 435 | ); 436 | PODS_FRAMEWORK_BUILD_PATH = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-ParticlesLoadingView_Example"; 437 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 438 | PRODUCT_NAME = ParticlesLoadingView_Example; 439 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 440 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 441 | SWIFT_VERSION = 4.0; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ParticlesLoadingView" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 607FACED1AFB9204008FA782 /* Debug */, 452 | 607FACEE1AFB9204008FA782 /* Release */, 453 | ); 454 | defaultConfigurationIsVisible = 0; 455 | defaultConfigurationName = Release; 456 | }; 457 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ParticlesLoadingView_Example" */ = { 458 | isa = XCConfigurationList; 459 | buildConfigurations = ( 460 | 607FACF01AFB9204008FA782 /* Debug */, 461 | 607FACF11AFB9204008FA782 /* Release */, 462 | ); 463 | defaultConfigurationIsVisible = 0; 464 | defaultConfigurationName = Release; 465 | }; 466 | /* End XCConfigurationList section */ 467 | }; 468 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 469 | } 470 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView.xcodeproj/xcshareddata/xcschemes/ParticlesLoadingView-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 01/30/2016. 6 | // Copyright (c) 2016 Patrick Balestra. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { 17 | return true 18 | } 19 | 20 | func applicationWillResignActive(_ application: UIApplication) { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | func applicationDidEnterBackground(_ application: UIApplication) { 26 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | func applicationWillEnterForeground(_ application: UIApplication) { 31 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 32 | } 33 | 34 | func applicationDidBecomeActive(_ application: UIApplication) { 35 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 36 | } 37 | 38 | func applicationWillTerminate(_ application: UIApplication) { 39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 40 | } 41 | 42 | 43 | } 44 | 45 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UIStatusBarStyle 34 | UIStatusBarStyleLightContent 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationLandscapeLeft 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/Spark.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Example/ParticlesLoadingView/Spark.sks -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 01/30/2016. 6 | // Copyright (c) 2016 Patrick Balestra. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | import ParticlesLoadingView 12 | 13 | class ViewController: UIViewController { 14 | 15 | @IBOutlet weak var circleLoadingView: UIView! 16 | @IBOutlet weak var messageView: UIView! 17 | 18 | lazy var loadingView: ParticlesLoadingView = { 19 | let x = UIScreen.main.bounds.size.width / 2 - (75 / 2) - 200 // 🙈 20 | let y = UIScreen.main.bounds.size.height / 2 - (75 / 2) // 🙉 21 | let view = ParticlesLoadingView(frame: CGRect(x: x, y: y, width: 75, height: 75)) 22 | view.particleEffect = .laser 23 | view.duration = 1.5 24 | view.particlesSize = 15.0 25 | view.clockwiseRotation = true 26 | view.layer.borderColor = UIColor.lightGray.cgColor 27 | view.layer.borderWidth = 1.0 28 | view.layer.cornerRadius = 15.0 29 | return view 30 | }() 31 | 32 | override func viewDidLoad() { 33 | super.viewDidLoad() 34 | 35 | // Add and start a view animation 36 | view.addSubview(loadingView) 37 | loadingView.startAnimating() 38 | 39 | // Customize view, choose the Fire effect and start the animation. 40 | messageView.layer.cornerRadius = 15.0 41 | messageView.layer.borderColor = UIColor.lightGray.cgColor 42 | messageView.layer.borderWidth = 1.0 43 | messageView.addParticlesAnimation(effect: ParticleEffect.fire) 44 | messageView.startAnimating() 45 | 46 | // Use a custom emitter particles file and customize the view. 47 | if let emitter = NSKeyedUnarchiver.unarchiveObject(withFile: Bundle.main.path(forResource: "Spark", ofType: "sks")!) as? SKEmitterNode { 48 | circleLoadingView.layer.borderWidth = 1.0 49 | circleLoadingView.layer.borderColor = UIColor.lightGray.cgColor 50 | circleLoadingView.layer.cornerRadius = circleLoadingView.frame.size.width / 2 51 | circleLoadingView.addParticlesAnimation(with: emitter) 52 | circleLoadingView.startAnimating() 53 | } 54 | } 55 | 56 | @IBAction func controlAnimation(_ sender: UIButton) { 57 | if circleLoadingView.isEmitting() { 58 | circleLoadingView.stopAnimating() 59 | loadingView.stopAnimating() 60 | messageView.stopAnimating() 61 | sender.setTitle("Start Animating", for: UIControlState()) 62 | } else { 63 | circleLoadingView.startAnimating() 64 | loadingView.startAnimating() 65 | messageView.startAnimating() 66 | sender.setTitle("Stop Animating", for: UIControlState()) 67 | } 68 | } 69 | } 70 | 71 | -------------------------------------------------------------------------------- /Example/ParticlesLoadingView/spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Example/ParticlesLoadingView/spark.png -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | 4 | target 'ParticlesLoadingView_Example' do 5 | pod 'ParticlesLoadingView', :path => '../' 6 | end 7 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ParticlesLoadingView (0.2) 3 | 4 | DEPENDENCIES: 5 | - ParticlesLoadingView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ParticlesLoadingView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ParticlesLoadingView: bf9d4b07166ed7d692b1275f7368862da89ee60f 13 | 14 | PODFILE CHECKSUM: 045949d6f37f0559cd4ad92def787e1fe4d41009 15 | 16 | COCOAPODS: 1.0.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ParticlesLoadingView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ParticlesLoadingView", 3 | "version": "0.2", 4 | "summary": "A loading animation made of particles.", 5 | "description": "A customizable SpriteKit particles animation on the border of a view.", 6 | "homepage": "https://github.com/BalestraPatrick/ParticlesLoadingView", 7 | "license": "MIT", 8 | "authors": { 9 | "Patrick Balestra": "me@patrickbalestra.com" 10 | }, 11 | "source": { 12 | "git": "https://github.com/BalestraPatrick/ParticlesLoadingView.git", 13 | "tag": "0.2" 14 | }, 15 | "social_media_url": "https://twitter.com/BalestraPatrick", 16 | "platforms": { 17 | "ios": "9.0" 18 | }, 19 | "requires_arc": true, 20 | "source_files": "Pod/Classes/**/*", 21 | "resource_bundles": { 22 | "ParticlesLoadingView": [ 23 | "Pod/Assets/*.png", 24 | "Pod/Assets/*.sks" 25 | ] 26 | }, 27 | "frameworks": "SpriteKit" 28 | } 29 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ParticlesLoadingView (0.2) 3 | 4 | DEPENDENCIES: 5 | - ParticlesLoadingView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ParticlesLoadingView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ParticlesLoadingView: bf9d4b07166ed7d692b1275f7368862da89ee60f 13 | 14 | PODFILE CHECKSUM: 045949d6f37f0559cd4ad92def787e1fe4d41009 15 | 16 | COCOAPODS: 1.0.0 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 | 0825CB696C08504822090AD84DC45A5D /* ParticlesLoadingView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0EF40B63787F6D728FD4CF4880436ED3 /* ParticlesLoadingView-dummy.m */; }; 11 | 0A346450D8C6CA89D0F45CF315CB3FEF /* ParticlesScene.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5343FDC95C22EF6B29A394B776F70BCF /* ParticlesScene.swift */; }; 12 | 144382561936765F0325CC85D66FCA4B /* Fire.sks in Resources */ = {isa = PBXBuildFile; fileRef = FDC2EEA1E2CBD058577D19CE8C05C54B /* Fire.sks */; }; 13 | 1FA58308C340F11EB0EE5D6FAF962135 /* SpriteKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F3E09F98CAC2E371FA8A2B20D80B54C6 /* SpriteKit.framework */; }; 14 | 26AC6BD85D20A21AF055CF8905B8D290 /* ParticlesLoadingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1DB7D6685CA128F383671AFA9EA70A7E /* ParticlesLoadingView.swift */; }; 15 | 3E92F2B64D4BD4F41B24FF9863E05E33 /* ParticlesLoadingView.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 41BFB9B13C1B6DF051ABAD38EE76D055 /* ParticlesLoadingView.bundle */; }; 16 | 3FE85BABD78F08A60725BFE61A19900C /* ParticleEffect.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919D19203C762F70F83CACAF59D47B5 /* ParticleEffect.swift */; }; 17 | 42918C24B59882069541A4F99A9FF62A /* ParticlesLoadingView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = FAFB8B5E9BC8E4716D0ED0ECAFC3D8B1 /* ParticlesLoadingView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | 46FEC3D2DA41F00D7FC21E15AA9B52D8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D05E006BDD69BC21AFF62E992E0FA09 /* Foundation.framework */; }; 19 | 4AAB0D464AF40215BA1EDB39DA8AEA4A /* Bokeh.sks in Resources */ = {isa = PBXBuildFile; fileRef = 851FE7B8E14FCBDE57346849A21EB962 /* Bokeh.sks */; }; 20 | 662259300DC2B512DE005D203CA8B825 /* UIView+ParticlesAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C0A8DF39C78C42DC6CE1876FF89D0AB /* UIView+ParticlesAnimation.swift */; }; 21 | 673992E3881AE1CE0E70480D3B161212 /* Pods-ParticlesLoadingView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CD77E4345ED52C15747ACD09BD4825C /* Pods-ParticlesLoadingView_Example-dummy.m */; }; 22 | 711F832856186CD73EAEA42F9CBFBDC3 /* Pods-ParticlesLoadingView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 17E50D9D10F91C70B5607934FB24DAC2 /* Pods-ParticlesLoadingView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | 8250DF0D4E169F9DC0CD638E75151CB2 /* spark.png in Resources */ = {isa = PBXBuildFile; fileRef = 40C5C8C079CCE6F156831F7ABB3BA4A2 /* spark.png */; }; 24 | 8E59E73B5185A5B2110563DC2BA99DBF /* Laser.sks in Resources */ = {isa = PBXBuildFile; fileRef = 8D356FEE958CEF9C41713617F684CE3F /* Laser.sks */; }; 25 | C013C6DC7B803E6E895C3AAE572AF2C3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9D05E006BDD69BC21AFF62E992E0FA09 /* Foundation.framework */; }; 26 | E4BBDE6C5F283AF38752C4E2269651ED /* EmitterCreator.swift in Sources */ = {isa = PBXBuildFile; fileRef = B17B944DF0CD77E52A4219A7A553DFDE /* EmitterCreator.swift */; }; 27 | E57F9620656E750B76A19CEA20205925 /* Spark.sks in Resources */ = {isa = PBXBuildFile; fileRef = A003D0A75FD97708C3729D7894B7CAA6 /* Spark.sks */; }; 28 | /* End PBXBuildFile section */ 29 | 30 | /* Begin PBXContainerItemProxy section */ 31 | 18A42286DFFE1D19CE02CBE5D181F152 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 3F3BA876BCA2AC1AF8AB2F6CB0059CBD; 36 | remoteInfo = ParticlesLoadingView; 37 | }; 38 | 37DAE81B980036844273E9281FAAA889 /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 41 | proxyType = 1; 42 | remoteGlobalIDString = 3BCD1607B5459A02EEC093E8FC60CE6D; 43 | remoteInfo = "ParticlesLoadingView-ParticlesLoadingView"; 44 | }; 45 | /* End PBXContainerItemProxy section */ 46 | 47 | /* Begin PBXFileReference section */ 48 | 0EF40B63787F6D728FD4CF4880436ED3 /* ParticlesLoadingView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ParticlesLoadingView-dummy.m"; sourceTree = ""; }; 49 | 15D934F49670AF32A2B488812BE452C7 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 50 | 17E50D9D10F91C70B5607934FB24DAC2 /* Pods-ParticlesLoadingView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ParticlesLoadingView_Example-umbrella.h"; sourceTree = ""; }; 51 | 1B9A8D7B2F4D6B4E8E024380E4672873 /* ParticlesLoadingView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = ParticlesLoadingView.modulemap; sourceTree = ""; }; 52 | 1CD77E4345ED52C15747ACD09BD4825C /* Pods-ParticlesLoadingView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ParticlesLoadingView_Example-dummy.m"; sourceTree = ""; }; 53 | 1DB7D6685CA128F383671AFA9EA70A7E /* ParticlesLoadingView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ParticlesLoadingView.swift; sourceTree = ""; }; 54 | 407F234EE43944FB41B4E0ADDA4FAD4C /* ResourceBundle-ParticlesLoadingView-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "ResourceBundle-ParticlesLoadingView-Info.plist"; sourceTree = ""; }; 55 | 40C5C8C079CCE6F156831F7ABB3BA4A2 /* spark.png */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = image.png; path = spark.png; sourceTree = ""; }; 56 | 41BFB9B13C1B6DF051ABAD38EE76D055 /* ParticlesLoadingView.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ParticlesLoadingView.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 452EE51E1358CB23C47DA43329414572 /* Pods-ParticlesLoadingView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ParticlesLoadingView_Example-frameworks.sh"; sourceTree = ""; }; 58 | 4919D19203C762F70F83CACAF59D47B5 /* ParticleEffect.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ParticleEffect.swift; sourceTree = ""; }; 59 | 5343FDC95C22EF6B29A394B776F70BCF /* ParticlesScene.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ParticlesScene.swift; sourceTree = ""; }; 60 | 5F4DDC20E278A57CE37420E7751EDD82 /* Pods_ParticlesLoadingView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ParticlesLoadingView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | 64E51AB5F6F709561D595152A325124D /* Pods-ParticlesLoadingView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = "sourcecode.module-map"; path = "Pods-ParticlesLoadingView_Example.modulemap"; sourceTree = ""; }; 62 | 7C0A8DF39C78C42DC6CE1876FF89D0AB /* UIView+ParticlesAnimation.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = "UIView+ParticlesAnimation.swift"; sourceTree = ""; }; 63 | 851FE7B8E14FCBDE57346849A21EB962 /* Bokeh.sks */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.sks; path = Bokeh.sks; sourceTree = ""; }; 64 | 886E0028D1F06B1AE28C8A19F6B3B0D7 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ParticlesLoadingView_Example.debug.xcconfig"; sourceTree = ""; }; 65 | 8874470267F72DEDAC0348D1BD0BC092 /* Pods-ParticlesLoadingView_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-ParticlesLoadingView_Example-resources.sh"; sourceTree = ""; }; 66 | 8D356FEE958CEF9C41713617F684CE3F /* Laser.sks */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.sks; path = Laser.sks; sourceTree = ""; }; 67 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 68 | 977308A5DB740B6CFBA48802CFC02048 /* Pods-ParticlesLoadingView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ParticlesLoadingView_Example.release.xcconfig"; sourceTree = ""; }; 69 | 9D05E006BDD69BC21AFF62E992E0FA09 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 70 | A003D0A75FD97708C3729D7894B7CAA6 /* Spark.sks */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.sks; path = Spark.sks; sourceTree = ""; }; 71 | B17B944DF0CD77E52A4219A7A553DFDE /* EmitterCreator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = EmitterCreator.swift; sourceTree = ""; }; 72 | BC01AC84CD090946BAA1759B61B93ADA /* ParticlesLoadingView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ParticlesLoadingView-prefix.pch"; sourceTree = ""; }; 73 | CAE6752D7FAD65E8362B3B233492DF88 /* Pods-ParticlesLoadingView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ParticlesLoadingView_Example-acknowledgements.markdown"; sourceTree = ""; }; 74 | D0F318D9D352CE643D06E7AB8B4D90F9 /* ParticlesLoadingView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ParticlesLoadingView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 75 | DFB0E3D3E19F75C22944F23DF16FFCA9 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 76 | E28EEDF5E521A1E8F4B63780879116DE /* Pods-ParticlesLoadingView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ParticlesLoadingView_Example-acknowledgements.plist"; sourceTree = ""; }; 77 | F3E09F98CAC2E371FA8A2B20D80B54C6 /* SpriteKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SpriteKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/SpriteKit.framework; sourceTree = DEVELOPER_DIR; }; 78 | F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ParticlesLoadingView.xcconfig; sourceTree = ""; }; 79 | FAFB8B5E9BC8E4716D0ED0ECAFC3D8B1 /* ParticlesLoadingView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ParticlesLoadingView-umbrella.h"; sourceTree = ""; }; 80 | FDC2EEA1E2CBD058577D19CE8C05C54B /* Fire.sks */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = file.sks; path = Fire.sks; sourceTree = ""; }; 81 | /* End PBXFileReference section */ 82 | 83 | /* Begin PBXFrameworksBuildPhase section */ 84 | 019C65396DDAD96033D377E9D3DEB0C8 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | E0D8A2382FC3483EF5226DD0B372D2D9 /* Frameworks */ = { 92 | isa = PBXFrameworksBuildPhase; 93 | buildActionMask = 2147483647; 94 | files = ( 95 | 46FEC3D2DA41F00D7FC21E15AA9B52D8 /* Foundation.framework in Frameworks */, 96 | 1FA58308C340F11EB0EE5D6FAF962135 /* SpriteKit.framework in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | F614E72B5EE77D3E69277EA6FB0CB7A9 /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | C013C6DC7B803E6E895C3AAE572AF2C3 /* Foundation.framework in Frameworks */, 105 | ); 106 | runOnlyForDeploymentPostprocessing = 0; 107 | }; 108 | /* End PBXFrameworksBuildPhase section */ 109 | 110 | /* Begin PBXGroup section */ 111 | 1190EF98F2FAF4E7EEDD4ECA32B5AD0E /* Classes */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | B17B944DF0CD77E52A4219A7A553DFDE /* EmitterCreator.swift */, 115 | 4919D19203C762F70F83CACAF59D47B5 /* ParticleEffect.swift */, 116 | 1DB7D6685CA128F383671AFA9EA70A7E /* ParticlesLoadingView.swift */, 117 | 5343FDC95C22EF6B29A394B776F70BCF /* ParticlesScene.swift */, 118 | 7C0A8DF39C78C42DC6CE1876FF89D0AB /* UIView+ParticlesAnimation.swift */, 119 | ); 120 | path = Classes; 121 | sourceTree = ""; 122 | }; 123 | 12B4EB715273A9E52D55810EBAD08311 /* Development Pods */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 6BE149611EF2F4A5A9EB23E3635013AE /* ParticlesLoadingView */, 127 | ); 128 | name = "Development Pods"; 129 | sourceTree = ""; 130 | }; 131 | 159CF00E8E1BAE7E0C06284954FBD9F2 /* Pod */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | CF3CFAE555A2CB8B83AB3A54DD5EAD2D /* Assets */, 135 | ); 136 | path = Pod; 137 | sourceTree = ""; 138 | }; 139 | 397BA0D6094079240AF0FBEA42B38577 /* Targets Support Files */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 816419A7B8ED84DDD2924A4B9A462A7A /* Pods-ParticlesLoadingView_Example */, 143 | ); 144 | name = "Targets Support Files"; 145 | sourceTree = ""; 146 | }; 147 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | B53BEAF673CCDFD492699BED287B2015 /* iOS */, 151 | ); 152 | name = Frameworks; 153 | sourceTree = ""; 154 | }; 155 | 6BE149611EF2F4A5A9EB23E3635013AE /* ParticlesLoadingView */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | A975F0BAB8CD0FEBBDB85629289933EC /* Pod */, 159 | BFEC6C826ACD29CFFCDA5F3A105E957F /* Resources */, 160 | A10EAC7FC0A3A482B2D1C29ACB17CC20 /* Support Files */, 161 | ); 162 | name = ParticlesLoadingView; 163 | path = ../..; 164 | sourceTree = ""; 165 | }; 166 | 7DB346D0F39D3F0E887471402A8071AB = { 167 | isa = PBXGroup; 168 | children = ( 169 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 170 | 12B4EB715273A9E52D55810EBAD08311 /* Development Pods */, 171 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 172 | B5ADF0EF65089CDDC51A9C9AFD3FEEBF /* Products */, 173 | 397BA0D6094079240AF0FBEA42B38577 /* Targets Support Files */, 174 | ); 175 | sourceTree = ""; 176 | }; 177 | 816419A7B8ED84DDD2924A4B9A462A7A /* Pods-ParticlesLoadingView_Example */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | DFB0E3D3E19F75C22944F23DF16FFCA9 /* Info.plist */, 181 | 64E51AB5F6F709561D595152A325124D /* Pods-ParticlesLoadingView_Example.modulemap */, 182 | CAE6752D7FAD65E8362B3B233492DF88 /* Pods-ParticlesLoadingView_Example-acknowledgements.markdown */, 183 | E28EEDF5E521A1E8F4B63780879116DE /* Pods-ParticlesLoadingView_Example-acknowledgements.plist */, 184 | 1CD77E4345ED52C15747ACD09BD4825C /* Pods-ParticlesLoadingView_Example-dummy.m */, 185 | 452EE51E1358CB23C47DA43329414572 /* Pods-ParticlesLoadingView_Example-frameworks.sh */, 186 | 8874470267F72DEDAC0348D1BD0BC092 /* Pods-ParticlesLoadingView_Example-resources.sh */, 187 | 17E50D9D10F91C70B5607934FB24DAC2 /* Pods-ParticlesLoadingView_Example-umbrella.h */, 188 | 886E0028D1F06B1AE28C8A19F6B3B0D7 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */, 189 | 977308A5DB740B6CFBA48802CFC02048 /* Pods-ParticlesLoadingView_Example.release.xcconfig */, 190 | ); 191 | name = "Pods-ParticlesLoadingView_Example"; 192 | path = "Target Support Files/Pods-ParticlesLoadingView_Example"; 193 | sourceTree = ""; 194 | }; 195 | A10EAC7FC0A3A482B2D1C29ACB17CC20 /* Support Files */ = { 196 | isa = PBXGroup; 197 | children = ( 198 | 15D934F49670AF32A2B488812BE452C7 /* Info.plist */, 199 | 1B9A8D7B2F4D6B4E8E024380E4672873 /* ParticlesLoadingView.modulemap */, 200 | F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */, 201 | 0EF40B63787F6D728FD4CF4880436ED3 /* ParticlesLoadingView-dummy.m */, 202 | BC01AC84CD090946BAA1759B61B93ADA /* ParticlesLoadingView-prefix.pch */, 203 | FAFB8B5E9BC8E4716D0ED0ECAFC3D8B1 /* ParticlesLoadingView-umbrella.h */, 204 | 407F234EE43944FB41B4E0ADDA4FAD4C /* ResourceBundle-ParticlesLoadingView-Info.plist */, 205 | ); 206 | name = "Support Files"; 207 | path = "Example/Pods/Target Support Files/ParticlesLoadingView"; 208 | sourceTree = ""; 209 | }; 210 | A975F0BAB8CD0FEBBDB85629289933EC /* Pod */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 1190EF98F2FAF4E7EEDD4ECA32B5AD0E /* Classes */, 214 | ); 215 | path = Pod; 216 | sourceTree = ""; 217 | }; 218 | B53BEAF673CCDFD492699BED287B2015 /* iOS */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 9D05E006BDD69BC21AFF62E992E0FA09 /* Foundation.framework */, 222 | F3E09F98CAC2E371FA8A2B20D80B54C6 /* SpriteKit.framework */, 223 | ); 224 | name = iOS; 225 | sourceTree = ""; 226 | }; 227 | B5ADF0EF65089CDDC51A9C9AFD3FEEBF /* Products */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 41BFB9B13C1B6DF051ABAD38EE76D055 /* ParticlesLoadingView.bundle */, 231 | D0F318D9D352CE643D06E7AB8B4D90F9 /* ParticlesLoadingView.framework */, 232 | 5F4DDC20E278A57CE37420E7751EDD82 /* Pods_ParticlesLoadingView_Example.framework */, 233 | ); 234 | name = Products; 235 | sourceTree = ""; 236 | }; 237 | BFEC6C826ACD29CFFCDA5F3A105E957F /* Resources */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | 159CF00E8E1BAE7E0C06284954FBD9F2 /* Pod */, 241 | ); 242 | name = Resources; 243 | sourceTree = ""; 244 | }; 245 | CF3CFAE555A2CB8B83AB3A54DD5EAD2D /* Assets */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 851FE7B8E14FCBDE57346849A21EB962 /* Bokeh.sks */, 249 | FDC2EEA1E2CBD058577D19CE8C05C54B /* Fire.sks */, 250 | 8D356FEE958CEF9C41713617F684CE3F /* Laser.sks */, 251 | 40C5C8C079CCE6F156831F7ABB3BA4A2 /* spark.png */, 252 | A003D0A75FD97708C3729D7894B7CAA6 /* Spark.sks */, 253 | ); 254 | path = Assets; 255 | sourceTree = ""; 256 | }; 257 | /* End PBXGroup section */ 258 | 259 | /* Begin PBXHeadersBuildPhase section */ 260 | C2226E17B26FCBDB07878EDAB4E4D7FE /* Headers */ = { 261 | isa = PBXHeadersBuildPhase; 262 | buildActionMask = 2147483647; 263 | files = ( 264 | 711F832856186CD73EAEA42F9CBFBDC3 /* Pods-ParticlesLoadingView_Example-umbrella.h in Headers */, 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | }; 268 | FDB73EA71800B23A28081D4EA4BA38FD /* Headers */ = { 269 | isa = PBXHeadersBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | 42918C24B59882069541A4F99A9FF62A /* ParticlesLoadingView-umbrella.h in Headers */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXHeadersBuildPhase section */ 277 | 278 | /* Begin PBXNativeTarget section */ 279 | 05FA17B0A5556BCC29BA73F9C32A5449 /* Pods-ParticlesLoadingView_Example */ = { 280 | isa = PBXNativeTarget; 281 | buildConfigurationList = B691B425A403BDD4AA28EE3E22BA6CFE /* Build configuration list for PBXNativeTarget "Pods-ParticlesLoadingView_Example" */; 282 | buildPhases = ( 283 | CB6298B24140BA82789647BF6575F9BF /* Sources */, 284 | F614E72B5EE77D3E69277EA6FB0CB7A9 /* Frameworks */, 285 | C2226E17B26FCBDB07878EDAB4E4D7FE /* Headers */, 286 | ); 287 | buildRules = ( 288 | ); 289 | dependencies = ( 290 | 526E51E7B0D3C0E0253B814A677133D0 /* PBXTargetDependency */, 291 | ); 292 | name = "Pods-ParticlesLoadingView_Example"; 293 | productName = "Pods-ParticlesLoadingView_Example"; 294 | productReference = 5F4DDC20E278A57CE37420E7751EDD82 /* Pods_ParticlesLoadingView_Example.framework */; 295 | productType = "com.apple.product-type.framework"; 296 | }; 297 | 3BCD1607B5459A02EEC093E8FC60CE6D /* ParticlesLoadingView-ParticlesLoadingView */ = { 298 | isa = PBXNativeTarget; 299 | buildConfigurationList = A8D95E1CED15025861A3C655538DD74E /* Build configuration list for PBXNativeTarget "ParticlesLoadingView-ParticlesLoadingView" */; 300 | buildPhases = ( 301 | D677345289BDA927F4DFFB9E15818385 /* Sources */, 302 | 019C65396DDAD96033D377E9D3DEB0C8 /* Frameworks */, 303 | 6F659FA745D062DC74B439ECA52F8FE0 /* Resources */, 304 | ); 305 | buildRules = ( 306 | ); 307 | dependencies = ( 308 | ); 309 | name = "ParticlesLoadingView-ParticlesLoadingView"; 310 | productName = "ParticlesLoadingView-ParticlesLoadingView"; 311 | productReference = 41BFB9B13C1B6DF051ABAD38EE76D055 /* ParticlesLoadingView.bundle */; 312 | productType = "com.apple.product-type.bundle"; 313 | }; 314 | 3F3BA876BCA2AC1AF8AB2F6CB0059CBD /* ParticlesLoadingView */ = { 315 | isa = PBXNativeTarget; 316 | buildConfigurationList = A2B2F5A0B200975B22E89D7F98BA3A79 /* Build configuration list for PBXNativeTarget "ParticlesLoadingView" */; 317 | buildPhases = ( 318 | 1CE646751B19B2435F94B907FB8821F3 /* Sources */, 319 | E0D8A2382FC3483EF5226DD0B372D2D9 /* Frameworks */, 320 | 242EAF7AEF45FFCC6FB245256F9DD2A2 /* Resources */, 321 | FDB73EA71800B23A28081D4EA4BA38FD /* Headers */, 322 | ); 323 | buildRules = ( 324 | ); 325 | dependencies = ( 326 | 832E5EF6D9273F733D8D767BF8BF7F28 /* PBXTargetDependency */, 327 | ); 328 | name = ParticlesLoadingView; 329 | productName = ParticlesLoadingView; 330 | productReference = D0F318D9D352CE643D06E7AB8B4D90F9 /* ParticlesLoadingView.framework */; 331 | productType = "com.apple.product-type.framework"; 332 | }; 333 | /* End PBXNativeTarget section */ 334 | 335 | /* Begin PBXProject section */ 336 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 337 | isa = PBXProject; 338 | attributes = { 339 | LastSwiftUpdateCheck = 0730; 340 | LastUpgradeCheck = 0930; 341 | TargetAttributes = { 342 | 3F3BA876BCA2AC1AF8AB2F6CB0059CBD = { 343 | LastSwiftMigration = 0900; 344 | }; 345 | }; 346 | }; 347 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 348 | compatibilityVersion = "Xcode 3.2"; 349 | developmentRegion = English; 350 | hasScannedForEncodings = 0; 351 | knownRegions = ( 352 | en, 353 | ); 354 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 355 | productRefGroup = B5ADF0EF65089CDDC51A9C9AFD3FEEBF /* Products */; 356 | projectDirPath = ""; 357 | projectRoot = ""; 358 | targets = ( 359 | 3F3BA876BCA2AC1AF8AB2F6CB0059CBD /* ParticlesLoadingView */, 360 | 3BCD1607B5459A02EEC093E8FC60CE6D /* ParticlesLoadingView-ParticlesLoadingView */, 361 | 05FA17B0A5556BCC29BA73F9C32A5449 /* Pods-ParticlesLoadingView_Example */, 362 | ); 363 | }; 364 | /* End PBXProject section */ 365 | 366 | /* Begin PBXResourcesBuildPhase section */ 367 | 242EAF7AEF45FFCC6FB245256F9DD2A2 /* Resources */ = { 368 | isa = PBXResourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 3E92F2B64D4BD4F41B24FF9863E05E33 /* ParticlesLoadingView.bundle in Resources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | 6F659FA745D062DC74B439ECA52F8FE0 /* Resources */ = { 376 | isa = PBXResourcesBuildPhase; 377 | buildActionMask = 2147483647; 378 | files = ( 379 | 4AAB0D464AF40215BA1EDB39DA8AEA4A /* Bokeh.sks in Resources */, 380 | 144382561936765F0325CC85D66FCA4B /* Fire.sks in Resources */, 381 | 8E59E73B5185A5B2110563DC2BA99DBF /* Laser.sks in Resources */, 382 | 8250DF0D4E169F9DC0CD638E75151CB2 /* spark.png in Resources */, 383 | E57F9620656E750B76A19CEA20205925 /* Spark.sks in Resources */, 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | /* End PBXResourcesBuildPhase section */ 388 | 389 | /* Begin PBXSourcesBuildPhase section */ 390 | 1CE646751B19B2435F94B907FB8821F3 /* Sources */ = { 391 | isa = PBXSourcesBuildPhase; 392 | buildActionMask = 2147483647; 393 | files = ( 394 | E4BBDE6C5F283AF38752C4E2269651ED /* EmitterCreator.swift in Sources */, 395 | 3FE85BABD78F08A60725BFE61A19900C /* ParticleEffect.swift in Sources */, 396 | 0825CB696C08504822090AD84DC45A5D /* ParticlesLoadingView-dummy.m in Sources */, 397 | 26AC6BD85D20A21AF055CF8905B8D290 /* ParticlesLoadingView.swift in Sources */, 398 | 0A346450D8C6CA89D0F45CF315CB3FEF /* ParticlesScene.swift in Sources */, 399 | 662259300DC2B512DE005D203CA8B825 /* UIView+ParticlesAnimation.swift in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | CB6298B24140BA82789647BF6575F9BF /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | 673992E3881AE1CE0E70480D3B161212 /* Pods-ParticlesLoadingView_Example-dummy.m in Sources */, 408 | ); 409 | runOnlyForDeploymentPostprocessing = 0; 410 | }; 411 | D677345289BDA927F4DFFB9E15818385 /* Sources */ = { 412 | isa = PBXSourcesBuildPhase; 413 | buildActionMask = 2147483647; 414 | files = ( 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | /* End PBXSourcesBuildPhase section */ 419 | 420 | /* Begin PBXTargetDependency section */ 421 | 526E51E7B0D3C0E0253B814A677133D0 /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | name = ParticlesLoadingView; 424 | target = 3F3BA876BCA2AC1AF8AB2F6CB0059CBD /* ParticlesLoadingView */; 425 | targetProxy = 18A42286DFFE1D19CE02CBE5D181F152 /* PBXContainerItemProxy */; 426 | }; 427 | 832E5EF6D9273F733D8D767BF8BF7F28 /* PBXTargetDependency */ = { 428 | isa = PBXTargetDependency; 429 | name = "ParticlesLoadingView-ParticlesLoadingView"; 430 | target = 3BCD1607B5459A02EEC093E8FC60CE6D /* ParticlesLoadingView-ParticlesLoadingView */; 431 | targetProxy = 37DAE81B980036844273E9281FAAA889 /* PBXContainerItemProxy */; 432 | }; 433 | /* End PBXTargetDependency section */ 434 | 435 | /* Begin XCBuildConfiguration section */ 436 | 034014829C1E4434983CF3A690C12017 /* Debug */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_ANALYZER_NONNULL = YES; 441 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 442 | CLANG_CXX_LIBRARY = "libc++"; 443 | CLANG_ENABLE_MODULES = YES; 444 | CLANG_ENABLE_OBJC_ARC = YES; 445 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 446 | CLANG_WARN_BOOL_CONVERSION = YES; 447 | CLANG_WARN_COMMA = YES; 448 | CLANG_WARN_CONSTANT_CONVERSION = YES; 449 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 451 | CLANG_WARN_EMPTY_BODY = YES; 452 | CLANG_WARN_ENUM_CONVERSION = YES; 453 | CLANG_WARN_INFINITE_RECURSION = YES; 454 | CLANG_WARN_INT_CONVERSION = YES; 455 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 456 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 459 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 460 | CLANG_WARN_STRICT_PROTOTYPES = YES; 461 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 462 | CLANG_WARN_UNREACHABLE_CODE = YES; 463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 464 | COPY_PHASE_STRIP = NO; 465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 466 | ENABLE_TESTABILITY = YES; 467 | GCC_C_LANGUAGE_STANDARD = gnu99; 468 | GCC_DYNAMIC_NO_PIC = NO; 469 | GCC_NO_COMMON_BLOCKS = YES; 470 | GCC_OPTIMIZATION_LEVEL = 0; 471 | GCC_PREPROCESSOR_DEFINITIONS = ( 472 | "POD_CONFIGURATION_DEBUG=1", 473 | "DEBUG=1", 474 | "$(inherited)", 475 | ); 476 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 477 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 478 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 479 | GCC_WARN_UNDECLARED_SELECTOR = YES; 480 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 481 | GCC_WARN_UNUSED_FUNCTION = YES; 482 | GCC_WARN_UNUSED_VARIABLE = YES; 483 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 484 | ONLY_ACTIVE_ARCH = YES; 485 | STRIP_INSTALLED_PRODUCT = NO; 486 | SYMROOT = "${SRCROOT}/../build"; 487 | }; 488 | name = Debug; 489 | }; 490 | 13D1D7437BA3F8A2C0791706C0581EF2 /* Debug */ = { 491 | isa = XCBuildConfiguration; 492 | baseConfigurationReference = 886E0028D1F06B1AE28C8A19F6B3B0D7 /* Pods-ParticlesLoadingView_Example.debug.xcconfig */; 493 | buildSettings = { 494 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 495 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 496 | CURRENT_PROJECT_VERSION = 1; 497 | DEBUG_INFORMATION_FORMAT = dwarf; 498 | DEFINES_MODULE = YES; 499 | DYLIB_COMPATIBILITY_VERSION = 1; 500 | DYLIB_CURRENT_VERSION = 1; 501 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 502 | ENABLE_STRICT_OBJC_MSGSEND = YES; 503 | GCC_NO_COMMON_BLOCKS = YES; 504 | INFOPLIST_FILE = "Target Support Files/Pods-ParticlesLoadingView_Example/Info.plist"; 505 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 506 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 507 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 508 | MACH_O_TYPE = staticlib; 509 | MODULEMAP_FILE = "Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.modulemap"; 510 | MTL_ENABLE_DEBUG_INFO = YES; 511 | OTHER_LDFLAGS = ""; 512 | OTHER_LIBTOOLFLAGS = ""; 513 | PODS_ROOT = "$(SRCROOT)"; 514 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 515 | PRODUCT_NAME = Pods_ParticlesLoadingView_Example; 516 | SDKROOT = iphoneos; 517 | SKIP_INSTALL = YES; 518 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 519 | TARGETED_DEVICE_FAMILY = "1,2"; 520 | VERSIONING_SYSTEM = "apple-generic"; 521 | VERSION_INFO_PREFIX = ""; 522 | }; 523 | name = Debug; 524 | }; 525 | 25C5C745E4F6969B1B87DE9B50B00CB9 /* Debug */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */; 528 | buildSettings = { 529 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/ParticlesLoadingView"; 530 | ENABLE_STRICT_OBJC_MSGSEND = YES; 531 | GCC_NO_COMMON_BLOCKS = YES; 532 | INFOPLIST_FILE = "Target Support Files/ParticlesLoadingView/ResourceBundle-ParticlesLoadingView-Info.plist"; 533 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 534 | PRODUCT_NAME = ParticlesLoadingView; 535 | SDKROOT = iphoneos; 536 | SKIP_INSTALL = YES; 537 | TARGETED_DEVICE_FAMILY = "1,2"; 538 | WRAPPER_EXTENSION = bundle; 539 | }; 540 | name = Debug; 541 | }; 542 | 6A710473348B6339B38BE2A737983D51 /* Release */ = { 543 | isa = XCBuildConfiguration; 544 | baseConfigurationReference = 977308A5DB740B6CFBA48802CFC02048 /* Pods-ParticlesLoadingView_Example.release.xcconfig */; 545 | buildSettings = { 546 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 547 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 548 | CURRENT_PROJECT_VERSION = 1; 549 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 550 | DEFINES_MODULE = YES; 551 | DYLIB_COMPATIBILITY_VERSION = 1; 552 | DYLIB_CURRENT_VERSION = 1; 553 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 554 | ENABLE_STRICT_OBJC_MSGSEND = YES; 555 | GCC_NO_COMMON_BLOCKS = YES; 556 | INFOPLIST_FILE = "Target Support Files/Pods-ParticlesLoadingView_Example/Info.plist"; 557 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 558 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 560 | MACH_O_TYPE = staticlib; 561 | MODULEMAP_FILE = "Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.modulemap"; 562 | MTL_ENABLE_DEBUG_INFO = NO; 563 | OTHER_LDFLAGS = ""; 564 | OTHER_LIBTOOLFLAGS = ""; 565 | PODS_ROOT = "$(SRCROOT)"; 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 567 | PRODUCT_NAME = Pods_ParticlesLoadingView_Example; 568 | SDKROOT = iphoneos; 569 | SKIP_INSTALL = YES; 570 | TARGETED_DEVICE_FAMILY = "1,2"; 571 | VERSIONING_SYSTEM = "apple-generic"; 572 | VERSION_INFO_PREFIX = ""; 573 | }; 574 | name = Release; 575 | }; 576 | 711C6E2F19A2D618F8C55992753E162F /* Release */ = { 577 | isa = XCBuildConfiguration; 578 | baseConfigurationReference = F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */; 579 | buildSettings = { 580 | CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/ParticlesLoadingView"; 581 | ENABLE_STRICT_OBJC_MSGSEND = YES; 582 | GCC_NO_COMMON_BLOCKS = YES; 583 | INFOPLIST_FILE = "Target Support Files/ParticlesLoadingView/ResourceBundle-ParticlesLoadingView-Info.plist"; 584 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 585 | PRODUCT_NAME = ParticlesLoadingView; 586 | SDKROOT = iphoneos; 587 | SKIP_INSTALL = YES; 588 | TARGETED_DEVICE_FAMILY = "1,2"; 589 | WRAPPER_EXTENSION = bundle; 590 | }; 591 | name = Release; 592 | }; 593 | B355F2973E10ED83CA870E30703B83D1 /* Debug */ = { 594 | isa = XCBuildConfiguration; 595 | baseConfigurationReference = F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */; 596 | buildSettings = { 597 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 598 | CURRENT_PROJECT_VERSION = 1; 599 | DEBUG_INFORMATION_FORMAT = dwarf; 600 | DEFINES_MODULE = YES; 601 | DYLIB_COMPATIBILITY_VERSION = 1; 602 | DYLIB_CURRENT_VERSION = 1; 603 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 604 | ENABLE_STRICT_OBJC_MSGSEND = YES; 605 | GCC_NO_COMMON_BLOCKS = YES; 606 | GCC_PREFIX_HEADER = "Target Support Files/ParticlesLoadingView/ParticlesLoadingView-prefix.pch"; 607 | INFOPLIST_FILE = "Target Support Files/ParticlesLoadingView/Info.plist"; 608 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 609 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 610 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 611 | MODULEMAP_FILE = "Target Support Files/ParticlesLoadingView/ParticlesLoadingView.modulemap"; 612 | MTL_ENABLE_DEBUG_INFO = YES; 613 | PRODUCT_NAME = ParticlesLoadingView; 614 | SDKROOT = iphoneos; 615 | SKIP_INSTALL = YES; 616 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 617 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 618 | SWIFT_VERSION = 4.0; 619 | TARGETED_DEVICE_FAMILY = "1,2"; 620 | VERSIONING_SYSTEM = "apple-generic"; 621 | VERSION_INFO_PREFIX = ""; 622 | }; 623 | name = Debug; 624 | }; 625 | C7E474A03CAE21F1CB6046E7344C59BD /* Release */ = { 626 | isa = XCBuildConfiguration; 627 | buildSettings = { 628 | ALWAYS_SEARCH_USER_PATHS = NO; 629 | CLANG_ANALYZER_NONNULL = YES; 630 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 631 | CLANG_CXX_LIBRARY = "libc++"; 632 | CLANG_ENABLE_MODULES = YES; 633 | CLANG_ENABLE_OBJC_ARC = YES; 634 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 635 | CLANG_WARN_BOOL_CONVERSION = YES; 636 | CLANG_WARN_COMMA = YES; 637 | CLANG_WARN_CONSTANT_CONVERSION = YES; 638 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 639 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 640 | CLANG_WARN_EMPTY_BODY = YES; 641 | CLANG_WARN_ENUM_CONVERSION = YES; 642 | CLANG_WARN_INFINITE_RECURSION = YES; 643 | CLANG_WARN_INT_CONVERSION = YES; 644 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 645 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 646 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 647 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 648 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 649 | CLANG_WARN_STRICT_PROTOTYPES = YES; 650 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 651 | CLANG_WARN_UNREACHABLE_CODE = YES; 652 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 653 | COPY_PHASE_STRIP = YES; 654 | ENABLE_NS_ASSERTIONS = NO; 655 | ENABLE_STRICT_OBJC_MSGSEND = YES; 656 | GCC_C_LANGUAGE_STANDARD = gnu99; 657 | GCC_NO_COMMON_BLOCKS = YES; 658 | GCC_PREPROCESSOR_DEFINITIONS = ( 659 | "POD_CONFIGURATION_RELEASE=1", 660 | "$(inherited)", 661 | ); 662 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 663 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 664 | GCC_WARN_UNDECLARED_SELECTOR = YES; 665 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 666 | GCC_WARN_UNUSED_FUNCTION = YES; 667 | GCC_WARN_UNUSED_VARIABLE = YES; 668 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 669 | STRIP_INSTALLED_PRODUCT = NO; 670 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 671 | SYMROOT = "${SRCROOT}/../build"; 672 | VALIDATE_PRODUCT = YES; 673 | }; 674 | name = Release; 675 | }; 676 | E6BDE5835EAA2934E49E41149D45F513 /* Release */ = { 677 | isa = XCBuildConfiguration; 678 | baseConfigurationReference = F41D99867FE17DFA5AF7F9A2E47C8230 /* ParticlesLoadingView.xcconfig */; 679 | buildSettings = { 680 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 681 | CURRENT_PROJECT_VERSION = 1; 682 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 683 | DEFINES_MODULE = YES; 684 | DYLIB_COMPATIBILITY_VERSION = 1; 685 | DYLIB_CURRENT_VERSION = 1; 686 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 687 | ENABLE_STRICT_OBJC_MSGSEND = YES; 688 | GCC_NO_COMMON_BLOCKS = YES; 689 | GCC_PREFIX_HEADER = "Target Support Files/ParticlesLoadingView/ParticlesLoadingView-prefix.pch"; 690 | INFOPLIST_FILE = "Target Support Files/ParticlesLoadingView/Info.plist"; 691 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 692 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 693 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 694 | MODULEMAP_FILE = "Target Support Files/ParticlesLoadingView/ParticlesLoadingView.modulemap"; 695 | MTL_ENABLE_DEBUG_INFO = NO; 696 | PRODUCT_NAME = ParticlesLoadingView; 697 | SDKROOT = iphoneos; 698 | SKIP_INSTALL = YES; 699 | SWIFT_SWIFT3_OBJC_INFERENCE = Off; 700 | SWIFT_VERSION = 4.0; 701 | TARGETED_DEVICE_FAMILY = "1,2"; 702 | VERSIONING_SYSTEM = "apple-generic"; 703 | VERSION_INFO_PREFIX = ""; 704 | }; 705 | name = Release; 706 | }; 707 | /* End XCBuildConfiguration section */ 708 | 709 | /* Begin XCConfigurationList section */ 710 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 711 | isa = XCConfigurationList; 712 | buildConfigurations = ( 713 | 034014829C1E4434983CF3A690C12017 /* Debug */, 714 | C7E474A03CAE21F1CB6046E7344C59BD /* Release */, 715 | ); 716 | defaultConfigurationIsVisible = 0; 717 | defaultConfigurationName = Release; 718 | }; 719 | A2B2F5A0B200975B22E89D7F98BA3A79 /* Build configuration list for PBXNativeTarget "ParticlesLoadingView" */ = { 720 | isa = XCConfigurationList; 721 | buildConfigurations = ( 722 | B355F2973E10ED83CA870E30703B83D1 /* Debug */, 723 | E6BDE5835EAA2934E49E41149D45F513 /* Release */, 724 | ); 725 | defaultConfigurationIsVisible = 0; 726 | defaultConfigurationName = Release; 727 | }; 728 | A8D95E1CED15025861A3C655538DD74E /* Build configuration list for PBXNativeTarget "ParticlesLoadingView-ParticlesLoadingView" */ = { 729 | isa = XCConfigurationList; 730 | buildConfigurations = ( 731 | 25C5C745E4F6969B1B87DE9B50B00CB9 /* Debug */, 732 | 711C6E2F19A2D618F8C55992753E162F /* Release */, 733 | ); 734 | defaultConfigurationIsVisible = 0; 735 | defaultConfigurationName = Release; 736 | }; 737 | B691B425A403BDD4AA28EE3E22BA6CFE /* Build configuration list for PBXNativeTarget "Pods-ParticlesLoadingView_Example" */ = { 738 | isa = XCConfigurationList; 739 | buildConfigurations = ( 740 | 13D1D7437BA3F8A2C0791706C0581EF2 /* Debug */, 741 | 6A710473348B6339B38BE2A737983D51 /* Release */, 742 | ); 743 | defaultConfigurationIsVisible = 0; 744 | defaultConfigurationName = Release; 745 | }; 746 | /* End XCConfigurationList section */ 747 | }; 748 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 749 | } 750 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ParticlesLoadingView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ParticlesLoadingView : NSObject 3 | @end 4 | @implementation PodsDummy_ParticlesLoadingView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ParticlesLoadingView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ParticlesLoadingView-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double ParticlesLoadingViewVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char ParticlesLoadingViewVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ParticlesLoadingView.modulemap: -------------------------------------------------------------------------------- 1 | framework module ParticlesLoadingView { 2 | umbrella header "ParticlesLoadingView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ParticlesLoadingView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/ParticlesLoadingView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "SpriteKit" 5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ParticlesLoadingView/ResourceBundle-ParticlesLoadingView-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 0.2.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_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-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ParticlesLoadingView 5 | 6 | Copyright (c) 2016 Patrick Balestra 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Patrick Balestra <me@patrickbalestra.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | ParticlesLoadingView 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - https://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ParticlesLoadingView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ParticlesLoadingView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/ParticlesLoadingView/ParticlesLoadingView.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/ParticlesLoadingView/ParticlesLoadingView.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | 4 | FOUNDATION_EXPORT double Pods_ParticlesLoadingView_ExampleVersionNumber; 5 | FOUNDATION_EXPORT const unsigned char Pods_ParticlesLoadingView_ExampleVersionString[]; 6 | 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ParticlesLoadingView" 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/ParticlesLoadingView/ParticlesLoadingView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "ParticlesLoadingView" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ParticlesLoadingView_Example { 2 | umbrella header "Pods-ParticlesLoadingView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ParticlesLoadingView_Example/Pods-ParticlesLoadingView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/ParticlesLoadingView" 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/ParticlesLoadingView/ParticlesLoadingView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "ParticlesLoadingView" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Patrick Balestra 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /ParticlesLoadingView.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "ParticlesLoadingView" 3 | s.version = "0.5" 4 | s.summary = "A loading animation made of particles." 5 | s.description = "A customizable SpriteKit particles animation on the border of a view." 6 | s.homepage = "https://github.com/BalestraPatrick/ParticlesLoadingView" 7 | s.license = 'MIT' 8 | s.author = { "Patrick Balestra" => "me@patrickbalestra.com" } 9 | s.source = { :git => "https://github.com/BalestraPatrick/ParticlesLoadingView.git", :tag => s.version.to_s } 10 | s.social_media_url = 'https://twitter.com/BalestraPatrick' 11 | s.platform = :ios, '9.0' 12 | s.requires_arc = true 13 | 14 | s.source_files = 'Pod/Classes/**/*' 15 | s.resource_bundles = { 16 | 'ParticlesLoadingView' => ['Pod/Assets/*.png', 'Pod/Assets/*.sks'] 17 | } 18 | 19 | s.frameworks = 'SpriteKit' 20 | end 21 | -------------------------------------------------------------------------------- /Pod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/.gitkeep -------------------------------------------------------------------------------- /Pod/Assets/Bokeh.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/Bokeh.sks -------------------------------------------------------------------------------- /Pod/Assets/Fire.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/Fire.sks -------------------------------------------------------------------------------- /Pod/Assets/Laser.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/Laser.sks -------------------------------------------------------------------------------- /Pod/Assets/Spark.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/Spark.sks -------------------------------------------------------------------------------- /Pod/Assets/spark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Assets/spark.png -------------------------------------------------------------------------------- /Pod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Pod/Classes/.gitkeep -------------------------------------------------------------------------------- /Pod/Classes/EmitterCreator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EmitterCreator.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 5/16/16. 6 | // 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | public class EmitterCreator { 13 | 14 | public enum EmitterError: Error { 15 | case emitterNodeUnavailable 16 | } 17 | 18 | /// Creates a SKEmitterNode from one of the predefined particle emitter files. 19 | /// 20 | /// - throws: An error if the file could not be found. 21 | /// 22 | /// - returns: The emitter node object. 23 | func createEmitterNode(with effect: ParticleEffect) throws -> SKEmitterNode { 24 | let bundle = Bundle(for: type(of: self)) 25 | let bundleName = bundle.infoDictionary!["CFBundleName"] as! String 26 | let path = Bundle(for: type(of: self)).path(forResource: effect.rawValue, ofType: "sks", inDirectory: "\(bundleName).bundle") 27 | if let path = path, let emitter = NSKeyedUnarchiver.unarchiveObject(withFile: path) as? SKEmitterNode, let texture = UIImage(named: "\(bundleName).bundle/spark", in: bundle, compatibleWith: nil) { 28 | emitter.particleTexture = SKTexture(image: texture) 29 | return emitter 30 | } else { 31 | throw EmitterError.emitterNodeUnavailable 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /Pod/Classes/ParticleEffect.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ParticleEffect.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 5/18/16. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | public enum ParticleEffect: String { 12 | case laser = "Laser" 13 | case spark = "Spark" 14 | case bokeh = "Bokeh" 15 | case fire = "Fire" 16 | } 17 | -------------------------------------------------------------------------------- /Pod/Classes/ParticlesLoadingView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ParticlesLoadingView.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 1/30/16. 6 | // 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | public class ParticlesLoadingView: UIView { 13 | 14 | /// Duration in seconds of the animation to complete a tour on the border of the view. 15 | public var duration = 2.0 16 | 17 | /// The size of each particle image. This value is used to calculate the inner padding of the view path so that the emitted particles are visible. 18 | public var particlesSize: CGFloat = 5.0 19 | 20 | /// The emitter of particles that is animated along the border of the view. 21 | public var emitterNode: SKEmitterNode? = nil { 22 | didSet { 23 | if let emitter = emitterNode { 24 | scene.setEmitterNode(emitter) 25 | } 26 | } 27 | } 28 | 29 | /// Default value is false so the animation is counter-clockwise. Set this property to true to make the animation go clockwise. 30 | public var clockwiseRotation: Bool = false 31 | 32 | /// SKScene subclass that is responsible for the emission of particles. 33 | private var scene: ParticlesScene! 34 | 35 | /// Emitter creator used to create one of the default particle effects. 36 | private let emitterCreator = EmitterCreator() 37 | 38 | /// The particle effect used to emit particles. 39 | public var particleEffect = ParticleEffect.laser { 40 | didSet { 41 | if let _ = scene { 42 | do { 43 | let emitter = try emitterCreator.createEmitterNode(with: particleEffect) 44 | scene.setEmitterNode(emitter) 45 | } catch { 46 | fatalError("Could not find the particles file") 47 | } 48 | } else { 49 | setUp() 50 | } 51 | } 52 | } 53 | 54 | /// The underlying SpriteKit view that renders the particles. 55 | private var spriteKitView = SKView() 56 | 57 | // MARK: - Initialization 58 | 59 | override public init(frame: CGRect) { 60 | super.init(frame: frame) 61 | spriteKitView = SKView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height)) 62 | spriteKitView.backgroundColor = UIColor.clear 63 | setUp() 64 | } 65 | 66 | required public init?(coder aDecoder: NSCoder) { 67 | super.init(coder: aDecoder) 68 | spriteKitView = SKView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height)) 69 | spriteKitView.backgroundColor = UIColor.clear 70 | setUp() 71 | } 72 | 73 | func setUp() { 74 | do { 75 | let emitter = try emitterCreator.createEmitterNode(with: particleEffect) 76 | scene = ParticlesScene(size: frame.size, emitterNode: emitter) 77 | spriteKitView.presentScene(scene) 78 | addSubview(spriteKitView) 79 | } catch _ { 80 | fatalError("Could not find the particles file") 81 | } 82 | } 83 | 84 | /// Start the particles emission and the animation around the border of the view. 85 | @objc public override func startAnimating() { 86 | scene.startAnimating() 87 | } 88 | 89 | /// Stop the particles emission. 90 | @objc public override func stopAnimating() { 91 | scene.stopAnimating() 92 | } 93 | 94 | /// Returns true if the view is emmitting particles, otherwise false. 95 | @objc public override func isEmitting() -> Bool { 96 | return scene.isEmitting() 97 | } 98 | 99 | // UIView automatically invoke this function when a view adds me as a subview. It is used to get the border path of the view. 100 | public override func willMove(toSuperview newSuperview: UIView?) { 101 | scene.setAnimationPath() 102 | } 103 | 104 | } 105 | -------------------------------------------------------------------------------- /Pod/Classes/ParticlesScene.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ParticlesScene.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 1/30/16. 6 | // 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | public class ParticlesScene: SKScene { 13 | 14 | /// Main emitter node: modify its properties as you wish. 15 | private var emitterNode: SKEmitterNode = SKEmitterNode() { 16 | didSet { 17 | emitterNode.position = CGPoint.zero 18 | } 19 | } 20 | 21 | /// Loop action to move the emitter node around the view's border path 22 | private var loopAction: SKAction! 23 | 24 | // MARK: - Initialization 25 | 26 | public init(size: CGSize, emitterNode: SKEmitterNode) { 27 | self.emitterNode = emitterNode 28 | self.emitterNode.position = CGPoint(x: 10, y: 0) 29 | super.init(size: size) 30 | backgroundColor = UIColor.clear 31 | } 32 | 33 | required public init?(coder aDecoder: NSCoder) { 34 | fatalError("init(coder:) has not been implemented") 35 | } 36 | /// Set a new emitter node as the source of the particles. 37 | /// 38 | /// - parameter emitter: The object that will emit the particles. 39 | public func setEmitterNode(_ emitter: SKEmitterNode) { 40 | self.emitterNode = emitter 41 | } 42 | 43 | /// Start animating the emitter node with the default values. 44 | func startAnimating() { 45 | emitterNode.particleBirthRate = 5000.0 46 | emitterNode.targetNode = scene 47 | emitterNode.run(loopAction, withKey: "loop") 48 | if emitterNode.parent == nil { 49 | addChild(emitterNode) 50 | } 51 | } 52 | 53 | /// Stop animating the emitter node. 54 | func stopAnimating() { 55 | emitterNode.particleBirthRate = 0 56 | } 57 | 58 | /// Returns true if the animation is ongoing, otherwise false. 59 | func isEmitting() -> Bool { 60 | return emitterNode.particleBirthRate != 0 61 | } 62 | 63 | /// Figure out the border path of the view and set it as the path of the animation. 64 | func setAnimationPath() { 65 | var radii = CGSize.zero 66 | if let radius = view?.superview?.layer.cornerRadius { 67 | radii = CGSize(width: radius, height: radius) 68 | } 69 | let duration = (view?.superview as? ParticlesLoadingView)?.duration ?? 1.5 70 | let particlesSize = (view?.superview as? ParticlesLoadingView)?.particlesSize ?? 5.0 71 | if let scene = scene { 72 | let border = UIBezierPath(roundedRect: scene.frame, byRoundingCorners: .allCorners, cornerRadii: radii) 73 | let horizontalInsetScaleFactor: CGFloat = 1 - (particlesSize / scene.frame.size.width) 74 | let verticalInsetScaleFactor: CGFloat = 1 - (particlesSize / scene.frame.size.height) 75 | let horizontalTranslationFactor = 2 / (1 - horizontalInsetScaleFactor) 76 | let verticalTranslationFactor = 2 / (1 - verticalInsetScaleFactor) 77 | border.apply(CGAffineTransform(scaleX: horizontalInsetScaleFactor, y: verticalInsetScaleFactor)) 78 | border.apply(CGAffineTransform(translationX: scene.frame.size.width / horizontalTranslationFactor, y: scene.frame.size.height / verticalTranslationFactor)) 79 | var followLine = SKAction.follow(border.cgPath, asOffset: false, orientToPath: true, duration: duration) 80 | if let superview = view?.superview as? ParticlesLoadingView { 81 | if superview.clockwiseRotation { 82 | followLine = followLine.reversed() 83 | } 84 | } 85 | loopAction = SKAction.repeatForever(followLine) 86 | } 87 | } 88 | } 89 | 90 | 91 | -------------------------------------------------------------------------------- /Pod/Classes/UIView+ParticlesAnimation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+ParticlesAnimation.swift 3 | // ParticlesLoadingView 4 | // 5 | // Created by Patrick Balestra on 2/8/16. 6 | // 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | 12 | public extension UIView { 13 | 14 | /// Add a particles animation with a SKEmitterNode. 15 | /// 16 | /// - parameter emitter: Emitter node object. 17 | public func addParticlesAnimation(with emitter: SKEmitterNode? = nil, effect: ParticleEffect? = nil) { 18 | var spriteKitView = SKView() 19 | spriteKitView = SKView(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height)) 20 | spriteKitView.backgroundColor = UIColor.clear 21 | 22 | var scene: ParticlesScene 23 | if let emitter = emitter { 24 | scene = ParticlesScene(size: frame.size, emitterNode: emitter) 25 | } else if let effect = effect { 26 | do { 27 | let emitter = try EmitterCreator().createEmitterNode(with: effect) 28 | scene = ParticlesScene(size: frame.size, emitterNode: emitter) 29 | } catch { 30 | fatalError("The default ParticleEffect could not be loaded.") 31 | } 32 | } else { 33 | fatalError("Please provide at least a SKEmitterNode or a select a default ParticleEffect.") 34 | } 35 | 36 | if let backgroundColor = backgroundColor { 37 | scene.backgroundColor = backgroundColor 38 | } 39 | spriteKitView.presentScene(scene) 40 | addSubview(spriteKitView) 41 | scene.setAnimationPath() 42 | } 43 | 44 | /// Start animating the emitter node. 45 | @objc public func startAnimating() { 46 | for case let spriteKitView as SKView in subviews { 47 | if let scene = spriteKitView.scene, let particlesScene = scene as? ParticlesScene { 48 | particlesScene.startAnimating() 49 | } 50 | } 51 | } 52 | 53 | /// Stop animating the emitter node. 54 | @objc public func stopAnimating() { 55 | for case let spriteKitView as SKView in subviews { 56 | if let scene = spriteKitView.scene, let particlesScene = scene as? ParticlesScene { 57 | particlesScene.stopAnimating() 58 | } 59 | } 60 | } 61 | 62 | /// Returns true if the animation is ongoing, otherwise false. 63 | @objc public func isEmitting() -> Bool { 64 | for case let spriteKitView as SKView in subviews { 65 | if let scene = spriteKitView.scene, let particlesScene = scene as? ParticlesScene { 66 | return particlesScene.isEmitting() 67 | } 68 | } 69 | return false 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ParticlesLoadingView 2 | 3 | [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) 4 | [![Version](https://img.shields.io/cocoapods/v/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView) 5 | [![License](https://img.shields.io/cocoapods/l/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView) 6 | [![Platform](https://img.shields.io/cocoapods/p/ParticlesLoadingView.svg?style=flat)](http://cocoapods.org/pods/ParticlesLoadingView) 7 | 8 |

9 | 10 | ## Description 11 | With `ParticlesLoadingView` you can create your own amazing `SpriteKit` particles animations with the Xcode's built-in [Particle Emitter Editor](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/xcode_guide-particle_emitter/Introduction/Introduction.html) that looks like the following picture. 12 | Go ahead and create your own particles animation by doing File ➡️ New File ➡️ iOS Resource ➡️ SpriteKit Particle File. 13 | 14 | ![](Resources/ParticlesEmitterEditor.png) 15 | 16 | 17 | ## Usage 18 | To see it in action, run the example project, clone the repo, and run `pod install` from the `Example` directory first. The example project shows how to set up `ParticlesLoadingView` in a few different ways. 19 | 20 | The easiest way to add a particles animation around the border of any `UIView` subclass is to use the extension method as follows: 21 | 22 | ```swift 23 | 24 | let view = ... // Your UIView subclass here 25 | view.addParticlesAnimation(effect: ParticleEffect.Fire) // Use a built-in effect 26 | view.addParticlesAnimation(emitter: emitter) // Use your own SKEmitterNode 27 | ``` 28 | 29 | You can also use the already provided `ParticlesLoadingView` class to create an animation. Instantiate it by code or in Storyboard and select a built-in `ParticleEffect` or set the `scene.emitterNode` to your custom `SKEmitterNode` object. 30 | 31 | ```swift 32 | var loadingView: ParticlesLoadingView = { 33 | let view = ParticlesLoadingView(frame: 0, y: 0, width: 75, height: 75)) 34 | view.particleEffect = .Spark 35 | view.duration = 1.5 36 | view.layer.cornerRadius = 15.0 37 | return view 38 | }() 39 | 40 | // OR provide your own SKEmitterNode 41 | 42 | let emitter = NSKeyedUnarchiver.unarchiveObjectWithFile(NSBundle.mainBundle().pathForResource("Spark", ofType: "sks")!) as? SKEmitterNode 43 | if let emitter = emitter { 44 | loadingView.scene.emitterNode = emitter 45 | loadingView.startAnimating() 46 | } 47 | ``` 48 | 49 | ## Customizations 50 | 51 | ```swift 52 | /// Duration in seconds of the animation to complete a tour on the border of the view. 53 | public var duration = 2.0 54 | 55 | /// The size of each particle image. This value is used to calculate the inner padding of the view path so that the emitted particles are visible. 56 | public var particlesSize: CGFloat = 5.0 57 | 58 | /// The emitter of particles that is animated along the border of the view. 59 | public var emitterNode: SKEmitterNode? = nil 60 | ``` 61 | You can provide your own particle emitter node by designing an animation with the particle emitter editor and creating a `SKEmitterNode`. 62 | If you want to customize it further than that, the project is documented so go ahead and [🍴](https://github.com/BalestraPatrick/ParticlesLoadingView#fork-destination-box) it. 63 | 64 | If you think a feature should be included in this project, submit a PR or open a new issue. 65 | 66 | ## Installation 67 | 68 | `ParticlesLoadingView` is available through [CocoaPods](http://cocoapods.org). To install 69 | it, simply add the following line to your `Podfile`: 70 | 71 | ```ruby 72 | pod "ParticlesLoadingView" 73 | ``` 74 | 75 | You can also use [Carthage](https://github.com/Carthage/Carthage) if you prefer. Add this line to your `Cartfile`. 76 | 77 | ```ruby 78 | github "BalestraPatrick/ParticlesLoadingView" 79 | ``` 80 | ## Requirements 81 | iOS 9.0 and Swift 3 are required. 82 | 83 | If you are using Swift 4, please use the [swift4 branch](https://github.com/BalestraPatrick/ParticlesLoadingView/tree/swift4). 84 | 85 | If you are using Swift 2.3, please use the [swift2.3 branch](https://github.com/BalestraPatrick/ParticlesLoadingView/tree/swift2.3). 86 | 87 | ## Author 88 | 89 | I'm [Patrick Balestra](http://www.patrickbalestra.com). 90 | Email: [me@patrickbalestra.com](mailto:me@patrickbalestra.com) 91 | Twitter: [@BalestraPatrick](http://twitter.com/BalestraPatrick). 92 | 93 | ## License 94 | 95 | `ParticlesLoadingView` is available under the MIT license. See the [LICENSE](LICENSE) file for more info. 96 | -------------------------------------------------------------------------------- /Resources/ParticlesEmitterEditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BalestraPatrick/ParticlesLoadingView/28aab2ec0c6c753d5c9252bd3d177caa84730ce7/Resources/ParticlesEmitterEditor.png -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------