├── .swift-version ├── README └── animated.gif ├── Example ├── Podfile.lock ├── Pods │ ├── Manifest.lock │ ├── Target Support Files │ │ └── Pods-CPConfettiViewExample │ │ │ ├── Pods-CPConfettiViewExample-acknowledgements.markdown │ │ │ ├── Pods-CPConfettiViewExample.modulemap │ │ │ ├── Pods-CPConfettiViewExample-dummy.m │ │ │ ├── Pods-CPConfettiViewExample-umbrella.h │ │ │ ├── Pods-CPConfettiViewExample.debug.xcconfig │ │ │ ├── Pods-CPConfettiViewExample.release.xcconfig │ │ │ ├── Info.plist │ │ │ ├── Pods-CPConfettiViewExample-acknowledgements.plist │ │ │ ├── Pods-CPConfettiViewExample-frameworks.sh │ │ │ └── Pods-CPConfettiViewExample-resources.sh │ └── Pods.xcodeproj │ │ └── project.pbxproj ├── CPConfettiViewExample │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── beer.imageset │ │ │ ├── Beer-48.png │ │ │ └── Contents.json │ │ ├── heart.imageset │ │ │ ├── Hearts-48.png │ │ │ └── Contents.json │ │ ├── Image.imageset │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── ViewController.swift │ ├── Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── AppDelegate.swift │ └── CPConfettiView │ │ └── Classes │ │ └── CPConfettiView.swift ├── CPConfettiViewExample.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── CPConfettiViewExample.xcscheme │ └── project.pbxproj ├── Podfile └── CPConfettiViewExample.xcworkspace │ └── contents.xcworkspacedata ├── CPConfettiView.podspec ├── .travis.yml ├── LICENSE ├── .gitignore ├── README.md └── CPConfettiView └── CPConfettiView.swift /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /README/animated.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phuongvnc/CPConfettiView/HEAD/README/animated.gif -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 23eb03b44f2abf79dab7e0dbe2f0aa927e170073 2 | 3 | COCOAPODS: 1.1.1 4 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODFILE CHECKSUM: 23eb03b44f2abf79dab7e0dbe2f0aa927e170073 2 | 3 | COCOAPODS: 1.1.1 4 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/beer.imageset/Beer-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phuongvnc/CPConfettiView/HEAD/Example/CPConfettiViewExample/Assets.xcassets/beer.imageset/Beer-48.png -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/heart.imageset/Hearts-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phuongvnc/CPConfettiView/HEAD/Example/CPConfettiViewExample/Assets.xcassets/heart.imageset/Hearts-48.png -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_CPConfettiViewExample { 2 | umbrella header "Pods-CPConfettiViewExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_CPConfettiViewExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_CPConfettiViewExample 5 | @end 6 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_CPConfettiViewExampleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_CPConfettiViewExampleVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'CPConfettiViewExample' 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 CPConfettiViewExample 9 | 10 | end 11 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/Image.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "3x" 14 | } 15 | ], 16 | "info" : { 17 | "version" : 1, 18 | "author" : "xcode" 19 | } 20 | } -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | PODS_BUILD_DIR = $BUILD_DIR 5 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT}/Pods 7 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/beer.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Beer-48.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/heart.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "Hearts-48.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /CPConfettiView.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = "CPConfettiView" 4 | s.version = "1.0" 5 | s.summary = "CPConfettiView is fun animation when user input keyword " 6 | s.homepage = "https://github.com/phuongvnc/CPConfettiView" 7 | #s.screenshots = "https://github.com/phuongvnc/CPConfettiView/blob/master/README/animated.gif" 8 | s.license = { :type => "MIT", :file => "LICENSE" } 9 | s.author = { "Chi Phuong" => "vonguyenchiphuong@gmail.com" } 10 | s.ios.deployment_target = '8.0' 11 | s.source = { :git => "https://github.com/phuongvnc/CPConfettiView.git", :tag => s.version.to_s } 12 | s.source_files = 'CPConfettiView/*' 13 | s.requires_arc = true 14 | s.frameworks = 'UIKit' 15 | end -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | # references: 5 | # * http://www.objc.io/issue-6/travis-ci.html 6 | # * https://github.com/supermarin/xcpretty#usage 7 | 8 | osx_image: xcode8.1 9 | language: objective-c 10 | cache: cocoapods 11 | podfile: Example/Podfile 12 | # before_install: 13 | # - gem install cocoapods # Since Travis is not always on latest version 14 | # install: 15 | # - | 16 | # bundle install 17 | # pod repo update --silent 18 | # pod install 19 | before_install: 20 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 21 | 22 | script: 23 | - set -o pipefail 24 | - xcodebuild clean test -workspace Example/CPConfettiViewExample.xcworkspace -scheme CPConfettiViewExample -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6" 25 | - pod lib lint --allow-warnings 26 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/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-CPConfettiViewExample/Pods-CPConfettiViewExample-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 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | } 43 | ], 44 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Chi Phuong 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 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // CPConfettiViewExample 4 | // 5 | // Created by framgia on 3/3/17. 6 | // Copyright © 2017 Vo Nguyen Chi Phuong. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | @IBOutlet private weak var confettiView: CPConfettiView! 13 | @IBOutlet private weak var directionSegment: UISegmentedControl! 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | 22 | } 23 | 24 | @IBAction func edditingChangValueComment(sender: UITextField) { 25 | guard let text = sender.text else { 26 | return 27 | } 28 | confettiView.direction = directionSegment.selectedSegmentIndex == 0 ? .Top : .Bottom 29 | confettiView.intensity = 0.5 30 | if text == "heart" { 31 | confettiView.setImageForConfetti(image: UIImage(named:"heart")!) 32 | confettiView.startConfetti(duration:3) 33 | } else if text == "beer" { 34 | confettiView.setImageForConfetti(image: UIImage(named:"beer")!) 35 | confettiView.startConfetti(duration:3) 36 | } 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /.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 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 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/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CPConfettiView 2 | 3 | 4 | CPConfettiView is fun animation when user input keyword: 5 | 6 | [![CI Status](https://travis-ci.org/phuongvnc/CPConfettiView.svg?style=flat)](https://travis-ci.org/at-phuongvnc/CPMenuView) 7 | [![Version](https://img.shields.io/cocoapods/v/CPConfettiView.svg?style=flat)](http://cocoapods.org/pods/CPMenuView) 8 | [![License](https://img.shields.io/cocoapods/l/CPConfettiView.svg?style=flat)](http://cocoapods.org/pods/CPMenuView) 9 | [![Platform](https://img.shields.io/cocoapods/p/CPConfettiView.svg?style=flat)](http://cocoapods.org/pods/CPMenuView) 10 | 11 | ![alt tag](https://github.com/phuongvnc/CPConfettiView/blob/master/README/animated.gif) 12 | 13 | ## Example 14 | 15 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 16 | 17 | ## Requirements 18 | 19 | - Swift 3.0 & Xcode 8 20 | - iOS 8 and later 21 | 22 | #### Manual install 23 | 24 | Drag and drop folder `CPConfettiView` to your project. 25 | 26 | ## Installation 27 | 28 | CPMenuView is available through [CocoaPods](http://cocoapods.org). To install 29 | it, simply add the following line to your Podfile: 30 | 31 | ```ruby 32 | pod "CPConfettiView" ~> '1.0' 33 | ``` 34 | ## Usage 35 | 36 | You can create and custom confetti view 37 | ```Swift 38 | let confettiView = CPConfettiView(frame: UIScreen.main.bounds) 39 | confettiView.direction = .Top 40 | confettiView.intensity = 0.5 41 | confettiView.setImageForConfetti(image: UIImage(named:"heart")!) 42 | view.addSubview(confettiView) 43 | confettiView.startConfetti(duration:3) 44 | ``` 45 | 46 | ## Contributing 47 | 48 | Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request. 49 | 50 | ## Author 51 | 52 | Chi Phuong, vonguyenchiphuong@gmail.com 53 | 54 | ## License 55 | 56 | CPMenuView is available under the MIT license. See the LICENSE file for more info. 57 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CPConfettiViewExample 4 | // 5 | // Created by framgia on 3/3/17. 6 | // Copyright © 2017 Vo Nguyen Chi Phuong. 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 | -------------------------------------------------------------------------------- /CPConfettiView/CPConfettiView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CPConfettiView.swift 3 | // CPConfettiViewExample 4 | // 5 | // Created by framgia on 3/3/17. 6 | // Copyright © 2017 Vo Nguyen Chi Phuong. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | import UIKit 12 | import QuartzCore 13 | 14 | public enum CPConfettiDirection { 15 | case Top 16 | case Bottom 17 | } 18 | 19 | public class CPConfettiView: UIView { 20 | 21 | var emitter: CAEmitterLayer = CAEmitterLayer() 22 | public var intensity: Float! 23 | private var active :Bool! 24 | private var image: UIImage? 25 | var direction: CPConfettiDirection = .Top 26 | 27 | required public init?(coder aDecoder: NSCoder) { 28 | super.init(coder: aDecoder) 29 | setup() 30 | } 31 | 32 | public override init(frame: CGRect) { 33 | super.init(frame: frame) 34 | setup() 35 | } 36 | 37 | func setup() { 38 | intensity = 0.5 39 | direction = .Top 40 | active = false 41 | } 42 | 43 | // Duration is time active anitmation.Default is 0 -> It won't stop 44 | public func startConfetti(duration: TimeInterval = 0) { 45 | guard let _ = image else { 46 | return 47 | } 48 | 49 | let x = frame.size.width / 2 50 | let y = direction == .Top ? 0 : frame.size.height 51 | emitter.emitterPosition = CGPoint(x: x, y: y) 52 | emitter.emitterShape = kCAEmitterLayerLine 53 | emitter.emitterSize = CGSize(width: frame.size.width, height: 1) 54 | emitter.birthRate = 1 55 | emitter.emitterCells = [confettiWithColor()] 56 | 57 | layer.addSublayer(emitter) 58 | active = true 59 | if duration != 0 { 60 | DispatchQueue.main.asyncAfter(deadline: .now() + duration, execute: { 61 | self.stopConfetti() 62 | }) 63 | } 64 | } 65 | 66 | public func stopConfetti() { 67 | emitter.birthRate = 0 68 | active = false 69 | } 70 | 71 | public func setImageForConfetti(image: UIImage) { 72 | self.image = image 73 | } 74 | 75 | func confettiWithColor() -> CAEmitterCell { 76 | let confetti = CAEmitterCell() 77 | confetti.birthRate = 4 * intensity 78 | confetti.lifetime = 10 79 | confetti.velocity = CGFloat(350 * intensity) 80 | confetti.velocityRange = CGFloat(80.0 * intensity) 81 | confetti.emissionLongitude = direction == .Top ? CGFloat(M_PI) : CGFloat(0) 82 | confetti.emissionRange = CGFloat(M_PI / 10) 83 | confetti.scale = 1 84 | confetti.scaleRange = 0.5 85 | confetti.contents = image!.cgImage 86 | return confetti 87 | } 88 | 89 | public func isActive() -> Bool { 90 | return self.active 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/CPConfettiView/Classes/CPConfettiView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CPConfettiView.swift 3 | // CPConfettiViewExample 4 | // 5 | // Created by framgia on 3/3/17. 6 | // Copyright © 2017 Vo Nguyen Chi Phuong. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | import UIKit 12 | import QuartzCore 13 | 14 | public enum CPConfettiDirection { 15 | case Top 16 | case Bottom 17 | } 18 | 19 | public class CPConfettiView: UIView { 20 | 21 | var emitter: CAEmitterLayer = CAEmitterLayer() 22 | public var intensity: Float! 23 | private var active :Bool! 24 | private var image: UIImage? 25 | var direction: CPConfettiDirection = .Top 26 | 27 | required public init?(coder aDecoder: NSCoder) { 28 | super.init(coder: aDecoder) 29 | setup() 30 | } 31 | 32 | public override init(frame: CGRect) { 33 | super.init(frame: frame) 34 | setup() 35 | } 36 | 37 | func setup() { 38 | intensity = 0.5 39 | direction = .Top 40 | active = false 41 | } 42 | 43 | // Duration is time active anitmation.Default is 0 -> It won't stop 44 | public func startConfetti(duration: TimeInterval = 0) { 45 | guard let _ = image else { 46 | return 47 | } 48 | 49 | let x = frame.size.width / 2 50 | let y = direction == .Top ? 0 : frame.size.height 51 | emitter.emitterPosition = CGPoint(x: x, y: y) 52 | emitter.emitterShape = kCAEmitterLayerLine 53 | emitter.emitterSize = CGSize(width: frame.size.width, height: 1) 54 | emitter.birthRate = 1 55 | emitter.emitterCells = [confettiWithColor()] 56 | 57 | layer.addSublayer(emitter) 58 | active = true 59 | if duration != 0 { 60 | DispatchQueue.main.asyncAfter(deadline: .now() + duration, execute: { 61 | self.stopConfetti() 62 | }) 63 | } 64 | } 65 | 66 | public func stopConfetti() { 67 | emitter.birthRate = 0 68 | active = false 69 | } 70 | 71 | public func setImageForConfetti(image: UIImage) { 72 | self.image = image 73 | } 74 | 75 | func confettiWithColor() -> CAEmitterCell { 76 | let confetti = CAEmitterCell() 77 | confetti.birthRate = 4 * intensity 78 | confetti.lifetime = 10 79 | confetti.velocity = CGFloat(350 * intensity) 80 | confetti.velocityRange = CGFloat(80.0 * intensity) 81 | confetti.emissionLongitude = direction == .Top ? CGFloat(M_PI) : CGFloat(0) 82 | confetti.emissionRange = CGFloat(M_PI / 12) 83 | confetti.scale = 1 84 | confetti.scaleRange = 0.5 85 | confetti.contents = image!.cgImage 86 | return confetti 87 | } 88 | 89 | public func isActive() -> Bool { 90 | return self.active 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-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 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample.xcodeproj/xcshareddata/xcschemes/CPConfettiViewExample.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-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 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 44 | 45 | 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 | -------------------------------------------------------------------------------- /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 | 0510EB604E9AD9104937CEEF67474300 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 11 | 15C60C419B5B52128A6722B4BAC06996 /* Pods-CPConfettiViewExample-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 79856FEE4AEC8FF3B9B4897DD170F0A5 /* Pods-CPConfettiViewExample-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | D12257B74E08AB2F7923B11701CD3A03 /* Pods-CPConfettiViewExample-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DE64EB821000629BD93B29AD8042E31 /* Pods-CPConfettiViewExample-dummy.m */; }; 13 | /* End PBXBuildFile section */ 14 | 15 | /* Begin PBXFileReference section */ 16 | 54A4B1DD350ED232BCEF0835193FF0C4 /* Pods-CPConfettiViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CPConfettiViewExample.release.xcconfig"; sourceTree = ""; }; 17 | 57767D57C8DEEF2D89FBA376DA6E198B /* Pods-CPConfettiViewExample-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CPConfettiViewExample-resources.sh"; sourceTree = ""; }; 18 | 5F7447B76F79858A5E7308C318E6B8EA /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 19 | 68879C8052CABA7C84130FACF1E46F90 /* Pods-CPConfettiViewExample.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-CPConfettiViewExample.modulemap"; sourceTree = ""; }; 20 | 79856FEE4AEC8FF3B9B4897DD170F0A5 /* Pods-CPConfettiViewExample-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-CPConfettiViewExample-umbrella.h"; sourceTree = ""; }; 21 | 89214766B4A749406DB724FD38FE9FAD /* Pods-CPConfettiViewExample-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-CPConfettiViewExample-frameworks.sh"; sourceTree = ""; }; 22 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 23 | 9DE64EB821000629BD93B29AD8042E31 /* Pods-CPConfettiViewExample-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-CPConfettiViewExample-dummy.m"; sourceTree = ""; }; 24 | A0471887D9140A8C623D66198A4FC3E9 /* Pods-CPConfettiViewExample-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-CPConfettiViewExample-acknowledgements.markdown"; sourceTree = ""; }; 25 | C941A97FF3F2E94796FF689F88A047FD /* Pods_CPConfettiViewExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_CPConfettiViewExample.framework; path = "Pods-CPConfettiViewExample.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 26 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 27 | F47817AA913EC0D4323F38ED49AC11C1 /* Pods-CPConfettiViewExample-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-CPConfettiViewExample-acknowledgements.plist"; sourceTree = ""; }; 28 | FC790A7DB99DDD088FF0F0C6D9EFF35A /* Pods-CPConfettiViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-CPConfettiViewExample.debug.xcconfig"; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | DDC37A5C0C59620D242A6374F88633CE /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | 0510EB604E9AD9104937CEEF67474300 /* Foundation.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 4431EF3FD14E098B088D4643155C4C93 /* Targets Support Files */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | 824FEB45AB9FD5E913DDC0DA0DB776F9 /* Pods-CPConfettiViewExample */, 47 | ); 48 | name = "Targets Support Files"; 49 | sourceTree = ""; 50 | }; 51 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 55 | ); 56 | name = iOS; 57 | sourceTree = ""; 58 | }; 59 | 7C7DEC3A67FA40330B7547ED3EBE2F83 /* Products */ = { 60 | isa = PBXGroup; 61 | children = ( 62 | C941A97FF3F2E94796FF689F88A047FD /* Pods_CPConfettiViewExample.framework */, 63 | ); 64 | name = Products; 65 | sourceTree = ""; 66 | }; 67 | 7DB346D0F39D3F0E887471402A8071AB = { 68 | isa = PBXGroup; 69 | children = ( 70 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 71 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 72 | 7C7DEC3A67FA40330B7547ED3EBE2F83 /* Products */, 73 | 4431EF3FD14E098B088D4643155C4C93 /* Targets Support Files */, 74 | ); 75 | sourceTree = ""; 76 | }; 77 | 824FEB45AB9FD5E913DDC0DA0DB776F9 /* Pods-CPConfettiViewExample */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 5F7447B76F79858A5E7308C318E6B8EA /* Info.plist */, 81 | 68879C8052CABA7C84130FACF1E46F90 /* Pods-CPConfettiViewExample.modulemap */, 82 | A0471887D9140A8C623D66198A4FC3E9 /* Pods-CPConfettiViewExample-acknowledgements.markdown */, 83 | F47817AA913EC0D4323F38ED49AC11C1 /* Pods-CPConfettiViewExample-acknowledgements.plist */, 84 | 9DE64EB821000629BD93B29AD8042E31 /* Pods-CPConfettiViewExample-dummy.m */, 85 | 89214766B4A749406DB724FD38FE9FAD /* Pods-CPConfettiViewExample-frameworks.sh */, 86 | 57767D57C8DEEF2D89FBA376DA6E198B /* Pods-CPConfettiViewExample-resources.sh */, 87 | 79856FEE4AEC8FF3B9B4897DD170F0A5 /* Pods-CPConfettiViewExample-umbrella.h */, 88 | FC790A7DB99DDD088FF0F0C6D9EFF35A /* Pods-CPConfettiViewExample.debug.xcconfig */, 89 | 54A4B1DD350ED232BCEF0835193FF0C4 /* Pods-CPConfettiViewExample.release.xcconfig */, 90 | ); 91 | name = "Pods-CPConfettiViewExample"; 92 | path = "Target Support Files/Pods-CPConfettiViewExample"; 93 | sourceTree = ""; 94 | }; 95 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 99 | ); 100 | name = Frameworks; 101 | sourceTree = ""; 102 | }; 103 | /* End PBXGroup section */ 104 | 105 | /* Begin PBXHeadersBuildPhase section */ 106 | BC2908C37CF21084F55DA0F7B8DFBB8A /* Headers */ = { 107 | isa = PBXHeadersBuildPhase; 108 | buildActionMask = 2147483647; 109 | files = ( 110 | 15C60C419B5B52128A6722B4BAC06996 /* Pods-CPConfettiViewExample-umbrella.h in Headers */, 111 | ); 112 | runOnlyForDeploymentPostprocessing = 0; 113 | }; 114 | /* End PBXHeadersBuildPhase section */ 115 | 116 | /* Begin PBXNativeTarget section */ 117 | A7EE54776BBA9F01AC6116637621EA49 /* Pods-CPConfettiViewExample */ = { 118 | isa = PBXNativeTarget; 119 | buildConfigurationList = 124441ABE51EBD1FF671E28E39337F0C /* Build configuration list for PBXNativeTarget "Pods-CPConfettiViewExample" */; 120 | buildPhases = ( 121 | 5B2C61CA90C599029BFED0D685960FAA /* Sources */, 122 | DDC37A5C0C59620D242A6374F88633CE /* Frameworks */, 123 | BC2908C37CF21084F55DA0F7B8DFBB8A /* Headers */, 124 | ); 125 | buildRules = ( 126 | ); 127 | dependencies = ( 128 | ); 129 | name = "Pods-CPConfettiViewExample"; 130 | productName = "Pods-CPConfettiViewExample"; 131 | productReference = C941A97FF3F2E94796FF689F88A047FD /* Pods_CPConfettiViewExample.framework */; 132 | productType = "com.apple.product-type.framework"; 133 | }; 134 | /* End PBXNativeTarget section */ 135 | 136 | /* Begin PBXProject section */ 137 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 138 | isa = PBXProject; 139 | attributes = { 140 | LastSwiftUpdateCheck = 0730; 141 | LastUpgradeCheck = 0700; 142 | }; 143 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 144 | compatibilityVersion = "Xcode 3.2"; 145 | developmentRegion = English; 146 | hasScannedForEncodings = 0; 147 | knownRegions = ( 148 | en, 149 | ); 150 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 151 | productRefGroup = 7C7DEC3A67FA40330B7547ED3EBE2F83 /* Products */; 152 | projectDirPath = ""; 153 | projectRoot = ""; 154 | targets = ( 155 | A7EE54776BBA9F01AC6116637621EA49 /* Pods-CPConfettiViewExample */, 156 | ); 157 | }; 158 | /* End PBXProject section */ 159 | 160 | /* Begin PBXSourcesBuildPhase section */ 161 | 5B2C61CA90C599029BFED0D685960FAA /* Sources */ = { 162 | isa = PBXSourcesBuildPhase; 163 | buildActionMask = 2147483647; 164 | files = ( 165 | D12257B74E08AB2F7923B11701CD3A03 /* Pods-CPConfettiViewExample-dummy.m in Sources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXSourcesBuildPhase section */ 170 | 171 | /* Begin XCBuildConfiguration section */ 172 | 1AAD37DCF471C01E5C9065B785FA021F /* Debug */ = { 173 | isa = XCBuildConfiguration; 174 | baseConfigurationReference = FC790A7DB99DDD088FF0F0C6D9EFF35A /* Pods-CPConfettiViewExample.debug.xcconfig */; 175 | buildSettings = { 176 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 177 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 178 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 179 | CURRENT_PROJECT_VERSION = 1; 180 | DEBUG_INFORMATION_FORMAT = dwarf; 181 | DEFINES_MODULE = YES; 182 | DYLIB_COMPATIBILITY_VERSION = 1; 183 | DYLIB_CURRENT_VERSION = 1; 184 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 185 | ENABLE_STRICT_OBJC_MSGSEND = YES; 186 | GCC_NO_COMMON_BLOCKS = YES; 187 | INFOPLIST_FILE = "Target Support Files/Pods-CPConfettiViewExample/Info.plist"; 188 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 189 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 190 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 191 | MACH_O_TYPE = staticlib; 192 | MODULEMAP_FILE = "Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.modulemap"; 193 | MTL_ENABLE_DEBUG_INFO = YES; 194 | OTHER_LDFLAGS = ""; 195 | OTHER_LIBTOOLFLAGS = ""; 196 | PODS_ROOT = "$(SRCROOT)"; 197 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 198 | PRODUCT_NAME = Pods_CPConfettiViewExample; 199 | SDKROOT = iphoneos; 200 | SKIP_INSTALL = YES; 201 | TARGETED_DEVICE_FAMILY = "1,2"; 202 | VERSIONING_SYSTEM = "apple-generic"; 203 | VERSION_INFO_PREFIX = ""; 204 | }; 205 | name = Debug; 206 | }; 207 | C89E8923CB5F2D8849D7EFBC863A2595 /* Release */ = { 208 | isa = XCBuildConfiguration; 209 | baseConfigurationReference = 54A4B1DD350ED232BCEF0835193FF0C4 /* Pods-CPConfettiViewExample.release.xcconfig */; 210 | buildSettings = { 211 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 212 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 213 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 214 | CURRENT_PROJECT_VERSION = 1; 215 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 216 | DEFINES_MODULE = YES; 217 | DYLIB_COMPATIBILITY_VERSION = 1; 218 | DYLIB_CURRENT_VERSION = 1; 219 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 220 | ENABLE_STRICT_OBJC_MSGSEND = YES; 221 | GCC_NO_COMMON_BLOCKS = YES; 222 | INFOPLIST_FILE = "Target Support Files/Pods-CPConfettiViewExample/Info.plist"; 223 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 224 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 225 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 226 | MACH_O_TYPE = staticlib; 227 | MODULEMAP_FILE = "Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.modulemap"; 228 | MTL_ENABLE_DEBUG_INFO = NO; 229 | OTHER_LDFLAGS = ""; 230 | OTHER_LIBTOOLFLAGS = ""; 231 | PODS_ROOT = "$(SRCROOT)"; 232 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 233 | PRODUCT_NAME = Pods_CPConfettiViewExample; 234 | SDKROOT = iphoneos; 235 | SKIP_INSTALL = YES; 236 | TARGETED_DEVICE_FAMILY = "1,2"; 237 | VERSIONING_SYSTEM = "apple-generic"; 238 | VERSION_INFO_PREFIX = ""; 239 | }; 240 | name = Release; 241 | }; 242 | CACE7C8415F53E79F07C6BBE57F0F61D /* Debug */ = { 243 | isa = XCBuildConfiguration; 244 | buildSettings = { 245 | ALWAYS_SEARCH_USER_PATHS = NO; 246 | CLANG_ANALYZER_NONNULL = YES; 247 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 248 | CLANG_CXX_LIBRARY = "libc++"; 249 | CLANG_ENABLE_MODULES = YES; 250 | CLANG_ENABLE_OBJC_ARC = YES; 251 | CLANG_WARN_BOOL_CONVERSION = YES; 252 | CLANG_WARN_CONSTANT_CONVERSION = YES; 253 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 254 | CLANG_WARN_EMPTY_BODY = YES; 255 | CLANG_WARN_ENUM_CONVERSION = YES; 256 | CLANG_WARN_INT_CONVERSION = YES; 257 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 258 | CLANG_WARN_UNREACHABLE_CODE = YES; 259 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 260 | CODE_SIGNING_REQUIRED = NO; 261 | COPY_PHASE_STRIP = NO; 262 | ENABLE_TESTABILITY = YES; 263 | GCC_C_LANGUAGE_STANDARD = gnu99; 264 | GCC_DYNAMIC_NO_PIC = NO; 265 | GCC_OPTIMIZATION_LEVEL = 0; 266 | GCC_PREPROCESSOR_DEFINITIONS = ( 267 | "POD_CONFIGURATION_DEBUG=1", 268 | "DEBUG=1", 269 | "$(inherited)", 270 | ); 271 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 272 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 273 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 274 | GCC_WARN_UNDECLARED_SELECTOR = YES; 275 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 276 | GCC_WARN_UNUSED_FUNCTION = YES; 277 | GCC_WARN_UNUSED_VARIABLE = YES; 278 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 279 | ONLY_ACTIVE_ARCH = YES; 280 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 281 | STRIP_INSTALLED_PRODUCT = NO; 282 | SYMROOT = "${SRCROOT}/../build"; 283 | }; 284 | name = Debug; 285 | }; 286 | ED4FC68AB2A4E06C718CFF338F6F156B /* Release */ = { 287 | isa = XCBuildConfiguration; 288 | buildSettings = { 289 | ALWAYS_SEARCH_USER_PATHS = NO; 290 | CLANG_ANALYZER_NONNULL = YES; 291 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 292 | CLANG_CXX_LIBRARY = "libc++"; 293 | CLANG_ENABLE_MODULES = YES; 294 | CLANG_ENABLE_OBJC_ARC = YES; 295 | CLANG_WARN_BOOL_CONVERSION = YES; 296 | CLANG_WARN_CONSTANT_CONVERSION = YES; 297 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 298 | CLANG_WARN_EMPTY_BODY = YES; 299 | CLANG_WARN_ENUM_CONVERSION = YES; 300 | CLANG_WARN_INT_CONVERSION = YES; 301 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 302 | CLANG_WARN_UNREACHABLE_CODE = YES; 303 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 304 | CODE_SIGNING_REQUIRED = NO; 305 | COPY_PHASE_STRIP = YES; 306 | ENABLE_NS_ASSERTIONS = NO; 307 | GCC_C_LANGUAGE_STANDARD = gnu99; 308 | GCC_PREPROCESSOR_DEFINITIONS = ( 309 | "POD_CONFIGURATION_RELEASE=1", 310 | "$(inherited)", 311 | ); 312 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 313 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 314 | GCC_WARN_UNDECLARED_SELECTOR = YES; 315 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 316 | GCC_WARN_UNUSED_FUNCTION = YES; 317 | GCC_WARN_UNUSED_VARIABLE = YES; 318 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 319 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 320 | STRIP_INSTALLED_PRODUCT = NO; 321 | SYMROOT = "${SRCROOT}/../build"; 322 | VALIDATE_PRODUCT = YES; 323 | }; 324 | name = Release; 325 | }; 326 | /* End XCBuildConfiguration section */ 327 | 328 | /* Begin XCConfigurationList section */ 329 | 124441ABE51EBD1FF671E28E39337F0C /* Build configuration list for PBXNativeTarget "Pods-CPConfettiViewExample" */ = { 330 | isa = XCConfigurationList; 331 | buildConfigurations = ( 332 | 1AAD37DCF471C01E5C9065B785FA021F /* Debug */, 333 | C89E8923CB5F2D8849D7EFBC863A2595 /* Release */, 334 | ); 335 | defaultConfigurationIsVisible = 0; 336 | defaultConfigurationName = Release; 337 | }; 338 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 339 | isa = XCConfigurationList; 340 | buildConfigurations = ( 341 | CACE7C8415F53E79F07C6BBE57F0F61D /* Debug */, 342 | ED4FC68AB2A4E06C718CFF338F6F156B /* Release */, 343 | ); 344 | defaultConfigurationIsVisible = 0; 345 | defaultConfigurationName = Release; 346 | }; 347 | /* End XCConfigurationList section */ 348 | }; 349 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 350 | } 351 | -------------------------------------------------------------------------------- /Example/CPConfettiViewExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0279B45AD2110BB1A2885A34 /* Pods_CPConfettiViewExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D8C134C5DE14BF5EE2D17E63 /* Pods_CPConfettiViewExample.framework */; }; 11 | 513E6F371E69671F00686F49 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513E6F361E69671F00686F49 /* AppDelegate.swift */; }; 12 | 513E6F391E69671F00686F49 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513E6F381E69671F00686F49 /* ViewController.swift */; }; 13 | 513E6F3C1E69671F00686F49 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 513E6F3A1E69671F00686F49 /* Main.storyboard */; }; 14 | 513E6F3E1E69671F00686F49 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 513E6F3D1E69671F00686F49 /* Assets.xcassets */; }; 15 | 513E6F411E69671F00686F49 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 513E6F3F1E69671F00686F49 /* LaunchScreen.storyboard */; }; 16 | 513E6F5B1E6968F000686F49 /* CPConfettiView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513E6F5A1E6968F000686F49 /* CPConfettiView.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 06DFDBC2A3335A0584ED7010 /* Pods-CPConfettiViewExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CPConfettiViewExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.debug.xcconfig"; sourceTree = ""; }; 21 | 34DEA0BFF8C4A6F3037EE999 /* Pods-CPConfettiViewExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CPConfettiViewExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample.release.xcconfig"; sourceTree = ""; }; 22 | 513E6F331E69671F00686F49 /* CPConfettiViewExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CPConfettiViewExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 513E6F361E69671F00686F49 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | 513E6F381E69671F00686F49 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 25 | 513E6F3B1E69671F00686F49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | 513E6F3D1E69671F00686F49 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | 513E6F401E69671F00686F49 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 28 | 513E6F421E69671F00686F49 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | 513E6F5A1E6968F000686F49 /* CPConfettiView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CPConfettiView.swift; sourceTree = ""; }; 30 | D8C134C5DE14BF5EE2D17E63 /* Pods_CPConfettiViewExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CPConfettiViewExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | /* End PBXFileReference section */ 32 | 33 | /* Begin PBXFrameworksBuildPhase section */ 34 | 513E6F301E69671F00686F49 /* Frameworks */ = { 35 | isa = PBXFrameworksBuildPhase; 36 | buildActionMask = 2147483647; 37 | files = ( 38 | 0279B45AD2110BB1A2885A34 /* Pods_CPConfettiViewExample.framework in Frameworks */, 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 02B83B6AB9DB105797349317 /* Frameworks */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | D8C134C5DE14BF5EE2D17E63 /* Pods_CPConfettiViewExample.framework */, 49 | ); 50 | name = Frameworks; 51 | sourceTree = ""; 52 | }; 53 | 513E6F2A1E69671F00686F49 = { 54 | isa = PBXGroup; 55 | children = ( 56 | 513E6F351E69671F00686F49 /* CPConfettiViewExample */, 57 | 513E6F341E69671F00686F49 /* Products */, 58 | 581D15B03ED54CB0A0087F19 /* Pods */, 59 | 02B83B6AB9DB105797349317 /* Frameworks */, 60 | ); 61 | sourceTree = ""; 62 | }; 63 | 513E6F341E69671F00686F49 /* Products */ = { 64 | isa = PBXGroup; 65 | children = ( 66 | 513E6F331E69671F00686F49 /* CPConfettiViewExample.app */, 67 | ); 68 | name = Products; 69 | sourceTree = ""; 70 | }; 71 | 513E6F351E69671F00686F49 /* CPConfettiViewExample */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 513E6F481E69674100686F49 /* CPConfettiView */, 75 | 513E6F361E69671F00686F49 /* AppDelegate.swift */, 76 | 513E6F381E69671F00686F49 /* ViewController.swift */, 77 | 513E6F3A1E69671F00686F49 /* Main.storyboard */, 78 | 513E6F3D1E69671F00686F49 /* Assets.xcassets */, 79 | 513E6F3F1E69671F00686F49 /* LaunchScreen.storyboard */, 80 | 513E6F421E69671F00686F49 /* Info.plist */, 81 | ); 82 | path = CPConfettiViewExample; 83 | sourceTree = ""; 84 | }; 85 | 513E6F481E69674100686F49 /* CPConfettiView */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | 513E6F491E6967AD00686F49 /* CPConfettiView */, 89 | ); 90 | path = CPConfettiView; 91 | sourceTree = ""; 92 | }; 93 | 513E6F491E6967AD00686F49 /* CPConfettiView */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 513E6F531E6968C300686F49 /* Classes */, 97 | ); 98 | name = CPConfettiView; 99 | sourceTree = ""; 100 | }; 101 | 513E6F531E6968C300686F49 /* Classes */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 513E6F5A1E6968F000686F49 /* CPConfettiView.swift */, 105 | ); 106 | path = Classes; 107 | sourceTree = ""; 108 | }; 109 | 581D15B03ED54CB0A0087F19 /* Pods */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 06DFDBC2A3335A0584ED7010 /* Pods-CPConfettiViewExample.debug.xcconfig */, 113 | 34DEA0BFF8C4A6F3037EE999 /* Pods-CPConfettiViewExample.release.xcconfig */, 114 | ); 115 | name = Pods; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | 513E6F321E69671F00686F49 /* CPConfettiViewExample */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = 513E6F451E69671F00686F49 /* Build configuration list for PBXNativeTarget "CPConfettiViewExample" */; 124 | buildPhases = ( 125 | 7546A8E53B42C35EFD957909 /* [CP] Check Pods Manifest.lock */, 126 | 513E6F2F1E69671F00686F49 /* Sources */, 127 | 513E6F301E69671F00686F49 /* Frameworks */, 128 | 513E6F311E69671F00686F49 /* Resources */, 129 | A1D74506245971A783FBBC09 /* [CP] Embed Pods Frameworks */, 130 | F9328D74566548C79A34BA77 /* [CP] Copy Pods Resources */, 131 | ); 132 | buildRules = ( 133 | ); 134 | dependencies = ( 135 | ); 136 | name = CPConfettiViewExample; 137 | productName = CPConfettiViewExample; 138 | productReference = 513E6F331E69671F00686F49 /* CPConfettiViewExample.app */; 139 | productType = "com.apple.product-type.application"; 140 | }; 141 | /* End PBXNativeTarget section */ 142 | 143 | /* Begin PBXProject section */ 144 | 513E6F2B1E69671F00686F49 /* Project object */ = { 145 | isa = PBXProject; 146 | attributes = { 147 | LastSwiftUpdateCheck = 0810; 148 | LastUpgradeCheck = 0810; 149 | ORGANIZATIONNAME = "Vo Nguyen Chi Phuong"; 150 | TargetAttributes = { 151 | 513E6F321E69671F00686F49 = { 152 | CreatedOnToolsVersion = 8.1; 153 | DevelopmentTeam = G634GDT76N; 154 | ProvisioningStyle = Automatic; 155 | }; 156 | }; 157 | }; 158 | buildConfigurationList = 513E6F2E1E69671F00686F49 /* Build configuration list for PBXProject "CPConfettiViewExample" */; 159 | compatibilityVersion = "Xcode 3.2"; 160 | developmentRegion = English; 161 | hasScannedForEncodings = 0; 162 | knownRegions = ( 163 | en, 164 | Base, 165 | ); 166 | mainGroup = 513E6F2A1E69671F00686F49; 167 | productRefGroup = 513E6F341E69671F00686F49 /* Products */; 168 | projectDirPath = ""; 169 | projectRoot = ""; 170 | targets = ( 171 | 513E6F321E69671F00686F49 /* CPConfettiViewExample */, 172 | ); 173 | }; 174 | /* End PBXProject section */ 175 | 176 | /* Begin PBXResourcesBuildPhase section */ 177 | 513E6F311E69671F00686F49 /* Resources */ = { 178 | isa = PBXResourcesBuildPhase; 179 | buildActionMask = 2147483647; 180 | files = ( 181 | 513E6F411E69671F00686F49 /* LaunchScreen.storyboard in Resources */, 182 | 513E6F3E1E69671F00686F49 /* Assets.xcassets in Resources */, 183 | 513E6F3C1E69671F00686F49 /* Main.storyboard in Resources */, 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | }; 187 | /* End PBXResourcesBuildPhase section */ 188 | 189 | /* Begin PBXShellScriptBuildPhase section */ 190 | 7546A8E53B42C35EFD957909 /* [CP] Check Pods Manifest.lock */ = { 191 | isa = PBXShellScriptBuildPhase; 192 | buildActionMask = 2147483647; 193 | files = ( 194 | ); 195 | inputPaths = ( 196 | ); 197 | name = "[CP] Check Pods Manifest.lock"; 198 | outputPaths = ( 199 | ); 200 | runOnlyForDeploymentPostprocessing = 0; 201 | shellPath = /bin/sh; 202 | 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"; 203 | showEnvVarsInLog = 0; 204 | }; 205 | A1D74506245971A783FBBC09 /* [CP] Embed Pods Frameworks */ = { 206 | isa = PBXShellScriptBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | inputPaths = ( 211 | ); 212 | name = "[CP] Embed Pods Frameworks"; 213 | outputPaths = ( 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | shellPath = /bin/sh; 217 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-frameworks.sh\"\n"; 218 | showEnvVarsInLog = 0; 219 | }; 220 | F9328D74566548C79A34BA77 /* [CP] Copy Pods Resources */ = { 221 | isa = PBXShellScriptBuildPhase; 222 | buildActionMask = 2147483647; 223 | files = ( 224 | ); 225 | inputPaths = ( 226 | ); 227 | name = "[CP] Copy Pods Resources"; 228 | outputPaths = ( 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | shellPath = /bin/sh; 232 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-CPConfettiViewExample/Pods-CPConfettiViewExample-resources.sh\"\n"; 233 | showEnvVarsInLog = 0; 234 | }; 235 | /* End PBXShellScriptBuildPhase section */ 236 | 237 | /* Begin PBXSourcesBuildPhase section */ 238 | 513E6F2F1E69671F00686F49 /* Sources */ = { 239 | isa = PBXSourcesBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 513E6F391E69671F00686F49 /* ViewController.swift in Sources */, 243 | 513E6F371E69671F00686F49 /* AppDelegate.swift in Sources */, 244 | 513E6F5B1E6968F000686F49 /* CPConfettiView.swift in Sources */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | /* End PBXSourcesBuildPhase section */ 249 | 250 | /* Begin PBXVariantGroup section */ 251 | 513E6F3A1E69671F00686F49 /* Main.storyboard */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | 513E6F3B1E69671F00686F49 /* Base */, 255 | ); 256 | name = Main.storyboard; 257 | sourceTree = ""; 258 | }; 259 | 513E6F3F1E69671F00686F49 /* LaunchScreen.storyboard */ = { 260 | isa = PBXVariantGroup; 261 | children = ( 262 | 513E6F401E69671F00686F49 /* Base */, 263 | ); 264 | name = LaunchScreen.storyboard; 265 | sourceTree = ""; 266 | }; 267 | /* End PBXVariantGroup section */ 268 | 269 | /* Begin XCBuildConfiguration section */ 270 | 513E6F431E69671F00686F49 /* Debug */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ALWAYS_SEARCH_USER_PATHS = NO; 274 | CLANG_ANALYZER_NONNULL = YES; 275 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 276 | CLANG_CXX_LIBRARY = "libc++"; 277 | CLANG_ENABLE_MODULES = YES; 278 | CLANG_ENABLE_OBJC_ARC = YES; 279 | CLANG_WARN_BOOL_CONVERSION = YES; 280 | CLANG_WARN_CONSTANT_CONVERSION = YES; 281 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 282 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 283 | CLANG_WARN_EMPTY_BODY = YES; 284 | CLANG_WARN_ENUM_CONVERSION = YES; 285 | CLANG_WARN_INFINITE_RECURSION = YES; 286 | CLANG_WARN_INT_CONVERSION = YES; 287 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 288 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = dwarf; 294 | ENABLE_STRICT_OBJC_MSGSEND = YES; 295 | ENABLE_TESTABILITY = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_DYNAMIC_NO_PIC = NO; 298 | GCC_NO_COMMON_BLOCKS = YES; 299 | GCC_OPTIMIZATION_LEVEL = 0; 300 | GCC_PREPROCESSOR_DEFINITIONS = ( 301 | "DEBUG=1", 302 | "$(inherited)", 303 | ); 304 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 305 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 306 | GCC_WARN_UNDECLARED_SELECTOR = YES; 307 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 308 | GCC_WARN_UNUSED_FUNCTION = YES; 309 | GCC_WARN_UNUSED_VARIABLE = YES; 310 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 311 | MTL_ENABLE_DEBUG_INFO = YES; 312 | ONLY_ACTIVE_ARCH = YES; 313 | SDKROOT = iphoneos; 314 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 315 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 316 | }; 317 | name = Debug; 318 | }; 319 | 513E6F441E69671F00686F49 /* Release */ = { 320 | isa = XCBuildConfiguration; 321 | buildSettings = { 322 | ALWAYS_SEARCH_USER_PATHS = NO; 323 | CLANG_ANALYZER_NONNULL = YES; 324 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 325 | CLANG_CXX_LIBRARY = "libc++"; 326 | CLANG_ENABLE_MODULES = YES; 327 | CLANG_ENABLE_OBJC_ARC = YES; 328 | CLANG_WARN_BOOL_CONVERSION = YES; 329 | CLANG_WARN_CONSTANT_CONVERSION = YES; 330 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 331 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 332 | CLANG_WARN_EMPTY_BODY = YES; 333 | CLANG_WARN_ENUM_CONVERSION = YES; 334 | CLANG_WARN_INFINITE_RECURSION = YES; 335 | CLANG_WARN_INT_CONVERSION = YES; 336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 337 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 338 | CLANG_WARN_UNREACHABLE_CODE = YES; 339 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 340 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 341 | COPY_PHASE_STRIP = NO; 342 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 343 | ENABLE_NS_ASSERTIONS = NO; 344 | ENABLE_STRICT_OBJC_MSGSEND = YES; 345 | GCC_C_LANGUAGE_STANDARD = gnu99; 346 | GCC_NO_COMMON_BLOCKS = YES; 347 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 348 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 349 | GCC_WARN_UNDECLARED_SELECTOR = YES; 350 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 351 | GCC_WARN_UNUSED_FUNCTION = YES; 352 | GCC_WARN_UNUSED_VARIABLE = YES; 353 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 354 | MTL_ENABLE_DEBUG_INFO = NO; 355 | SDKROOT = iphoneos; 356 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 357 | VALIDATE_PRODUCT = YES; 358 | }; 359 | name = Release; 360 | }; 361 | 513E6F461E69671F00686F49 /* Debug */ = { 362 | isa = XCBuildConfiguration; 363 | baseConfigurationReference = 06DFDBC2A3335A0584ED7010 /* Pods-CPConfettiViewExample.debug.xcconfig */; 364 | buildSettings = { 365 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 366 | DEVELOPMENT_TEAM = G634GDT76N; 367 | INFOPLIST_FILE = CPConfettiViewExample/Info.plist; 368 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 370 | PRODUCT_BUNDLE_IDENTIFIER = "cp.dev.-"; 371 | PRODUCT_NAME = "$(TARGET_NAME)"; 372 | SWIFT_VERSION = 3.0; 373 | }; 374 | name = Debug; 375 | }; 376 | 513E6F471E69671F00686F49 /* Release */ = { 377 | isa = XCBuildConfiguration; 378 | baseConfigurationReference = 34DEA0BFF8C4A6F3037EE999 /* Pods-CPConfettiViewExample.release.xcconfig */; 379 | buildSettings = { 380 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 381 | DEVELOPMENT_TEAM = G634GDT76N; 382 | INFOPLIST_FILE = CPConfettiViewExample/Info.plist; 383 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 384 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 385 | PRODUCT_BUNDLE_IDENTIFIER = "cp.dev.-"; 386 | PRODUCT_NAME = "$(TARGET_NAME)"; 387 | SWIFT_VERSION = 3.0; 388 | }; 389 | name = Release; 390 | }; 391 | /* End XCBuildConfiguration section */ 392 | 393 | /* Begin XCConfigurationList section */ 394 | 513E6F2E1E69671F00686F49 /* Build configuration list for PBXProject "CPConfettiViewExample" */ = { 395 | isa = XCConfigurationList; 396 | buildConfigurations = ( 397 | 513E6F431E69671F00686F49 /* Debug */, 398 | 513E6F441E69671F00686F49 /* Release */, 399 | ); 400 | defaultConfigurationIsVisible = 0; 401 | defaultConfigurationName = Release; 402 | }; 403 | 513E6F451E69671F00686F49 /* Build configuration list for PBXNativeTarget "CPConfettiViewExample" */ = { 404 | isa = XCConfigurationList; 405 | buildConfigurations = ( 406 | 513E6F461E69671F00686F49 /* Debug */, 407 | 513E6F471E69671F00686F49 /* Release */, 408 | ); 409 | defaultConfigurationIsVisible = 0; 410 | defaultConfigurationName = Release; 411 | }; 412 | /* End XCConfigurationList section */ 413 | }; 414 | rootObject = 513E6F2B1E69671F00686F49 /* Project object */; 415 | } 416 | --------------------------------------------------------------------------------