├── .gitignore ├── .swift-version ├── .travis.yml ├── CHANGELOG.md ├── ConfettiView.podspec ├── ConfettiView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── ConfettiLayer.swift │ ├── ConfettiView.swift │ └── ShapeView.swift ├── Example ├── ConfettiExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── ConfettiExample.xcworkspace │ └── contents.xcworkspacedata ├── ConfettiExample │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── ConfettiExampleTests │ ├── ConfettiExampleTests.swift │ └── Info.plist ├── ConfettiExampleUITests │ ├── ConfettiExampleUITests.swift │ └── Info.plist └── Podfile ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | Pods/ 34 | Podfile.lock 35 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode8 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/ConfettiView.xcworkspace -scheme ConfettiView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documentd in this file. 3 | 4 | ## [0.1.7] - 2016-11-14 5 | ### Added 6 | - Small bug fix 7 | 8 | ## [0.1.6] - 2016-10-10 9 | ### Added 10 | - Stop and Start animation methods 11 | - Added var which indicates weather the view is animated 12 | - Example project shows support for start and stop 13 | 14 | ### Fixed 15 | - Fixed a minor bug when running on a simulator 16 | - Fixed an issue with the class protection 17 | 18 | ## [0.1.5] - 2016-10-10 19 | ### Added 20 | - Added documentation to ShapeView.swift 21 | - Minor changes to the project file -------------------------------------------------------------------------------- /ConfettiView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ConfettiView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'ConfettiView' 11 | s.version = '0.1.7' 12 | s.summary = 'Add a magnificent Confetti to any view in your app' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = 'This pod allows you to add Confetti to any view youd like in a very clean and easy way. It was inspired by HouseParty app' 21 | 22 | s.homepage = 'https://github.com/orron/ConfettiView' 23 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 24 | s.license = { :type => 'MIT', :file => 'LICENSE' } 25 | s.author = { 'Or Ron' => 'or.ron10@gmail.com' } 26 | s.source = { :git => 'https://github.com/orron/ConfettiView.git', :tag => s.version.to_s } 27 | s.social_media_url = 'https://twitter.com/or_ron' 28 | 29 | s.ios.deployment_target = '8.1' 30 | 31 | s.source_files = 'ConfettiView/Classes/**/*' 32 | 33 | # s.resource_bundles = { 34 | # 'ConfettiView' => ['ConfettiView/Assets/*.png'] 35 | # } 36 | 37 | # s.public_header_files = 'Pod/Classes/**/*.h' 38 | # s.frameworks = 'UIKit', 'MapKit' 39 | # s.dependency 'AFNetworking', '~> 2.3' 40 | end 41 | -------------------------------------------------------------------------------- /ConfettiView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OrRon/ConfettiView/17b10f0a23e136dfade391927173652de0a82f0c/ConfettiView/Assets/.gitkeep -------------------------------------------------------------------------------- /ConfettiView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OrRon/ConfettiView/17b10f0a23e136dfade391927173652de0a82f0c/ConfettiView/Classes/.gitkeep -------------------------------------------------------------------------------- /ConfettiView/Classes/ConfettiLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfettiLayer.swift 3 | // Confetti 4 | // 5 | // Created by Or on 04/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | import CoreMotion 12 | 13 | 14 | ///Manages ShapeViews on a certain designated UIView 15 | class ConfettiLayer { 16 | 17 | let view:UIView 18 | var timer:Timer? = nil 19 | 20 | var motionManager = CMMotionManager() 21 | 22 | //UIDynamic animator and different Behaviors 23 | var animator:UIDynamicAnimator 24 | var itemBehavior = UIDynamicItemBehavior() 25 | var collisions = UICollisionBehavior() 26 | 27 | 28 | // TODO: create a struct to represent the layer state 29 | // Initial layer state 30 | var baseVelocity = CGPoint(x:0,y:200.0) 31 | var calculatedVelocity:CGPoint 32 | var totalTilt = 1.0 33 | 34 | ///The depth that will be simulated by this layer 35 | var depth:Double 36 | 37 | 38 | /** 39 | Initializes a new confetti layer on a designated view. 40 | - Parameters: 41 | - view: The target view where the confetti will be added 42 | - depth: Simulates depth feeling using size and speed. Default = 1.0 43 | */ 44 | init(view aView:UIView, depth aDepth:Double = 1.0) { 45 | view = aView 46 | animator = UIDynamicAnimator(referenceView: view) 47 | calculatedVelocity = baseVelocity 48 | depth = aDepth 49 | baseVelocity = CGPoint(x: baseVelocity.x / CGFloat(depth), y: baseVelocity.y / CGFloat(depth)) 50 | 51 | if motionManager.isAccelerometerAvailable { 52 | motionManager.startAccelerometerUpdates() 53 | } 54 | 55 | setupBehaviors() 56 | setupTimerLoop() 57 | } 58 | 59 | 60 | ///Setting up the UIDynamic behaviors 61 | func setupBehaviors() { 62 | 63 | collisions.collisionMode = .boundaries 64 | resetBounderies() 65 | 66 | itemBehavior.allowsRotation = true 67 | itemBehavior.friction = 0.0 68 | itemBehavior.resistance = 0 69 | itemBehavior.elasticity = 0 70 | 71 | 72 | animator.addBehavior(itemBehavior) 73 | animator.addBehavior(collisions) 74 | } 75 | 76 | func resetBounderies() { 77 | collisions.removeAllBoundaries() 78 | collisions.addBoundary(withIdentifier: "left" as NSCopying, from: CGPoint(x:0,y:0), to: CGPoint(x:0,y:self.view.bounds.size.height)) 79 | collisions.addBoundary(withIdentifier: "right" as NSCopying, from: CGPoint(x:self.view.bounds.size.width,y:0), to: CGPoint(x:self.view.bounds.size.width,y:self.view.bounds.size.height)) 80 | 81 | } 82 | 83 | func setupTimerLoop() { 84 | 85 | timer = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.onTimeTic), userInfo: nil, repeats: true) 86 | 87 | } 88 | func invalidateTimer() { 89 | timer?.invalidate() 90 | } 91 | 92 | @objc func onTimeTic() { 93 | self.randomlyAddParticle() 94 | 95 | self.updateCurrentState(self.motionManager.accelerometerData) 96 | 97 | } 98 | 99 | func updateCurrentState(_ accelerometerData:CMAccelerometerData?) { 100 | //Calculating the new velocity of the items according to the tilt of the device 101 | if let accelerometerData = accelerometerData { 102 | self.totalTilt = -accelerometerData.acceleration.y 103 | self.calculatedVelocity = CGPoint(x: self.baseVelocity.x + CGFloat(accelerometerData.acceleration.x * 200 / self.depth), y: CGFloat(-accelerometerData.acceleration.y*300 / self.depth)) 104 | } 105 | self.itemBehavior.items.forEach{ item in 106 | 107 | //Changing the item's speed 108 | let vel = self.itemBehavior.linearVelocity(for: item) 109 | let delta = CGPoint(x:self.calculatedVelocity.x - vel.x,y:self.calculatedVelocity.y - vel.y) 110 | self.itemBehavior.addLinearVelocity(delta, for: item) 111 | 112 | //Checking if if the item needs to be released 113 | if let view = item as? UIView { 114 | if view.frame.origin.y > self.view.frame.size.height { 115 | self.collisions.removeItem(item) 116 | self.itemBehavior.removeItem(item) 117 | view.removeFromSuperview() 118 | } 119 | 120 | } 121 | } 122 | } 123 | 124 | func randomlyAddParticle() { 125 | //Add particle in dependency to the tilt of the device to more tilted it is less chance to add another partical 126 | let chance = Double(arc4random_uniform(UInt32(100))) 127 | if chance < self.totalTilt * 80 { 128 | let randX = Int(arc4random_uniform(UInt32(view.frame.width))) 129 | self.addParticle(at: CGPoint(x: randX, y: -50)) 130 | } 131 | } 132 | 133 | func addParticle(at point:CGPoint) { 134 | let shapeView = ShapeView(center: point,depth:self.depth) 135 | 136 | self.view.addSubview(shapeView) 137 | let precentage = Double(arc4random_uniform(UInt32(101)))/100.0 138 | shapeView.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi*precentage)) 139 | 140 | collisions.addItem(shapeView) 141 | itemBehavior.addItem(shapeView) 142 | itemBehavior.addLinearVelocity(calculatedVelocity, for: shapeView) 143 | let spin = Int(arc4random_uniform(UInt32(100))) 144 | 145 | if spin > 80 { 146 | itemBehavior.addAngularVelocity(CGFloat(Double.pi), for: shapeView) 147 | } 148 | 149 | } 150 | 151 | 152 | } 153 | -------------------------------------------------------------------------------- /ConfettiView/Classes/ConfettiView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfettiView.swift 3 | // Confetti 4 | // 5 | // Created by Or on 04/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class ConfettiView: UIView { 12 | 13 | open var isAnimating = true 14 | 15 | // MARK: Declarations 16 | var confettiLayers = [ConfettiLayer]() 17 | 18 | override open var bounds: CGRect { 19 | didSet { 20 | confettiLayers.forEach { layer in layer.resetBounderies() } 21 | } 22 | } 23 | 24 | // MARK: Initializers 25 | 26 | override init(frame: CGRect) { 27 | super.init(frame: frame) 28 | addConfetti() 29 | 30 | } 31 | 32 | required public init?(coder aDecoder: NSCoder) { 33 | super.init(coder: aDecoder) 34 | addConfetti() 35 | } 36 | 37 | 38 | // MARK: Confetti Methods 39 | private func addConfetti() { 40 | self.confettiLayers.append(ConfettiLayer(view: self)) 41 | self.confettiLayers.append(ConfettiLayer(view: self, depth: 1.5)) 42 | self.confettiLayers.append(ConfettiLayer(view: self, depth: 2)) 43 | } 44 | 45 | 46 | // MARK: Touches 47 | override open func touchesBegan(_ touches: Set, with event: UIEvent?) { 48 | } 49 | override open func touchesMoved(_ touches: Set, with event: UIEvent?) { 50 | } 51 | override open func touchesEnded(_ touches: Set, with event: UIEvent?) { 52 | 53 | } 54 | 55 | // MARK: Controls 56 | 57 | /// Stops the animation of all layers 58 | open func stopAnimating() { 59 | isAnimating = false 60 | confettiLayers.forEach { layer in layer.invalidateTimer() } 61 | } 62 | 63 | open func startAnimating() { 64 | guard isAnimating == false else { return } 65 | isAnimating = true 66 | confettiLayers.forEach { layer in layer.setupTimerLoop() } 67 | } 68 | 69 | 70 | } 71 | -------------------------------------------------------------------------------- /ConfettiView/Classes/ShapeView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ShapeView.swift 3 | // Confetti 4 | // 5 | // Created by Or on 30/09/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreGraphics 11 | 12 | // MARK: ShapeType 13 | 14 | 15 | /// Enum to describes the possible shaps 16 | enum ShapeType { 17 | 18 | ///Defines the possible colors of the confetti 19 | var possibleColors:[UIColor] { 20 | get { 21 | return [#colorLiteral(red: 0, green: 0.4443781972, blue: 0.8679092526, alpha: 1),#colorLiteral(red: 0.5667363405, green: 0.8658216596, blue: 0.4901404977, alpha: 1),#colorLiteral(red: 1, green: 0.9203848839, blue: 0.331726253, alpha: 1),#colorLiteral(red: 0.9978461862, green: 0.3002898395, blue: 0.2846045196, alpha: 1),#colorLiteral(red: 0.7954284549, green: 0.3837707639, blue: 0.7679683566, alpha: 1)] 22 | } 23 | } 24 | 25 | case circle 26 | case triangle 27 | case square 28 | case squigle 29 | 30 | 31 | /** 32 | Depends on the enum returns draw clousre 33 | - Returns: A draw clousure that is adaptable to size and color 34 | - Attention: The returned clousre is intented to be called inside of draw rect 35 | */ 36 | 37 | func getDrawfunction() -> ((CGRect,UIColor)->()) { 38 | switch self { 39 | case .circle: 40 | return { rect,color in 41 | let path = UIBezierPath(ovalIn: rect) 42 | color.setFill() 43 | path.fill() 44 | } 45 | case .square: 46 | return { rect,color in 47 | let path = UIBezierPath(rect: rect) 48 | color.setFill() 49 | path.fill() 50 | } 51 | case .triangle: 52 | return { rect,color in 53 | let path = UIBezierPath() 54 | path.move(to: CGPoint(x:0, y: rect.size.width)) 55 | path.addLine(to: CGPoint(x: rect.size.width, y: rect.size.height)) 56 | path.addLine(to: CGPoint(x: rect.size.width/2, y: 0)) 57 | path.addLine(to: CGPoint(x:0, y: rect.size.width)) 58 | color.setFill() 59 | path.fill() 60 | } 61 | case .squigle: 62 | return { rect,color in 63 | let path = UIBezierPath() 64 | path.move(to: CGPoint(x:5, y: 5)) 65 | path.addCurve(to: CGPoint(x:rect.size.width-5,y:rect.size.width-5), 66 | controlPoint1: CGPoint(x:0,y:rect.size.width), 67 | controlPoint2: CGPoint(x:rect.size.width,y:0)) 68 | path.lineWidth = 2.0 69 | color.setStroke() 70 | path.stroke() 71 | } 72 | } 73 | } 74 | 75 | /// Returns a random color 76 | func getRandomColor() -> UIColor { 77 | return possibleColors.randomElement()! 78 | } 79 | 80 | /// Returns a randum ShapeType 81 | static func random()-> ShapeType { 82 | return [ShapeType.circle,ShapeType.square,.triangle,.squigle].randomElement()! 83 | } 84 | } 85 | 86 | // MARK: ShapeView 87 | 88 | /// UIView subclass which is initialized with a random Shape and color 89 | class ShapeView: UIView { 90 | 91 | 92 | /// The shape that will be draw in the view. *This cannot change* 93 | let shapeType:ShapeType 94 | /// The color of the shape that will be drawen in the view. *This cannot change* 95 | let shapeColor:UIColor 96 | 97 | // MARK: life cycle 98 | 99 | override func draw(_ rect: CGRect) { 100 | let drawFunction = shapeType.getDrawfunction() 101 | drawFunction(rect,shapeColor) 102 | } 103 | 104 | override init(frame: CGRect) { 105 | shapeType = ShapeType.random() 106 | shapeColor = shapeType.getRandomColor() 107 | 108 | super.init(frame: frame) 109 | 110 | self.backgroundColor = UIColor.clear 111 | 112 | } 113 | required init?(coder aDecoder: NSCoder) { 114 | fatalError("init(coder:) has not been implemented") 115 | } 116 | 117 | /** 118 | Initialize a new shape view with random shape and color 119 | 120 | - Parameters: 121 | - center: The center position of the initiaized view 122 | - depth: The wanted depth, this causes the shape to move faster and apear smaller to create the illusion of depth *Default Value is 1* 123 | */ 124 | convenience init(center point:CGPoint, depth:Double = 1) { 125 | self.init(frame:CGRect(x: 0, y: 0, width: 20/depth, height: 20/depth)) 126 | self.center = point 127 | } 128 | 129 | 130 | 131 | 132 | } 133 | 134 | extension Collection where Index == Int { 135 | /// Returns random elemnt from an array 136 | func randomElement() -> Iterator.Element? { 137 | return isEmpty ? nil : self[Int(arc4random_uniform(UInt32(endIndex)))] 138 | } 139 | 140 | } 141 | -------------------------------------------------------------------------------- /Example/ConfettiExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2CF80EFB1DA456B20044B27F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF80EFA1DA456B20044B27F /* AppDelegate.swift */; }; 11 | 2CF80EFD1DA456B20044B27F /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF80EFC1DA456B20044B27F /* ViewController.swift */; }; 12 | 2CF80F001DA456B20044B27F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2CF80EFE1DA456B20044B27F /* Main.storyboard */; }; 13 | 2CF80F021DA456B20044B27F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2CF80F011DA456B20044B27F /* Assets.xcassets */; }; 14 | 2CF80F051DA456B20044B27F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 2CF80F031DA456B20044B27F /* LaunchScreen.storyboard */; }; 15 | 2CF80F101DA456B20044B27F /* ConfettiExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF80F0F1DA456B20044B27F /* ConfettiExampleTests.swift */; }; 16 | 2CF80F1B1DA456B20044B27F /* ConfettiExampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2CF80F1A1DA456B20044B27F /* ConfettiExampleUITests.swift */; }; 17 | 46414A73BB3F86E486F1FF02 /* Pods_ConfettiExampleUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 24685DE0F40C5FBD1ECB6549 /* Pods_ConfettiExampleUITests.framework */; }; 18 | D562F7A8896E8D8AF69C8E38 /* Pods_ConfettiExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D11F335D16D31769D9A8B6C /* Pods_ConfettiExample.framework */; }; 19 | D98BF9A28B2856F8887D1821 /* Pods_ConfettiExampleTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 31DF7C2E4FBD82F44DC86761 /* Pods_ConfettiExampleTests.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 2CF80F0C1DA456B20044B27F /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 2CF80EEF1DA456B20044B27F /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 2CF80EF61DA456B20044B27F; 28 | remoteInfo = ConfettiExample; 29 | }; 30 | 2CF80F171DA456B20044B27F /* PBXContainerItemProxy */ = { 31 | isa = PBXContainerItemProxy; 32 | containerPortal = 2CF80EEF1DA456B20044B27F /* Project object */; 33 | proxyType = 1; 34 | remoteGlobalIDString = 2CF80EF61DA456B20044B27F; 35 | remoteInfo = ConfettiExample; 36 | }; 37 | /* End PBXContainerItemProxy section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 06650EB2A287DEA1825C46F2 /* Pods-ConfettiExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExampleTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExampleTests/Pods-ConfettiExampleTests.release.xcconfig"; sourceTree = ""; }; 41 | 24685DE0F40C5FBD1ECB6549 /* Pods_ConfettiExampleUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ConfettiExampleUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 2CF80EF71DA456B20044B27F /* ConfettiExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ConfettiExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 2CF80EFA1DA456B20044B27F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 2CF80EFC1DA456B20044B27F /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 45 | 2CF80EFF1DA456B20044B27F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 2CF80F011DA456B20044B27F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 2CF80F041DA456B20044B27F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 2CF80F061DA456B20044B27F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 2CF80F0B1DA456B20044B27F /* ConfettiExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ConfettiExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 2CF80F0F1DA456B20044B27F /* ConfettiExampleTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfettiExampleTests.swift; sourceTree = ""; }; 51 | 2CF80F111DA456B20044B27F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | 2CF80F161DA456B20044B27F /* ConfettiExampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ConfettiExampleUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 2CF80F1A1DA456B20044B27F /* ConfettiExampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfettiExampleUITests.swift; sourceTree = ""; }; 54 | 2CF80F1C1DA456B20044B27F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 31DF7C2E4FBD82F44DC86761 /* Pods_ConfettiExampleTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ConfettiExampleTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 841E53AEFFE09D4230FBF357 /* Pods-ConfettiExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExample/Pods-ConfettiExample.release.xcconfig"; sourceTree = ""; }; 57 | 8D11F335D16D31769D9A8B6C /* Pods_ConfettiExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ConfettiExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | 90D7F96246293771DBF2533A /* Pods-ConfettiExampleUITests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExampleUITests.release.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExampleUITests/Pods-ConfettiExampleUITests.release.xcconfig"; sourceTree = ""; }; 59 | 94BA40256B8AC9C043C2F724 /* Pods-ConfettiExampleUITests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExampleUITests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExampleUITests/Pods-ConfettiExampleUITests.debug.xcconfig"; sourceTree = ""; }; 60 | A69218C890CAA5B939AA5DC1 /* Pods-ConfettiExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExample/Pods-ConfettiExample.debug.xcconfig"; sourceTree = ""; }; 61 | B0F4DD74AF24B6ECECE135B1 /* Pods-ConfettiExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ConfettiExampleTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-ConfettiExampleTests/Pods-ConfettiExampleTests.debug.xcconfig"; sourceTree = ""; }; 62 | /* End PBXFileReference section */ 63 | 64 | /* Begin PBXFrameworksBuildPhase section */ 65 | 2CF80EF41DA456B20044B27F /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | D562F7A8896E8D8AF69C8E38 /* Pods_ConfettiExample.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | 2CF80F081DA456B20044B27F /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | D98BF9A28B2856F8887D1821 /* Pods_ConfettiExampleTests.framework in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 2CF80F131DA456B20044B27F /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 46414A73BB3F86E486F1FF02 /* Pods_ConfettiExampleUITests.framework in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | /* End PBXFrameworksBuildPhase section */ 90 | 91 | /* Begin PBXGroup section */ 92 | 2CF80EEE1DA456B20044B27F = { 93 | isa = PBXGroup; 94 | children = ( 95 | 2CF80EF91DA456B20044B27F /* ConfettiExample */, 96 | 2CF80F0E1DA456B20044B27F /* ConfettiExampleTests */, 97 | 2CF80F191DA456B20044B27F /* ConfettiExampleUITests */, 98 | 2CF80EF81DA456B20044B27F /* Products */, 99 | 3694761EC0AE688D4395EDB5 /* Pods */, 100 | DAB6787D322617A7B953F135 /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 2CF80EF81DA456B20044B27F /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 2CF80EF71DA456B20044B27F /* ConfettiExample.app */, 108 | 2CF80F0B1DA456B20044B27F /* ConfettiExampleTests.xctest */, 109 | 2CF80F161DA456B20044B27F /* ConfettiExampleUITests.xctest */, 110 | ); 111 | name = Products; 112 | sourceTree = ""; 113 | }; 114 | 2CF80EF91DA456B20044B27F /* ConfettiExample */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 2CF80EFA1DA456B20044B27F /* AppDelegate.swift */, 118 | 2CF80EFC1DA456B20044B27F /* ViewController.swift */, 119 | 2CF80EFE1DA456B20044B27F /* Main.storyboard */, 120 | 2CF80F011DA456B20044B27F /* Assets.xcassets */, 121 | 2CF80F031DA456B20044B27F /* LaunchScreen.storyboard */, 122 | 2CF80F061DA456B20044B27F /* Info.plist */, 123 | ); 124 | path = ConfettiExample; 125 | sourceTree = ""; 126 | }; 127 | 2CF80F0E1DA456B20044B27F /* ConfettiExampleTests */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 2CF80F0F1DA456B20044B27F /* ConfettiExampleTests.swift */, 131 | 2CF80F111DA456B20044B27F /* Info.plist */, 132 | ); 133 | path = ConfettiExampleTests; 134 | sourceTree = ""; 135 | }; 136 | 2CF80F191DA456B20044B27F /* ConfettiExampleUITests */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 2CF80F1A1DA456B20044B27F /* ConfettiExampleUITests.swift */, 140 | 2CF80F1C1DA456B20044B27F /* Info.plist */, 141 | ); 142 | path = ConfettiExampleUITests; 143 | sourceTree = ""; 144 | }; 145 | 3694761EC0AE688D4395EDB5 /* Pods */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | A69218C890CAA5B939AA5DC1 /* Pods-ConfettiExample.debug.xcconfig */, 149 | 841E53AEFFE09D4230FBF357 /* Pods-ConfettiExample.release.xcconfig */, 150 | B0F4DD74AF24B6ECECE135B1 /* Pods-ConfettiExampleTests.debug.xcconfig */, 151 | 06650EB2A287DEA1825C46F2 /* Pods-ConfettiExampleTests.release.xcconfig */, 152 | 94BA40256B8AC9C043C2F724 /* Pods-ConfettiExampleUITests.debug.xcconfig */, 153 | 90D7F96246293771DBF2533A /* Pods-ConfettiExampleUITests.release.xcconfig */, 154 | ); 155 | name = Pods; 156 | sourceTree = ""; 157 | }; 158 | DAB6787D322617A7B953F135 /* Frameworks */ = { 159 | isa = PBXGroup; 160 | children = ( 161 | 8D11F335D16D31769D9A8B6C /* Pods_ConfettiExample.framework */, 162 | 31DF7C2E4FBD82F44DC86761 /* Pods_ConfettiExampleTests.framework */, 163 | 24685DE0F40C5FBD1ECB6549 /* Pods_ConfettiExampleUITests.framework */, 164 | ); 165 | name = Frameworks; 166 | sourceTree = ""; 167 | }; 168 | /* End PBXGroup section */ 169 | 170 | /* Begin PBXNativeTarget section */ 171 | 2CF80EF61DA456B20044B27F /* ConfettiExample */ = { 172 | isa = PBXNativeTarget; 173 | buildConfigurationList = 2CF80F1F1DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExample" */; 174 | buildPhases = ( 175 | FDFDD9EDB569DB176B6FEF98 /* [CP] Check Pods Manifest.lock */, 176 | 2CF80EF31DA456B20044B27F /* Sources */, 177 | 2CF80EF41DA456B20044B27F /* Frameworks */, 178 | 2CF80EF51DA456B20044B27F /* Resources */, 179 | 3F9B196E502AFDD2758594FE /* [CP] Embed Pods Frameworks */, 180 | 08CE6ED2981E514E23D69B7D /* [CP] Copy Pods Resources */, 181 | ); 182 | buildRules = ( 183 | ); 184 | dependencies = ( 185 | ); 186 | name = ConfettiExample; 187 | productName = ConfettiExample; 188 | productReference = 2CF80EF71DA456B20044B27F /* ConfettiExample.app */; 189 | productType = "com.apple.product-type.application"; 190 | }; 191 | 2CF80F0A1DA456B20044B27F /* ConfettiExampleTests */ = { 192 | isa = PBXNativeTarget; 193 | buildConfigurationList = 2CF80F221DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExampleTests" */; 194 | buildPhases = ( 195 | 72577FB29A4C23E91A5208E0 /* [CP] Check Pods Manifest.lock */, 196 | 2CF80F071DA456B20044B27F /* Sources */, 197 | 2CF80F081DA456B20044B27F /* Frameworks */, 198 | 2CF80F091DA456B20044B27F /* Resources */, 199 | F028D70D2AD7CBF73DEF6318 /* [CP] Embed Pods Frameworks */, 200 | 8EA70F60182752BBA68D78BD /* [CP] Copy Pods Resources */, 201 | ); 202 | buildRules = ( 203 | ); 204 | dependencies = ( 205 | 2CF80F0D1DA456B20044B27F /* PBXTargetDependency */, 206 | ); 207 | name = ConfettiExampleTests; 208 | productName = ConfettiExampleTests; 209 | productReference = 2CF80F0B1DA456B20044B27F /* ConfettiExampleTests.xctest */; 210 | productType = "com.apple.product-type.bundle.unit-test"; 211 | }; 212 | 2CF80F151DA456B20044B27F /* ConfettiExampleUITests */ = { 213 | isa = PBXNativeTarget; 214 | buildConfigurationList = 2CF80F251DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExampleUITests" */; 215 | buildPhases = ( 216 | 9BF7A1713832360297A4E4F8 /* [CP] Check Pods Manifest.lock */, 217 | 2CF80F121DA456B20044B27F /* Sources */, 218 | 2CF80F131DA456B20044B27F /* Frameworks */, 219 | 2CF80F141DA456B20044B27F /* Resources */, 220 | 0D61EA298B99D2A74CD095F7 /* [CP] Embed Pods Frameworks */, 221 | 3C77407DEF2A1966FA045468 /* [CP] Copy Pods Resources */, 222 | ); 223 | buildRules = ( 224 | ); 225 | dependencies = ( 226 | 2CF80F181DA456B20044B27F /* PBXTargetDependency */, 227 | ); 228 | name = ConfettiExampleUITests; 229 | productName = ConfettiExampleUITests; 230 | productReference = 2CF80F161DA456B20044B27F /* ConfettiExampleUITests.xctest */; 231 | productType = "com.apple.product-type.bundle.ui-testing"; 232 | }; 233 | /* End PBXNativeTarget section */ 234 | 235 | /* Begin PBXProject section */ 236 | 2CF80EEF1DA456B20044B27F /* Project object */ = { 237 | isa = PBXProject; 238 | attributes = { 239 | LastSwiftUpdateCheck = 0800; 240 | LastUpgradeCheck = 0800; 241 | ORGANIZATIONNAME = Or; 242 | TargetAttributes = { 243 | 2CF80EF61DA456B20044B27F = { 244 | CreatedOnToolsVersion = 8.0; 245 | DevelopmentTeam = KX2Q423DM4; 246 | LastSwiftMigration = 0800; 247 | ProvisioningStyle = Automatic; 248 | }; 249 | 2CF80F0A1DA456B20044B27F = { 250 | CreatedOnToolsVersion = 8.0; 251 | DevelopmentTeam = KX2Q423DM4; 252 | LastSwiftMigration = 0800; 253 | ProvisioningStyle = Automatic; 254 | TestTargetID = 2CF80EF61DA456B20044B27F; 255 | }; 256 | 2CF80F151DA456B20044B27F = { 257 | CreatedOnToolsVersion = 8.0; 258 | DevelopmentTeam = KX2Q423DM4; 259 | LastSwiftMigration = 0800; 260 | ProvisioningStyle = Automatic; 261 | TestTargetID = 2CF80EF61DA456B20044B27F; 262 | }; 263 | }; 264 | }; 265 | buildConfigurationList = 2CF80EF21DA456B20044B27F /* Build configuration list for PBXProject "ConfettiExample" */; 266 | compatibilityVersion = "Xcode 3.2"; 267 | developmentRegion = English; 268 | hasScannedForEncodings = 0; 269 | knownRegions = ( 270 | en, 271 | Base, 272 | ); 273 | mainGroup = 2CF80EEE1DA456B20044B27F; 274 | productRefGroup = 2CF80EF81DA456B20044B27F /* Products */; 275 | projectDirPath = ""; 276 | projectRoot = ""; 277 | targets = ( 278 | 2CF80EF61DA456B20044B27F /* ConfettiExample */, 279 | 2CF80F0A1DA456B20044B27F /* ConfettiExampleTests */, 280 | 2CF80F151DA456B20044B27F /* ConfettiExampleUITests */, 281 | ); 282 | }; 283 | /* End PBXProject section */ 284 | 285 | /* Begin PBXResourcesBuildPhase section */ 286 | 2CF80EF51DA456B20044B27F /* Resources */ = { 287 | isa = PBXResourcesBuildPhase; 288 | buildActionMask = 2147483647; 289 | files = ( 290 | 2CF80F051DA456B20044B27F /* LaunchScreen.storyboard in Resources */, 291 | 2CF80F021DA456B20044B27F /* Assets.xcassets in Resources */, 292 | 2CF80F001DA456B20044B27F /* Main.storyboard in Resources */, 293 | ); 294 | runOnlyForDeploymentPostprocessing = 0; 295 | }; 296 | 2CF80F091DA456B20044B27F /* Resources */ = { 297 | isa = PBXResourcesBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | 2CF80F141DA456B20044B27F /* Resources */ = { 304 | isa = PBXResourcesBuildPhase; 305 | buildActionMask = 2147483647; 306 | files = ( 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | /* End PBXResourcesBuildPhase section */ 311 | 312 | /* Begin PBXShellScriptBuildPhase section */ 313 | 08CE6ED2981E514E23D69B7D /* [CP] Copy Pods Resources */ = { 314 | isa = PBXShellScriptBuildPhase; 315 | buildActionMask = 2147483647; 316 | files = ( 317 | ); 318 | inputPaths = ( 319 | ); 320 | name = "[CP] Copy Pods Resources"; 321 | outputPaths = ( 322 | ); 323 | runOnlyForDeploymentPostprocessing = 0; 324 | shellPath = /bin/sh; 325 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExample/Pods-ConfettiExample-resources.sh\"\n"; 326 | showEnvVarsInLog = 0; 327 | }; 328 | 0D61EA298B99D2A74CD095F7 /* [CP] Embed Pods Frameworks */ = { 329 | isa = PBXShellScriptBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | inputPaths = ( 334 | ); 335 | name = "[CP] Embed Pods Frameworks"; 336 | outputPaths = ( 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | shellPath = /bin/sh; 340 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExampleUITests/Pods-ConfettiExampleUITests-frameworks.sh\"\n"; 341 | showEnvVarsInLog = 0; 342 | }; 343 | 3C77407DEF2A1966FA045468 /* [CP] Copy Pods Resources */ = { 344 | isa = PBXShellScriptBuildPhase; 345 | buildActionMask = 2147483647; 346 | files = ( 347 | ); 348 | inputPaths = ( 349 | ); 350 | name = "[CP] Copy Pods Resources"; 351 | outputPaths = ( 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | shellPath = /bin/sh; 355 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExampleUITests/Pods-ConfettiExampleUITests-resources.sh\"\n"; 356 | showEnvVarsInLog = 0; 357 | }; 358 | 3F9B196E502AFDD2758594FE /* [CP] Embed Pods Frameworks */ = { 359 | isa = PBXShellScriptBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | ); 363 | inputPaths = ( 364 | ); 365 | name = "[CP] Embed Pods Frameworks"; 366 | outputPaths = ( 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | shellPath = /bin/sh; 370 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExample/Pods-ConfettiExample-frameworks.sh\"\n"; 371 | showEnvVarsInLog = 0; 372 | }; 373 | 72577FB29A4C23E91A5208E0 /* [CP] Check Pods Manifest.lock */ = { 374 | isa = PBXShellScriptBuildPhase; 375 | buildActionMask = 2147483647; 376 | files = ( 377 | ); 378 | inputPaths = ( 379 | ); 380 | name = "[CP] Check Pods Manifest.lock"; 381 | outputPaths = ( 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | shellPath = /bin/sh; 385 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 386 | showEnvVarsInLog = 0; 387 | }; 388 | 8EA70F60182752BBA68D78BD /* [CP] Copy Pods Resources */ = { 389 | isa = PBXShellScriptBuildPhase; 390 | buildActionMask = 2147483647; 391 | files = ( 392 | ); 393 | inputPaths = ( 394 | ); 395 | name = "[CP] Copy Pods Resources"; 396 | outputPaths = ( 397 | ); 398 | runOnlyForDeploymentPostprocessing = 0; 399 | shellPath = /bin/sh; 400 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExampleTests/Pods-ConfettiExampleTests-resources.sh\"\n"; 401 | showEnvVarsInLog = 0; 402 | }; 403 | 9BF7A1713832360297A4E4F8 /* [CP] Check Pods Manifest.lock */ = { 404 | isa = PBXShellScriptBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | ); 408 | inputPaths = ( 409 | ); 410 | name = "[CP] Check Pods Manifest.lock"; 411 | outputPaths = ( 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | shellPath = /bin/sh; 415 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 416 | showEnvVarsInLog = 0; 417 | }; 418 | F028D70D2AD7CBF73DEF6318 /* [CP] Embed Pods Frameworks */ = { 419 | isa = PBXShellScriptBuildPhase; 420 | buildActionMask = 2147483647; 421 | files = ( 422 | ); 423 | inputPaths = ( 424 | ); 425 | name = "[CP] Embed Pods Frameworks"; 426 | outputPaths = ( 427 | ); 428 | runOnlyForDeploymentPostprocessing = 0; 429 | shellPath = /bin/sh; 430 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-ConfettiExampleTests/Pods-ConfettiExampleTests-frameworks.sh\"\n"; 431 | showEnvVarsInLog = 0; 432 | }; 433 | FDFDD9EDB569DB176B6FEF98 /* [CP] Check Pods Manifest.lock */ = { 434 | isa = PBXShellScriptBuildPhase; 435 | buildActionMask = 2147483647; 436 | files = ( 437 | ); 438 | inputPaths = ( 439 | ); 440 | name = "[CP] Check Pods Manifest.lock"; 441 | outputPaths = ( 442 | ); 443 | runOnlyForDeploymentPostprocessing = 0; 444 | shellPath = /bin/sh; 445 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 446 | showEnvVarsInLog = 0; 447 | }; 448 | /* End PBXShellScriptBuildPhase section */ 449 | 450 | /* Begin PBXSourcesBuildPhase section */ 451 | 2CF80EF31DA456B20044B27F /* Sources */ = { 452 | isa = PBXSourcesBuildPhase; 453 | buildActionMask = 2147483647; 454 | files = ( 455 | 2CF80EFD1DA456B20044B27F /* ViewController.swift in Sources */, 456 | 2CF80EFB1DA456B20044B27F /* AppDelegate.swift in Sources */, 457 | ); 458 | runOnlyForDeploymentPostprocessing = 0; 459 | }; 460 | 2CF80F071DA456B20044B27F /* Sources */ = { 461 | isa = PBXSourcesBuildPhase; 462 | buildActionMask = 2147483647; 463 | files = ( 464 | 2CF80F101DA456B20044B27F /* ConfettiExampleTests.swift in Sources */, 465 | ); 466 | runOnlyForDeploymentPostprocessing = 0; 467 | }; 468 | 2CF80F121DA456B20044B27F /* Sources */ = { 469 | isa = PBXSourcesBuildPhase; 470 | buildActionMask = 2147483647; 471 | files = ( 472 | 2CF80F1B1DA456B20044B27F /* ConfettiExampleUITests.swift in Sources */, 473 | ); 474 | runOnlyForDeploymentPostprocessing = 0; 475 | }; 476 | /* End PBXSourcesBuildPhase section */ 477 | 478 | /* Begin PBXTargetDependency section */ 479 | 2CF80F0D1DA456B20044B27F /* PBXTargetDependency */ = { 480 | isa = PBXTargetDependency; 481 | target = 2CF80EF61DA456B20044B27F /* ConfettiExample */; 482 | targetProxy = 2CF80F0C1DA456B20044B27F /* PBXContainerItemProxy */; 483 | }; 484 | 2CF80F181DA456B20044B27F /* PBXTargetDependency */ = { 485 | isa = PBXTargetDependency; 486 | target = 2CF80EF61DA456B20044B27F /* ConfettiExample */; 487 | targetProxy = 2CF80F171DA456B20044B27F /* PBXContainerItemProxy */; 488 | }; 489 | /* End PBXTargetDependency section */ 490 | 491 | /* Begin PBXVariantGroup section */ 492 | 2CF80EFE1DA456B20044B27F /* Main.storyboard */ = { 493 | isa = PBXVariantGroup; 494 | children = ( 495 | 2CF80EFF1DA456B20044B27F /* Base */, 496 | ); 497 | name = Main.storyboard; 498 | sourceTree = ""; 499 | }; 500 | 2CF80F031DA456B20044B27F /* LaunchScreen.storyboard */ = { 501 | isa = PBXVariantGroup; 502 | children = ( 503 | 2CF80F041DA456B20044B27F /* Base */, 504 | ); 505 | name = LaunchScreen.storyboard; 506 | sourceTree = ""; 507 | }; 508 | /* End PBXVariantGroup section */ 509 | 510 | /* Begin XCBuildConfiguration section */ 511 | 2CF80F1D1DA456B20044B27F /* Debug */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | ALWAYS_SEARCH_USER_PATHS = NO; 515 | CLANG_ANALYZER_NONNULL = YES; 516 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 517 | CLANG_CXX_LIBRARY = "libc++"; 518 | CLANG_ENABLE_MODULES = YES; 519 | CLANG_ENABLE_OBJC_ARC = YES; 520 | CLANG_WARN_BOOL_CONVERSION = YES; 521 | CLANG_WARN_CONSTANT_CONVERSION = YES; 522 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 523 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 524 | CLANG_WARN_EMPTY_BODY = YES; 525 | CLANG_WARN_ENUM_CONVERSION = YES; 526 | CLANG_WARN_INFINITE_RECURSION = YES; 527 | CLANG_WARN_INT_CONVERSION = YES; 528 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 529 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 530 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 531 | CLANG_WARN_UNREACHABLE_CODE = YES; 532 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 533 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 534 | COPY_PHASE_STRIP = NO; 535 | DEBUG_INFORMATION_FORMAT = dwarf; 536 | ENABLE_STRICT_OBJC_MSGSEND = YES; 537 | ENABLE_TESTABILITY = YES; 538 | GCC_C_LANGUAGE_STANDARD = gnu99; 539 | GCC_DYNAMIC_NO_PIC = NO; 540 | GCC_NO_COMMON_BLOCKS = YES; 541 | GCC_OPTIMIZATION_LEVEL = 0; 542 | GCC_PREPROCESSOR_DEFINITIONS = ( 543 | "DEBUG=1", 544 | "$(inherited)", 545 | ); 546 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 547 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 548 | GCC_WARN_UNDECLARED_SELECTOR = YES; 549 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 550 | GCC_WARN_UNUSED_FUNCTION = YES; 551 | GCC_WARN_UNUSED_VARIABLE = YES; 552 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 553 | MTL_ENABLE_DEBUG_INFO = YES; 554 | ONLY_ACTIVE_ARCH = YES; 555 | SDKROOT = iphoneos; 556 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 557 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 558 | TARGETED_DEVICE_FAMILY = "1,2"; 559 | }; 560 | name = Debug; 561 | }; 562 | 2CF80F1E1DA456B20044B27F /* Release */ = { 563 | isa = XCBuildConfiguration; 564 | buildSettings = { 565 | ALWAYS_SEARCH_USER_PATHS = NO; 566 | CLANG_ANALYZER_NONNULL = YES; 567 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 568 | CLANG_CXX_LIBRARY = "libc++"; 569 | CLANG_ENABLE_MODULES = YES; 570 | CLANG_ENABLE_OBJC_ARC = YES; 571 | CLANG_WARN_BOOL_CONVERSION = YES; 572 | CLANG_WARN_CONSTANT_CONVERSION = YES; 573 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 574 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 575 | CLANG_WARN_EMPTY_BODY = YES; 576 | CLANG_WARN_ENUM_CONVERSION = YES; 577 | CLANG_WARN_INFINITE_RECURSION = YES; 578 | CLANG_WARN_INT_CONVERSION = YES; 579 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 580 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 581 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 582 | CLANG_WARN_UNREACHABLE_CODE = YES; 583 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 584 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 585 | COPY_PHASE_STRIP = NO; 586 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 587 | ENABLE_NS_ASSERTIONS = NO; 588 | ENABLE_STRICT_OBJC_MSGSEND = YES; 589 | GCC_C_LANGUAGE_STANDARD = gnu99; 590 | GCC_NO_COMMON_BLOCKS = YES; 591 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 592 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 593 | GCC_WARN_UNDECLARED_SELECTOR = YES; 594 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 595 | GCC_WARN_UNUSED_FUNCTION = YES; 596 | GCC_WARN_UNUSED_VARIABLE = YES; 597 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 598 | MTL_ENABLE_DEBUG_INFO = NO; 599 | SDKROOT = iphoneos; 600 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 601 | TARGETED_DEVICE_FAMILY = "1,2"; 602 | VALIDATE_PRODUCT = YES; 603 | }; 604 | name = Release; 605 | }; 606 | 2CF80F201DA456B20044B27F /* Debug */ = { 607 | isa = XCBuildConfiguration; 608 | baseConfigurationReference = A69218C890CAA5B939AA5DC1 /* Pods-ConfettiExample.debug.xcconfig */; 609 | buildSettings = { 610 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 611 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 612 | DEVELOPMENT_TEAM = KX2Q423DM4; 613 | INFOPLIST_FILE = ConfettiExample/Info.plist; 614 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 615 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 616 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExample; 617 | PRODUCT_NAME = "$(TARGET_NAME)"; 618 | SWIFT_VERSION = 3.0; 619 | }; 620 | name = Debug; 621 | }; 622 | 2CF80F211DA456B20044B27F /* Release */ = { 623 | isa = XCBuildConfiguration; 624 | baseConfigurationReference = 841E53AEFFE09D4230FBF357 /* Pods-ConfettiExample.release.xcconfig */; 625 | buildSettings = { 626 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 627 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 628 | DEVELOPMENT_TEAM = KX2Q423DM4; 629 | INFOPLIST_FILE = ConfettiExample/Info.plist; 630 | IPHONEOS_DEPLOYMENT_TARGET = 8.1; 631 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 632 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExample; 633 | PRODUCT_NAME = "$(TARGET_NAME)"; 634 | SWIFT_VERSION = 3.0; 635 | }; 636 | name = Release; 637 | }; 638 | 2CF80F231DA456B20044B27F /* Debug */ = { 639 | isa = XCBuildConfiguration; 640 | baseConfigurationReference = B0F4DD74AF24B6ECECE135B1 /* Pods-ConfettiExampleTests.debug.xcconfig */; 641 | buildSettings = { 642 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 643 | BUNDLE_LOADER = "$(TEST_HOST)"; 644 | DEVELOPMENT_TEAM = KX2Q423DM4; 645 | INFOPLIST_FILE = ConfettiExampleTests/Info.plist; 646 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 647 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExampleTests; 648 | PRODUCT_NAME = "$(TARGET_NAME)"; 649 | SWIFT_VERSION = 3.0; 650 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ConfettiExample.app/ConfettiExample"; 651 | }; 652 | name = Debug; 653 | }; 654 | 2CF80F241DA456B20044B27F /* Release */ = { 655 | isa = XCBuildConfiguration; 656 | baseConfigurationReference = 06650EB2A287DEA1825C46F2 /* Pods-ConfettiExampleTests.release.xcconfig */; 657 | buildSettings = { 658 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 659 | BUNDLE_LOADER = "$(TEST_HOST)"; 660 | DEVELOPMENT_TEAM = KX2Q423DM4; 661 | INFOPLIST_FILE = ConfettiExampleTests/Info.plist; 662 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 663 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExampleTests; 664 | PRODUCT_NAME = "$(TARGET_NAME)"; 665 | SWIFT_VERSION = 3.0; 666 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ConfettiExample.app/ConfettiExample"; 667 | }; 668 | name = Release; 669 | }; 670 | 2CF80F261DA456B20044B27F /* Debug */ = { 671 | isa = XCBuildConfiguration; 672 | baseConfigurationReference = 94BA40256B8AC9C043C2F724 /* Pods-ConfettiExampleUITests.debug.xcconfig */; 673 | buildSettings = { 674 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 675 | DEVELOPMENT_TEAM = KX2Q423DM4; 676 | INFOPLIST_FILE = ConfettiExampleUITests/Info.plist; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 678 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExampleUITests; 679 | PRODUCT_NAME = "$(TARGET_NAME)"; 680 | SWIFT_VERSION = 3.0; 681 | TEST_TARGET_NAME = ConfettiExample; 682 | }; 683 | name = Debug; 684 | }; 685 | 2CF80F271DA456B20044B27F /* Release */ = { 686 | isa = XCBuildConfiguration; 687 | baseConfigurationReference = 90D7F96246293771DBF2533A /* Pods-ConfettiExampleUITests.release.xcconfig */; 688 | buildSettings = { 689 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 690 | DEVELOPMENT_TEAM = KX2Q423DM4; 691 | INFOPLIST_FILE = ConfettiExampleUITests/Info.plist; 692 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 693 | PRODUCT_BUNDLE_IDENTIFIER = dev.or.ConfettiExampleUITests; 694 | PRODUCT_NAME = "$(TARGET_NAME)"; 695 | SWIFT_VERSION = 3.0; 696 | TEST_TARGET_NAME = ConfettiExample; 697 | }; 698 | name = Release; 699 | }; 700 | /* End XCBuildConfiguration section */ 701 | 702 | /* Begin XCConfigurationList section */ 703 | 2CF80EF21DA456B20044B27F /* Build configuration list for PBXProject "ConfettiExample" */ = { 704 | isa = XCConfigurationList; 705 | buildConfigurations = ( 706 | 2CF80F1D1DA456B20044B27F /* Debug */, 707 | 2CF80F1E1DA456B20044B27F /* Release */, 708 | ); 709 | defaultConfigurationIsVisible = 0; 710 | defaultConfigurationName = Release; 711 | }; 712 | 2CF80F1F1DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExample" */ = { 713 | isa = XCConfigurationList; 714 | buildConfigurations = ( 715 | 2CF80F201DA456B20044B27F /* Debug */, 716 | 2CF80F211DA456B20044B27F /* Release */, 717 | ); 718 | defaultConfigurationIsVisible = 0; 719 | defaultConfigurationName = Release; 720 | }; 721 | 2CF80F221DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExampleTests" */ = { 722 | isa = XCConfigurationList; 723 | buildConfigurations = ( 724 | 2CF80F231DA456B20044B27F /* Debug */, 725 | 2CF80F241DA456B20044B27F /* Release */, 726 | ); 727 | defaultConfigurationIsVisible = 0; 728 | defaultConfigurationName = Release; 729 | }; 730 | 2CF80F251DA456B20044B27F /* Build configuration list for PBXNativeTarget "ConfettiExampleUITests" */ = { 731 | isa = XCConfigurationList; 732 | buildConfigurations = ( 733 | 2CF80F261DA456B20044B27F /* Debug */, 734 | 2CF80F271DA456B20044B27F /* Release */, 735 | ); 736 | defaultConfigurationIsVisible = 0; 737 | defaultConfigurationName = Release; 738 | }; 739 | /* End XCConfigurationList section */ 740 | }; 741 | rootObject = 2CF80EEF1DA456B20044B27F /* Project object */; 742 | } 743 | -------------------------------------------------------------------------------- /Example/ConfettiExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ConfettiExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ConfettiExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ConfettiExample 4 | // 5 | // Created by Or on 05/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/ConfettiExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /Example/ConfettiExample/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Example/ConfettiExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /Example/ConfettiExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Example/ConfettiExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ConfettiExample 4 | // 5 | // Created by Or on 05/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ConfettiView 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var confettiView: ConfettiView! 15 | 16 | override func viewDidLoad() { 17 | super.viewDidLoad() 18 | // Do any additional setup after loading the view, typically from a nib. 19 | 20 | } 21 | 22 | override func didReceiveMemoryWarning() { 23 | super.didReceiveMemoryWarning() 24 | // Dispose of any resources that can be recreated. 25 | } 26 | @IBAction func stopConfetti(_ sender: UIButton) { 27 | if confettiView.isAnimating == true { 28 | sender.titleLabel?.text = "startAnimating()" 29 | confettiView.stopAnimating() 30 | } else { 31 | sender.titleLabel?.text = "stopAnimating()" 32 | confettiView.startAnimating() 33 | } 34 | 35 | } 36 | 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Example/ConfettiExampleTests/ConfettiExampleTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfettiExampleTests.swift 3 | // ConfettiExampleTests 4 | // 5 | // Created by Or on 05/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | 12 | class ConfettiExampleTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | // Use XCTAssert and related functions to verify your tests produce the correct results. 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measure { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Example/ConfettiExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/ConfettiExampleUITests/ConfettiExampleUITests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConfettiExampleUITests.swift 3 | // ConfettiExampleUITests 4 | // 5 | // Created by Or on 05/10/2016. 6 | // Copyright © 2016 Or. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class ConfettiExampleUITests: XCTestCase { 12 | 13 | override func setUp() { 14 | super.setUp() 15 | 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | 18 | // In UI tests it is usually best to stop immediately when a failure occurs. 19 | continueAfterFailure = false 20 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 21 | XCUIApplication().launch() 22 | 23 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 24 | } 25 | 26 | override func tearDown() { 27 | // Put teardown code here. This method is called after the invocation of each test method in the class. 28 | super.tearDown() 29 | } 30 | 31 | func testExample() { 32 | // Use recording to get started writing UI tests. 33 | // Use XCTAssert and related functions to verify your tests produce the correct results. 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Example/ConfettiExampleUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'ConfettiExample' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for ConfettiExample 9 | pod 'ConfettiView', :path => '../' 10 | 11 | target 'ConfettiExampleTests' do 12 | inherit! :search_paths 13 | # Pods for testing 14 | end 15 | 16 | target 'ConfettiExampleUITests' do 17 | inherit! :search_paths 18 | # Pods for testing 19 | end 20 | 21 | end 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 - 2017 Or Ron 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![](http://i.imgur.com/kQqv0mb.png) 3 | 4 | [![Version](https://img.shields.io/cocoapods/v/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView) 5 | [![License](https://img.shields.io/cocoapods/l/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView) 6 | [![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://swift.org/) 7 | [![Platform](https://img.shields.io/cocoapods/p/ConfettiView.svg?style=flat)](http://cocoapods.org/pods/ConfettiView) 8 | 9 | # ConfettiView 10 | 11 | Confetti View lets you create a magnificent confetti view in your app. This was inspired by [House Party](https://itunes.apple.com/il/app/houseparty-group-video-chat/id1065781769?mt=8) app's login screen. Written in Swift 3 :) 12 | 13 | ![](http://i.giphy.com/d31wQ2wbLGRQKtTa.gif) 14 | 15 | It reacts to the phone accelerometer therefore it's better to run the example project on the device. 16 | 17 | ## Usage 18 | 19 | ### With Interface Builder 20 | 21 | ![](http://i.imgur.com/Myg6obo.png) 22 | 23 | Simply pick a view and change it's type to ConfettiView. 24 | 25 | ### Programaticlly 26 | 27 | ConfettiView is a subclass of UIView 28 | ```swift 29 | let confettiView = ConffetiView() 30 | self.view.addSubView(confettiView) 31 | ``` 32 | ### Controls 33 | 34 | Start or stop the animation: 35 | ```swift 36 | confettiView.stopAnimating() 37 | confettiView.startAnimating() 38 | ``` 39 | 40 | Check whether the animation is active: 41 | ```swift 42 | confettiView.isAnimating 43 | ``` 44 | 45 | By default the animation starts when the view is initialized 46 | 47 | ## Installation 48 | 49 | ConfettiView is available through [CocoaPods](http://cocoapods.org). To install 50 | it, simply add the following line to your Podfile: 51 | 52 | ```ruby 53 | pod "ConfettiView" 54 | ``` 55 | 56 | ## Author 57 | 58 | Or Ron, or.ron10@gmail.com 59 | 60 | [@or_ron](https://twitter.com/or_ron) 61 | 62 | ## License 63 | 64 | ConfettiView is available under the MIT license. See the LICENSE file for more info. 65 | --------------------------------------------------------------------------------