Skip to content

Commit

Permalink
Fix bundle directory
Browse files Browse the repository at this point in the history
  • Loading branch information
BalestraPatrick committed May 29, 2016
1 parent b485156 commit 335ee3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ParticlesLoadingView.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "ParticlesLoadingView"
s.version = "0.2"
s.version = "0.3"
s.summary = "A loading animation made of particles."
s.description = "A customizable SpriteKit particles animation on the border of a view."
s.homepage = "https://github.com/BalestraPatrick/ParticlesLoadingView"
Expand Down
2 changes: 1 addition & 1 deletion Pod/Classes/EmitterCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class EmitterCreator {
let bundle = NSBundle(forClass: self.dynamicType)
let bundleName = bundle.infoDictionary!["CFBundleName"] as! String
let path = NSBundle(forClass: self.dynamicType).pathForResource(effect.rawValue, ofType: "sks", inDirectory: "\(bundleName).bundle")
if let path = path, let emitter = NSKeyedUnarchiver.unarchiveObjectWithFile(path) as? SKEmitterNode, let texture = UIImage(named: "spark", inBundle: bundle, compatibleWithTraitCollection: nil) {
if let path = path, let emitter = NSKeyedUnarchiver.unarchiveObjectWithFile(path) as? SKEmitterNode, let texture = UIImage(named: "\(bundleName).bundle/spark", inBundle: bundle, compatibleWithTraitCollection: nil) {
emitter.particleTexture = SKTexture(image: texture)
return emitter
} else {
Expand Down

0 comments on commit 335ee3f

Please sign in to comment.