├── .swift-version ├── Package.swift ├── Example ├── Assets.xcassets │ ├── Contents.json │ ├── Bat.imageset │ │ ├── Bat.pdf │ │ └── Contents.json │ ├── Box.imageset │ │ ├── Box.png │ │ └── Contents.json │ ├── Circle.imageset │ │ ├── Circle.png │ │ └── Contents.json │ ├── Pumpkin.imageset │ │ ├── Pumpkin.pdf │ │ └── Contents.json │ ├── Spiral.imageset │ │ ├── Spiral.png │ │ └── Contents.json │ ├── Triangle.imageset │ │ ├── Triangle.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.swift └── ViewController.swift ├── CHANGELOG.md ├── Confetti.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── Sources ├── Confetti.swift ├── Confetti.h └── Info.plist ├── Confetti.podspec ├── .github ├── PULL_REQUEST_TEMPLATE.md ├── ISSUE_TEMPLATE.md ├── CONTRIBUTING.md └── CODE_OF_CONDUCT.md ├── README.md ├── LICENSE └── .gitignore /.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | import PackageDescription 2 | 3 | let package = Package(name: "Confetti") 4 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Bat.imageset/Bat.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Bat.imageset/Bat.pdf -------------------------------------------------------------------------------- /Example/Assets.xcassets/Box.imageset/Box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Box.imageset/Box.png -------------------------------------------------------------------------------- /Example/Assets.xcassets/Circle.imageset/Circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Circle.imageset/Circle.png -------------------------------------------------------------------------------- /Example/Assets.xcassets/Pumpkin.imageset/Pumpkin.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Pumpkin.imageset/Pumpkin.pdf -------------------------------------------------------------------------------- /Example/Assets.xcassets/Spiral.imageset/Spiral.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Spiral.imageset/Spiral.png -------------------------------------------------------------------------------- /Example/Assets.xcassets/Triangle.imageset/Triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/efremidze/Confetti/HEAD/Example/Assets.xcassets/Triangle.imageset/Triangle.png -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change log 2 | 3 | ## [Version 0.0.1](https://github.com/efremidze/Confetti/releases/tag/0.0.1) 4 | Released on 2017-10-18 5 | 6 | - Created Project 7 | -------------------------------------------------------------------------------- /Confetti.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Sources/Confetti.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Confetti.swift 3 | // Confetti 4 | // 5 | // Created by Lasha Efremidze on 10/19/17. 6 | // Copyright © 2017 Lasha Efremidze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct Confetti {} 12 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/Bat.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Bat.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Pumpkin.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Pumpkin.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Box.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Box.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Circle.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Circle.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Spiral.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Spiral.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /Example/Assets.xcassets/Triangle.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Triangle.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /Confetti.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'Confetti' 3 | s.version = '0.0.1' 4 | s.summary = 'Easy Particle Emitter' 5 | s.homepage = 'https://github.com/efremidze/Confetti' 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } 7 | s.author = { 'efremidze' => 'efremidzel@hotmail.com' } 8 | s.source = { :git => 'https://github.com/efremidze/Confetti.git', :tag => s.version.to_s } 9 | s.ios.deployment_target = '8.0' 10 | s.source_files = 'Sources/*.swift' 11 | end 12 | -------------------------------------------------------------------------------- /Sources/Confetti.h: -------------------------------------------------------------------------------- 1 | // 2 | // Confetti.h 3 | // Confetti 4 | // 5 | // Created by Lasha Efremidze on 10/18/17. 6 | // Copyright © 2017 Lasha Efremidze. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for Confetti. 12 | FOUNDATION_EXPORT double ConfettiVersionNumber; 13 | 14 | //! Project version string for Confetti. 15 | FOUNDATION_EXPORT const unsigned char ConfettiVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### Checklist 4 | - [ ] I've tested my changes. 5 | - [ ] I've read the [Contribution Guidelines](CONTRIBUTING.md). 6 | - [ ] I've updated the documentation if necessary. 7 | 8 | ### Motivation and Context 9 | 10 | 11 | 12 | 13 | 14 | ### Description 15 | 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Confetti 2 | 3 | ## Installation 4 | 5 | ### CocoaPods 6 | To install with [CocoaPods](http://cocoapods.org/), simply add this in your `Podfile`: 7 | ```ruby 8 | use_frameworks! 9 | pod "Confetti" 10 | ``` 11 | 12 | ### Carthage 13 | To install with [Carthage](https://github.com/Carthage/Carthage), simply add this in your `Cartfile`: 14 | ```ruby 15 | github "efremidze/Confetti" 16 | ``` 17 | 18 | ## Communication 19 | 20 | - If you **found a bug**, open an issue. 21 | - If you **have a feature request**, open an issue. 22 | - If you **want to contribute**, submit a pull request. 23 | 24 | ## Credits 25 | 26 | https://github.com/DanielMartinus/Konfetti 27 | 28 | ## License 29 | 30 | Confetti is available under the MIT license. See the LICENSE file for more info. 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### New Issue Checklist 4 | 5 | 6 | - [ ] I updated Confetti to the latest version. 7 | - [ ] I read the [Contribution Guidelines](https://github.com/efremidze/Confetti/blob/master/.github/CONTRIBUTING.md). 8 | - [ ] I read the [documentation](https://github.com/efremidze/Confetti). 9 | - [ ] I searched for [existing GitHub issues](https://github.com/efremidze/Confetti/issues). 10 | 11 | ### Issue Description 12 | 13 | 14 | 15 | ### Environment 16 | 17 | - **iOS Version**: [INSERT iOS VERSION HERE] 18 | - **Device(s)**: [INSERT DEVICE(S) HERE] 19 | -------------------------------------------------------------------------------- /Sources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.0.1 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Lasha Efremidze 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 | -------------------------------------------------------------------------------- /.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 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | # Package.pins 40 | .build/ 41 | 42 | # CocoaPods 43 | # 44 | # We recommend against adding the Pods directory to your .gitignore. However 45 | # you should judge for yourself, the pros and cons are mentioned at: 46 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 47 | # 48 | # Pods/ 49 | 50 | # Carthage 51 | # 52 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 53 | # Carthage/Checkouts 54 | 55 | Carthage/Build 56 | 57 | # fastlane 58 | # 59 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 60 | # screenshots whenever they are needed. 61 | # For more information about the recommended setup visit: 62 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 63 | 64 | fastlane/report.xml 65 | fastlane/Preview.html 66 | fastlane/screenshots 67 | fastlane/test_output 68 | -------------------------------------------------------------------------------- /Example/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Example/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Example/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Lasha Efremidze on 10/18/17. 6 | // Copyright © 2017 Lasha Efremidze. 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 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to _Confetti_ 2 | 3 | The following is a set of guidelines for contributing to _Confetti_ on GitHub. 4 | 5 | > Above all, thank you for your interest in the project and for taking the time to contribute! 👍 6 | 7 | ## I want to report a problem or ask a question 8 | 9 | Before submitting a new GitHub issue, please make sure to 10 | 11 | - Check out the [documentation](https://github.com/efremidze/Confetti). 12 | - Read the usage guide on [the README](https://github.com/efremidze/Confetti/#usage). 13 | - Search for [existing GitHub issues](https://github.com/efremidze/Confetti/issues). 14 | 15 | If the above doesn't help, please [submit an issue](https://github.com/efremidze/Confetti/issues) on GitHub. 16 | 17 | ## I want to contribute to _Confetti_ 18 | 19 | ### Prerequisites 20 | 21 | To develop _Confetti_, you will need to use an Xcode version compatible with the Swift version specified in the [README](https://github.com/efremidze/Confetti/#requirements). 22 | 23 | ### Checking out the repository 24 | 25 | - Click the “Fork” button in the upper right corner of repo 26 | - Clone your fork: 27 | - `git clone https://github.com//Confetti.git` 28 | - Create a new branch to work on: 29 | - `git checkout -b ` 30 | - A good name for a branch describes the thing you’ll be working on, e.g. `voice-over`, `fix-font-size`, etc. 31 | 32 | That’s it! Now you’re ready to work on _Confetti_. Open the `Confetti.xcworkspace` workspace to start coding. 33 | 34 | ### Things to keep in mind 35 | 36 | - Please do not change the minimum iOS version 37 | - Always document new public methods and properties 38 | 39 | ### Testing your local changes 40 | 41 | Before opening a pull request, please make sure your changes don't break things. 42 | 43 | - The framework and example project should build without warnings 44 | - The example project should run without issues. 45 | 46 | ### Submitting the PR 47 | 48 | When the coding is done and you’ve finished testing your changes, you are ready to submit the PR to the [main repo](https://github.com/efremidze/Confetti). Some best practices are: 49 | 50 | - Use a descriptive title 51 | - Link the issues that are related to your PR in the body 52 | 53 | ## Code of Conduct 54 | 55 | Help us keep _Confetti_ open and inclusive. Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.md). 56 | 57 | ## License 58 | 59 | This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file. 60 | 61 | _These contribution guidelines were adapted from [_fastlane_](https://github.com/fastlane/fastlane) guides._ 62 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | ## Our Standards 8 | 9 | Examples of behavior that contributes to creating a positive environment include: 10 | 11 | * Using welcoming and inclusive language 12 | * Being respectful of differing viewpoints and experiences 13 | * Gracefully accepting constructive criticism 14 | * Focusing on what is best for the community 15 | * Showing empathy towards other community members 16 | 17 | Examples of unacceptable behavior by participants include: 18 | 19 | * The use of sexualized language or imagery and unwelcome sexual attention or advances 20 | * Trolling, insulting/derogatory comments, and personal or political attacks 21 | * Public or private harassment 22 | * Publishing others' private information, such as a physical or electronic address, without explicit permission 23 | * Other conduct which could reasonably be considered inappropriate in a professional setting 24 | 25 | ## Our Responsibilities 26 | 27 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. 28 | 29 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. 30 | 31 | ## Scope 32 | 33 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. 34 | 35 | ## Enforcement 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at efremidzel@hotmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. 38 | 39 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. 40 | 41 | ## Attribution 42 | 43 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] 44 | 45 | [homepage]: http://contributor-covenant.org 46 | [version]: http://contributor-covenant.org/version/1/4/ 47 | -------------------------------------------------------------------------------- /Example/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /Example/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Example 4 | // 5 | // Created by Lasha Efremidze on 10/18/17. 6 | // Copyright © 2017 Lasha Efremidze. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Confetti 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var confettiView: ConfettiView! 15 | 16 | @IBAction func tapped(sender: UITapGestureRecognizer) { 17 | confettiView.start([confettiView.cell(#imageLiteral(resourceName: "Pumpkin"), .orange), confettiView.cell(#imageLiteral(resourceName: "Bat"), .black)]) 18 | } 19 | 20 | } 21 | 22 | class ConfettiView: UIView { 23 | 24 | // func start() { 25 | // let emitter = CAEmitterLayer() 26 | // emitter.emitterPosition = CGPoint(x: frame.size.width / 2, y: 0) 27 | // emitter.emitterShape = kCAEmitterLayerLine 28 | // emitter.emitterSize = CGSize(width: frame.size.width, height: 1) 29 | // layer.addSublayer(emitter) 30 | // 31 | // emitter.emitterCells = UIColor.all.map { confetti(color: $0, intensity: 0.1, image: #imageLiteral(resourceName: "circle")) } 32 | // } 33 | 34 | // func stop() { 35 | // emitter.birthRate = 0 36 | // } 37 | 38 | // private func confetti(color: UIColor, intensity: Float, image: UIImage) -> CAEmitterCell { 39 | // let confetti = CAEmitterCell() 40 | // confetti.birthRate = 6.0 * intensity 41 | // confetti.lifetime = 14.0 * intensity 42 | // confetti.lifetimeRange = 0 43 | // confetti.color = color.cgColor 44 | // confetti.velocity = CGFloat(350.0 * intensity) 45 | // confetti.velocityRange = CGFloat(80.0 * intensity) 46 | // confetti.emissionLongitude = .pi 47 | // confetti.emissionRange = .pi / 4 48 | // confetti.spin = CGFloat(3.5 * intensity) 49 | // confetti.spinRange = CGFloat(4.0 * intensity) 50 | // confetti.scaleRange = CGFloat(intensity) 51 | // confetti.scaleSpeed = CGFloat(-0.1 * intensity) 52 | // confetti.contents = image.cgImage 53 | // return confetti 54 | // } 55 | 56 | // MARK: - 57 | 58 | func start(_ cells: [CAEmitterCell]) { 59 | let emitter = CAEmitterLayer() 60 | emitter.emitterPosition = CGPoint(x: frame.width / 2, y: 0) 61 | // emitter.emitterPosition = CGPoint(x: frame.width / 2, y: frame.height / 2) 62 | emitter.emitterSize = CGSize(width: frame.width, height: 1) 63 | // emitter.emitterSize = CGSize(width: 20, height: 20) 64 | emitter.emitterShape = kCAEmitterLayerLine 65 | // emitter.emitterShape = kCAEmitterLayerCircle 66 | // emitter.emitterMode = kCAEmitterLayerVolume 67 | // emitter.renderMode = kCAEmitterLayerAdditive 68 | emitter.renderMode = kCAEmitterLayerOldestFirst 69 | // emitter.seed = (arc4random() % 1000) + 1 70 | 71 | emitter.emitterCells = cells 72 | 73 | emitter.beginTime = CACurrentMediaTime() 74 | 75 | emitter.preservesDepth = true 76 | 77 | layer.addSublayer(emitter) 78 | } 79 | 80 | func cell(_ image: UIImage, _ color: UIColor) -> CAEmitterCell { 81 | let cell = CAEmitterCell() 82 | cell.birthRate = 10 83 | cell.lifetime = 7 84 | cell.lifetimeRange = 3 85 | cell.velocity = 175 86 | cell.velocityRange = 40 87 | cell.emissionLongitude = .pi 88 | cell.emissionRange = .pi / 4 89 | // cell.emissionRange = .pi * 2 90 | cell.spin = 2 91 | cell.spinRange = 2 92 | cell.scale = 0.15 93 | cell.scaleRange = 0.05 94 | cell.scaleSpeed = -0.01 95 | cell.contents = image.cgImage 96 | cell.color = color.cgColor 97 | return cell 98 | } 99 | 100 | } 101 | 102 | extension UIColor { 103 | convenience init(red: Int, green: Int, blue: Int) { 104 | self.init(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: 1) 105 | } 106 | class var red: UIColor { return UIColor(red: 255, green: 59, blue: 48) } 107 | class var orange: UIColor { return UIColor(red: 255, green: 149, blue: 0) } 108 | class var yellow: UIColor { return UIColor(red: 255, green: 204, blue: 0) } 109 | class var green: UIColor { return UIColor(red: 76, green: 217, blue: 100) } 110 | class var tealBlue: UIColor { return UIColor(red: 90, green: 200, blue: 250) } 111 | class var blue: UIColor { return UIColor(red: 0, green: 122, blue: 255) } 112 | class var purple: UIColor { return UIColor(red: 88, green: 86, blue: 214) } 113 | class var pink: UIColor { return UIColor(red: 255, green: 45, blue: 85) } 114 | static let all: [UIColor] = [red, orange, yellow, green, tealBlue, blue, purple, pink] 115 | } 116 | 117 | class StarsOverlay: UIView { 118 | override class var layerClass : AnyClass { 119 | return CAEmitterLayer.self 120 | } 121 | private var emitter: CAEmitterLayer { 122 | return layer as! CAEmitterLayer 123 | } 124 | private var particle: CAEmitterCell! 125 | func setup() { 126 | emitter.emitterMode = kCAEmitterLayerOutline 127 | emitter.emitterShape = kCAEmitterLayerCircle 128 | emitter.renderMode = kCAEmitterLayerOldestFirst 129 | emitter.preservesDepth = true 130 | 131 | particle = CAEmitterCell() 132 | 133 | particle.contents = UIImage(named: "spark")!.cgImage 134 | particle.birthRate = 10 135 | 136 | particle.lifetime = 50 137 | particle.lifetimeRange = 5 138 | 139 | particle.velocity = 20 140 | particle.velocityRange = 10 141 | 142 | particle.scale = 0.02 143 | particle.scaleRange = 0.1 144 | particle.scaleSpeed = 0.02 145 | 146 | emitter.emitterCells = [particle] 147 | } 148 | 149 | var emitterTimer: Timer? 150 | override func didMoveToWindow() { 151 | super.didMoveToWindow() 152 | 153 | if self.window != nil { 154 | if emitterTimer == nil { 155 | emitterTimer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { [unowned self] timer in 156 | let sizeWidth = max(self.bounds.width, self.bounds.height) 157 | let radius = CGFloat(arc4random()).truncatingRemainder(dividingBy: sizeWidth) 158 | self.emitter.emitterSize = CGSize(width: radius, height: radius) 159 | self.particle.birthRate = 10 + sqrt(Float(radius)) 160 | } 161 | } 162 | } else if emitterTimer != nil { 163 | emitterTimer?.invalidate() 164 | emitterTimer = nil 165 | } 166 | } 167 | override func layoutSubviews() { 168 | super.layoutSubviews() 169 | emitter.emitterPosition = self.center 170 | emitter.emitterSize = self.bounds.size 171 | } 172 | } 173 | -------------------------------------------------------------------------------- /Confetti.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7121D7121F97FD3B00A6DAF3 /* Confetti.h in Headers */ = {isa = PBXBuildFile; fileRef = 7121D7101F97FD3B00A6DAF3 /* Confetti.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 714615CE1F97FD6A001F738C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 714615CD1F97FD6A001F738C /* AppDelegate.swift */; }; 12 | 714615D01F97FD6A001F738C /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 714615CF1F97FD6A001F738C /* ViewController.swift */; }; 13 | 714615D31F97FD6A001F738C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 714615D11F97FD6A001F738C /* Main.storyboard */; }; 14 | 714615D51F97FD6A001F738C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 714615D41F97FD6A001F738C /* Assets.xcassets */; }; 15 | 714615D81F97FD6A001F738C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 714615D61F97FD6A001F738C /* LaunchScreen.storyboard */; }; 16 | 7151FBC11F988DBE00FD918C /* Confetti.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7151FBC01F988DBE00FD918C /* Confetti.swift */; }; 17 | 71C2ADB61FA7BC06007B50B9 /* Confetti.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7121D70D1F97FD3B00A6DAF3 /* Confetti.framework */; }; 18 | 71C2ADB71FA7BC06007B50B9 /* Confetti.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 7121D70D1F97FD3B00A6DAF3 /* Confetti.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXContainerItemProxy section */ 22 | 71C2ADB81FA7BC06007B50B9 /* PBXContainerItemProxy */ = { 23 | isa = PBXContainerItemProxy; 24 | containerPortal = 7121D7041F97FD3B00A6DAF3 /* Project object */; 25 | proxyType = 1; 26 | remoteGlobalIDString = 7121D70C1F97FD3B00A6DAF3; 27 | remoteInfo = Confetti; 28 | }; 29 | /* End PBXContainerItemProxy section */ 30 | 31 | /* Begin PBXCopyFilesBuildPhase section */ 32 | 71C2ADBA1FA7BC06007B50B9 /* Embed Frameworks */ = { 33 | isa = PBXCopyFilesBuildPhase; 34 | buildActionMask = 2147483647; 35 | dstPath = ""; 36 | dstSubfolderSpec = 10; 37 | files = ( 38 | 71C2ADB71FA7BC06007B50B9 /* Confetti.framework in Embed Frameworks */, 39 | ); 40 | name = "Embed Frameworks"; 41 | runOnlyForDeploymentPostprocessing = 0; 42 | }; 43 | /* End PBXCopyFilesBuildPhase section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 7121D70D1F97FD3B00A6DAF3 /* Confetti.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Confetti.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 7121D7101F97FD3B00A6DAF3 /* Confetti.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Confetti.h; sourceTree = ""; }; 48 | 7121D7111F97FD3B00A6DAF3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | 714615CB1F97FD6A001F738C /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 714615CD1F97FD6A001F738C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 51 | 714615CF1F97FD6A001F738C /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 52 | 714615D21F97FD6A001F738C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 714615D41F97FD6A001F738C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 714615D71F97FD6A001F738C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 714615D91F97FD6A001F738C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 7151FBC01F988DBE00FD918C /* Confetti.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Confetti.swift; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | 7121D7091F97FD3B00A6DAF3 /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | 714615C81F97FD6A001F738C /* Frameworks */ = { 68 | isa = PBXFrameworksBuildPhase; 69 | buildActionMask = 2147483647; 70 | files = ( 71 | 71C2ADB61FA7BC06007B50B9 /* Confetti.framework in Frameworks */, 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 7121D7031F97FD3B00A6DAF3 = { 79 | isa = PBXGroup; 80 | children = ( 81 | 7121D70F1F97FD3B00A6DAF3 /* Confetti */, 82 | 714615CC1F97FD6A001F738C /* Example */, 83 | 7121D70E1F97FD3B00A6DAF3 /* Products */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 7121D70E1F97FD3B00A6DAF3 /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 7121D70D1F97FD3B00A6DAF3 /* Confetti.framework */, 91 | 714615CB1F97FD6A001F738C /* Example.app */, 92 | ); 93 | name = Products; 94 | sourceTree = ""; 95 | }; 96 | 7121D70F1F97FD3B00A6DAF3 /* Confetti */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 7121D7101F97FD3B00A6DAF3 /* Confetti.h */, 100 | 7151FBC01F988DBE00FD918C /* Confetti.swift */, 101 | 7121D7111F97FD3B00A6DAF3 /* Info.plist */, 102 | ); 103 | name = Confetti; 104 | path = Sources; 105 | sourceTree = ""; 106 | }; 107 | 714615CC1F97FD6A001F738C /* Example */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 714615CD1F97FD6A001F738C /* AppDelegate.swift */, 111 | 714615CF1F97FD6A001F738C /* ViewController.swift */, 112 | 714615D11F97FD6A001F738C /* Main.storyboard */, 113 | 714615D41F97FD6A001F738C /* Assets.xcassets */, 114 | 714615D61F97FD6A001F738C /* LaunchScreen.storyboard */, 115 | 714615D91F97FD6A001F738C /* Info.plist */, 116 | ); 117 | path = Example; 118 | sourceTree = ""; 119 | }; 120 | /* End PBXGroup section */ 121 | 122 | /* Begin PBXHeadersBuildPhase section */ 123 | 7121D70A1F97FD3B00A6DAF3 /* Headers */ = { 124 | isa = PBXHeadersBuildPhase; 125 | buildActionMask = 2147483647; 126 | files = ( 127 | 7121D7121F97FD3B00A6DAF3 /* Confetti.h in Headers */, 128 | ); 129 | runOnlyForDeploymentPostprocessing = 0; 130 | }; 131 | /* End PBXHeadersBuildPhase section */ 132 | 133 | /* Begin PBXNativeTarget section */ 134 | 7121D70C1F97FD3B00A6DAF3 /* Confetti */ = { 135 | isa = PBXNativeTarget; 136 | buildConfigurationList = 7121D7151F97FD3B00A6DAF3 /* Build configuration list for PBXNativeTarget "Confetti" */; 137 | buildPhases = ( 138 | 7121D7081F97FD3B00A6DAF3 /* Sources */, 139 | 7121D7091F97FD3B00A6DAF3 /* Frameworks */, 140 | 7121D70A1F97FD3B00A6DAF3 /* Headers */, 141 | 7121D70B1F97FD3B00A6DAF3 /* Resources */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = Confetti; 148 | productName = Confetti; 149 | productReference = 7121D70D1F97FD3B00A6DAF3 /* Confetti.framework */; 150 | productType = "com.apple.product-type.framework"; 151 | }; 152 | 714615CA1F97FD6A001F738C /* Example */ = { 153 | isa = PBXNativeTarget; 154 | buildConfigurationList = 714615DC1F97FD6A001F738C /* Build configuration list for PBXNativeTarget "Example" */; 155 | buildPhases = ( 156 | 714615C71F97FD6A001F738C /* Sources */, 157 | 714615C81F97FD6A001F738C /* Frameworks */, 158 | 714615C91F97FD6A001F738C /* Resources */, 159 | 71C2ADBA1FA7BC06007B50B9 /* Embed Frameworks */, 160 | ); 161 | buildRules = ( 162 | ); 163 | dependencies = ( 164 | 71C2ADB91FA7BC06007B50B9 /* PBXTargetDependency */, 165 | ); 166 | name = Example; 167 | productName = Example; 168 | productReference = 714615CB1F97FD6A001F738C /* Example.app */; 169 | productType = "com.apple.product-type.application"; 170 | }; 171 | /* End PBXNativeTarget section */ 172 | 173 | /* Begin PBXProject section */ 174 | 7121D7041F97FD3B00A6DAF3 /* Project object */ = { 175 | isa = PBXProject; 176 | attributes = { 177 | LastSwiftUpdateCheck = 0900; 178 | LastUpgradeCheck = 0900; 179 | ORGANIZATIONNAME = "Lasha Efremidze"; 180 | TargetAttributes = { 181 | 7121D70C1F97FD3B00A6DAF3 = { 182 | CreatedOnToolsVersion = 9.0.1; 183 | LastSwiftMigration = 0900; 184 | ProvisioningStyle = Automatic; 185 | }; 186 | 714615CA1F97FD6A001F738C = { 187 | CreatedOnToolsVersion = 9.0.1; 188 | ProvisioningStyle = Automatic; 189 | }; 190 | }; 191 | }; 192 | buildConfigurationList = 7121D7071F97FD3B00A6DAF3 /* Build configuration list for PBXProject "Confetti" */; 193 | compatibilityVersion = "Xcode 8.0"; 194 | developmentRegion = en; 195 | hasScannedForEncodings = 0; 196 | knownRegions = ( 197 | en, 198 | Base, 199 | ); 200 | mainGroup = 7121D7031F97FD3B00A6DAF3; 201 | productRefGroup = 7121D70E1F97FD3B00A6DAF3 /* Products */; 202 | projectDirPath = ""; 203 | projectRoot = ""; 204 | targets = ( 205 | 7121D70C1F97FD3B00A6DAF3 /* Confetti */, 206 | 714615CA1F97FD6A001F738C /* Example */, 207 | ); 208 | }; 209 | /* End PBXProject section */ 210 | 211 | /* Begin PBXResourcesBuildPhase section */ 212 | 7121D70B1F97FD3B00A6DAF3 /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | 714615C91F97FD6A001F738C /* Resources */ = { 220 | isa = PBXResourcesBuildPhase; 221 | buildActionMask = 2147483647; 222 | files = ( 223 | 714615D81F97FD6A001F738C /* LaunchScreen.storyboard in Resources */, 224 | 714615D51F97FD6A001F738C /* Assets.xcassets in Resources */, 225 | 714615D31F97FD6A001F738C /* Main.storyboard in Resources */, 226 | ); 227 | runOnlyForDeploymentPostprocessing = 0; 228 | }; 229 | /* End PBXResourcesBuildPhase section */ 230 | 231 | /* Begin PBXSourcesBuildPhase section */ 232 | 7121D7081F97FD3B00A6DAF3 /* Sources */ = { 233 | isa = PBXSourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 7151FBC11F988DBE00FD918C /* Confetti.swift in Sources */, 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | }; 240 | 714615C71F97FD6A001F738C /* Sources */ = { 241 | isa = PBXSourcesBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | 714615D01F97FD6A001F738C /* ViewController.swift in Sources */, 245 | 714615CE1F97FD6A001F738C /* AppDelegate.swift in Sources */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | /* End PBXSourcesBuildPhase section */ 250 | 251 | /* Begin PBXTargetDependency section */ 252 | 71C2ADB91FA7BC06007B50B9 /* PBXTargetDependency */ = { 253 | isa = PBXTargetDependency; 254 | target = 7121D70C1F97FD3B00A6DAF3 /* Confetti */; 255 | targetProxy = 71C2ADB81FA7BC06007B50B9 /* PBXContainerItemProxy */; 256 | }; 257 | /* End PBXTargetDependency section */ 258 | 259 | /* Begin PBXVariantGroup section */ 260 | 714615D11F97FD6A001F738C /* Main.storyboard */ = { 261 | isa = PBXVariantGroup; 262 | children = ( 263 | 714615D21F97FD6A001F738C /* Base */, 264 | ); 265 | name = Main.storyboard; 266 | sourceTree = ""; 267 | }; 268 | 714615D61F97FD6A001F738C /* LaunchScreen.storyboard */ = { 269 | isa = PBXVariantGroup; 270 | children = ( 271 | 714615D71F97FD6A001F738C /* Base */, 272 | ); 273 | name = LaunchScreen.storyboard; 274 | sourceTree = ""; 275 | }; 276 | /* End PBXVariantGroup section */ 277 | 278 | /* Begin XCBuildConfiguration section */ 279 | 7121D7131F97FD3B00A6DAF3 /* Debug */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | ALWAYS_SEARCH_USER_PATHS = NO; 283 | CLANG_ANALYZER_NONNULL = YES; 284 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 285 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 286 | CLANG_CXX_LIBRARY = "libc++"; 287 | CLANG_ENABLE_MODULES = YES; 288 | CLANG_ENABLE_OBJC_ARC = YES; 289 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 290 | CLANG_WARN_BOOL_CONVERSION = YES; 291 | CLANG_WARN_COMMA = YES; 292 | CLANG_WARN_CONSTANT_CONVERSION = YES; 293 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 294 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 295 | CLANG_WARN_EMPTY_BODY = YES; 296 | CLANG_WARN_ENUM_CONVERSION = YES; 297 | CLANG_WARN_INFINITE_RECURSION = YES; 298 | CLANG_WARN_INT_CONVERSION = YES; 299 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 300 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 301 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 302 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 303 | CLANG_WARN_STRICT_PROTOTYPES = YES; 304 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 305 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 306 | CLANG_WARN_UNREACHABLE_CODE = YES; 307 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 308 | CODE_SIGN_IDENTITY = "iPhone Developer"; 309 | COPY_PHASE_STRIP = NO; 310 | CURRENT_PROJECT_VERSION = 1; 311 | DEBUG_INFORMATION_FORMAT = dwarf; 312 | ENABLE_STRICT_OBJC_MSGSEND = YES; 313 | ENABLE_TESTABILITY = YES; 314 | GCC_C_LANGUAGE_STANDARD = gnu11; 315 | GCC_DYNAMIC_NO_PIC = NO; 316 | GCC_NO_COMMON_BLOCKS = YES; 317 | GCC_OPTIMIZATION_LEVEL = 0; 318 | GCC_PREPROCESSOR_DEFINITIONS = ( 319 | "DEBUG=1", 320 | "$(inherited)", 321 | ); 322 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 323 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 324 | GCC_WARN_UNDECLARED_SELECTOR = YES; 325 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 326 | GCC_WARN_UNUSED_FUNCTION = YES; 327 | GCC_WARN_UNUSED_VARIABLE = YES; 328 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 329 | MTL_ENABLE_DEBUG_INFO = YES; 330 | ONLY_ACTIVE_ARCH = YES; 331 | SDKROOT = iphoneos; 332 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 333 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 334 | VERSIONING_SYSTEM = "apple-generic"; 335 | VERSION_INFO_PREFIX = ""; 336 | }; 337 | name = Debug; 338 | }; 339 | 7121D7141F97FD3B00A6DAF3 /* Release */ = { 340 | isa = XCBuildConfiguration; 341 | buildSettings = { 342 | ALWAYS_SEARCH_USER_PATHS = NO; 343 | CLANG_ANALYZER_NONNULL = YES; 344 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 345 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 346 | CLANG_CXX_LIBRARY = "libc++"; 347 | CLANG_ENABLE_MODULES = YES; 348 | CLANG_ENABLE_OBJC_ARC = YES; 349 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 350 | CLANG_WARN_BOOL_CONVERSION = YES; 351 | CLANG_WARN_COMMA = YES; 352 | CLANG_WARN_CONSTANT_CONVERSION = YES; 353 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 354 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 355 | CLANG_WARN_EMPTY_BODY = YES; 356 | CLANG_WARN_ENUM_CONVERSION = YES; 357 | CLANG_WARN_INFINITE_RECURSION = YES; 358 | CLANG_WARN_INT_CONVERSION = YES; 359 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 360 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 361 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 362 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 363 | CLANG_WARN_STRICT_PROTOTYPES = YES; 364 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 365 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 366 | CLANG_WARN_UNREACHABLE_CODE = YES; 367 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 368 | CODE_SIGN_IDENTITY = "iPhone Developer"; 369 | COPY_PHASE_STRIP = NO; 370 | CURRENT_PROJECT_VERSION = 1; 371 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 372 | ENABLE_NS_ASSERTIONS = NO; 373 | ENABLE_STRICT_OBJC_MSGSEND = YES; 374 | GCC_C_LANGUAGE_STANDARD = gnu11; 375 | GCC_NO_COMMON_BLOCKS = YES; 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 383 | MTL_ENABLE_DEBUG_INFO = NO; 384 | SDKROOT = iphoneos; 385 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 386 | VALIDATE_PRODUCT = YES; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | VERSION_INFO_PREFIX = ""; 389 | }; 390 | name = Release; 391 | }; 392 | 7121D7161F97FD3B00A6DAF3 /* Debug */ = { 393 | isa = XCBuildConfiguration; 394 | buildSettings = { 395 | CLANG_ENABLE_MODULES = YES; 396 | CODE_SIGN_IDENTITY = ""; 397 | CODE_SIGN_STYLE = Automatic; 398 | DEFINES_MODULE = YES; 399 | DYLIB_COMPATIBILITY_VERSION = 1; 400 | DYLIB_CURRENT_VERSION = 1; 401 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 402 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 403 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 404 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 405 | PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Confetti; 406 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 407 | SKIP_INSTALL = YES; 408 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 409 | SWIFT_VERSION = 4.0; 410 | TARGETED_DEVICE_FAMILY = "1,2"; 411 | }; 412 | name = Debug; 413 | }; 414 | 7121D7171F97FD3B00A6DAF3 /* Release */ = { 415 | isa = XCBuildConfiguration; 416 | buildSettings = { 417 | CLANG_ENABLE_MODULES = YES; 418 | CODE_SIGN_IDENTITY = ""; 419 | CODE_SIGN_STYLE = Automatic; 420 | DEFINES_MODULE = YES; 421 | DYLIB_COMPATIBILITY_VERSION = 1; 422 | DYLIB_CURRENT_VERSION = 1; 423 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 424 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 425 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 426 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 427 | PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Confetti; 428 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 429 | SKIP_INSTALL = YES; 430 | SWIFT_VERSION = 4.0; 431 | TARGETED_DEVICE_FAMILY = "1,2"; 432 | }; 433 | name = Release; 434 | }; 435 | 714615DA1F97FD6A001F738C /* Debug */ = { 436 | isa = XCBuildConfiguration; 437 | buildSettings = { 438 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 439 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 440 | CODE_SIGN_STYLE = Automatic; 441 | INFOPLIST_FILE = Example/Info.plist; 442 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 443 | PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Example; 444 | PRODUCT_NAME = "$(TARGET_NAME)"; 445 | SWIFT_VERSION = 4.0; 446 | TARGETED_DEVICE_FAMILY = "1,2"; 447 | }; 448 | name = Debug; 449 | }; 450 | 714615DB1F97FD6A001F738C /* Release */ = { 451 | isa = XCBuildConfiguration; 452 | buildSettings = { 453 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 454 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 455 | CODE_SIGN_STYLE = Automatic; 456 | INFOPLIST_FILE = Example/Info.plist; 457 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 458 | PRODUCT_BUNDLE_IDENTIFIER = com.efremidze.Example; 459 | PRODUCT_NAME = "$(TARGET_NAME)"; 460 | SWIFT_VERSION = 4.0; 461 | TARGETED_DEVICE_FAMILY = "1,2"; 462 | }; 463 | name = Release; 464 | }; 465 | /* End XCBuildConfiguration section */ 466 | 467 | /* Begin XCConfigurationList section */ 468 | 7121D7071F97FD3B00A6DAF3 /* Build configuration list for PBXProject "Confetti" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 7121D7131F97FD3B00A6DAF3 /* Debug */, 472 | 7121D7141F97FD3B00A6DAF3 /* Release */, 473 | ); 474 | defaultConfigurationIsVisible = 0; 475 | defaultConfigurationName = Release; 476 | }; 477 | 7121D7151F97FD3B00A6DAF3 /* Build configuration list for PBXNativeTarget "Confetti" */ = { 478 | isa = XCConfigurationList; 479 | buildConfigurations = ( 480 | 7121D7161F97FD3B00A6DAF3 /* Debug */, 481 | 7121D7171F97FD3B00A6DAF3 /* Release */, 482 | ); 483 | defaultConfigurationIsVisible = 0; 484 | defaultConfigurationName = Release; 485 | }; 486 | 714615DC1F97FD6A001F738C /* Build configuration list for PBXNativeTarget "Example" */ = { 487 | isa = XCConfigurationList; 488 | buildConfigurations = ( 489 | 714615DA1F97FD6A001F738C /* Debug */, 490 | 714615DB1F97FD6A001F738C /* Release */, 491 | ); 492 | defaultConfigurationIsVisible = 0; 493 | defaultConfigurationName = Release; 494 | }; 495 | /* End XCConfigurationList section */ 496 | }; 497 | rootObject = 7121D7041F97FD3B00A6DAF3 /* Project object */; 498 | } 499 | --------------------------------------------------------------------------------