├── images ├── PPParticleButton.gif ├── set_classname_on_storyboard.png └── PPPerticleButtonSKS_EditInXcode.gif ├── PPParticleButtonExample ├── Star │ ├── star.png │ └── StarParticle.sks ├── Heart │ ├── heart.png │ └── HeartParticle.sks ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── ViewController.swift ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard └── AppDelegate.swift ├── PPParticleButtonExample.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcuserdata │ └── hikarisatoh.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── PPParticleButtonExample.xcscheme └── project.pbxproj ├── PPParticleButton.podspec ├── .gitignore ├── LICENSE ├── README.md └── PPParticleButton └── PPParticleButton.swift /images/PPParticleButton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/images/PPParticleButton.gif -------------------------------------------------------------------------------- /PPParticleButtonExample/Star/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/PPParticleButtonExample/Star/star.png -------------------------------------------------------------------------------- /PPParticleButtonExample/Heart/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/PPParticleButtonExample/Heart/heart.png -------------------------------------------------------------------------------- /images/set_classname_on_storyboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/images/set_classname_on_storyboard.png -------------------------------------------------------------------------------- /images/PPPerticleButtonSKS_EditInXcode.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/images/PPPerticleButtonSKS_EditInXcode.gif -------------------------------------------------------------------------------- /PPParticleButtonExample/Star/StarParticle.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/PPParticleButtonExample/Star/StarParticle.sks -------------------------------------------------------------------------------- /PPParticleButtonExample/Heart/HeartParticle.sks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HikaruSato/PPParticleButton/HEAD/PPParticleButtonExample/Heart/HeartParticle.sks -------------------------------------------------------------------------------- /PPParticleButtonExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PPParticleButton.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'PPParticleButton' 3 | s.version = '0.1.0' 4 | s.summary = 'PPParticleButton can particle effect when tapped.' 5 | s.homepage = 'https://github.com/HIkaruSato/PPParticleButton' 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } 7 | s.author = { 'HIkaruSato' => 'sato.hikaru.dev@gmail.com' } 8 | s.platform = :ios, '8.0' 9 | s.source = { :git => 'https://github.com/HIkaruSato/PPParticleButton.git', :tag => s.version } 10 | s.source_files = 'PPParticleButton/*.swift' 11 | s.framework = 'SpriteKit' 12 | s.requires_arc = true 13 | end 14 | -------------------------------------------------------------------------------- /PPParticleButtonExample.xcodeproj/xcuserdata/hikarisatoh.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PPParticleButtonExample.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 65DCA1B81C4AB73400979B90 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | *.xcuserdatad 20 | 21 | 22 | # CocoaPods 23 | # 24 | # We recommend against adding the Pods directory to your .gitignore. However 25 | # you should judge for yourself, the pros and cons are mentioned at: 26 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 27 | # 28 | # Pods/ 29 | 30 | # Carthage 31 | # 32 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 33 | # Carthage/Checkouts 34 | 35 | Carthage/Build 36 | -------------------------------------------------------------------------------- /PPParticleButtonExample/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /PPParticleButtonExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PPParticleButtonExample 4 | // 5 | // Created by HikaruSato on 2016/01/17. 6 | // Copyright © 2016年 HikaruSato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | @IBOutlet weak var starBtn: PPParticleButton! 14 | @IBOutlet weak var heartBtn: PPParticleButton! 15 | 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | // Do any additional setup after loading the view, typically from a nib. 20 | starBtn.particleFileNameMap[PPParticleButtonEffectType.normal] = "StarParticle" 21 | heartBtn.particleFileNameMap[PPParticleButtonEffectType.unSelected] = "HeartParticle" 22 | } 23 | 24 | override func didReceiveMemoryWarning() { 25 | super.didReceiveMemoryWarning() 26 | // Dispose of any resources that can be recreated. 27 | } 28 | 29 | 30 | @IBAction func tapStarBtn(_ sender: AnyObject) { 31 | } 32 | 33 | @IBAction func tapHeartBtn(_ sender: AnyObject) { 34 | heartBtn.isSelected = !heartBtn.isSelected 35 | } 36 | 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Hikaru Sato 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 | 23 | -------------------------------------------------------------------------------- /PPParticleButtonExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /PPParticleButtonExample/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 | [![](http://img.shields.io/badge/iOS-8.0%2B-blue.svg)]() [![](http://img.shields.io/badge/Swift-3.0-blue.svg)]() 2 | 3 | # PPParticleButton 4 | 5 | PPParticleButton is a UIButton subClass it has a cool tap animation, even though it can be used anywhere you can use a UIButton. 6 | PPParticleButton uses SKEmitterNode of SpriteKit, to create the tap animation. 7 | ![alt animation image](https://github.com/HIkaruSato/PPParticleButton/blob/master/images/PPParticleButton.gif) 8 | 9 |
10 | ## Requirements 11 | 12 | * iOS 8.0+ 13 | * Xcode 7.2+ 14 | 15 | ## Installation 16 | 17 | ### Create a Podfile. 18 | 19 | ```Podfile 20 | platform :ios, '8.0' 21 | use_frameworks! 22 | pod 'PPParticleButton' 23 | ``` 24 | 25 | ### Execute 'pod install' 26 | 27 | ``` 28 | $ pod install 29 | ``` 30 | 31 | 32 | ## Usage 33 | 34 | 1. Select File->New->File...->Resource->SpriteKit Particle File, and create a sksFile. 35 | 36 | 2. Cutomize the SksFile on Xcode. 37 | ![Cutomize the SksFile](https://github.com/HIkaruSato/PPParticleButton/blob/master/images/PPPerticleButtonSKS_EditInXcode.gif) 38 | 39 | 3. Initialize a PPParticleButton class on code. or set to "PPParticleButton" of button's className on storyboard. 40 | ![Set to "PPParticleButton" of button's className](https://github.com/HIkaruSato/PPParticleButton/blob/master/images/set_classname_on_storyboard.png) 41 | 42 | 4. And only after you set the sksFile name (excluding the extension) to particleFileNameMap property of PPPerticleButton. 43 | 44 | * When tapped, works animation always. 45 | 46 | ``` 47 | ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.Normal] = "sksFile name" 48 | ``` 49 |
50 | 51 | * When tapped, works animation during button unselected. 52 | 53 | ``` 54 | ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.UnSelected] = "sksFile name" 55 | ``` 56 |
57 | * When tapped, works animation during selected. 58 | 59 | ``` 60 | ppparticleButton.particleFileNameMap[PPParticleButtonEffectType.Selected] = "sksFile name" 61 | ``` 62 |
63 | 64 | ## Detail 65 | For more information, please refer to PPParticleButtonExample project. 66 | -------------------------------------------------------------------------------- /PPParticleButtonExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PPParticleButtonExample 4 | // 5 | // Created by HikaruSato on 2016/01/17. 6 | // Copyright © 2016年 HikaruSato. 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 throttle down OpenGL ES frame rates. 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 inactive 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 | -------------------------------------------------------------------------------- /PPParticleButton/PPParticleButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PPParticleButton.swift 3 | // PPParticleButtonExample 4 | // 5 | // Created by HikaruSato on 2015/11/29. 6 | // Copyright © 2015年 HikaruSato. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SpriteKit 11 | import QuartzCore 12 | 13 | enum PPParticleButtonEffectType { 14 | case normal 15 | case selected 16 | case unSelected 17 | } 18 | 19 | class PPParticleButton: UIButton { 20 | //var particleFileName:String = "starParticle" 21 | var particleFileNameMap:[PPParticleButtonEffectType:String] = [PPParticleButtonEffectType:String]() 22 | var effectParticleDuration:TimeInterval = 0.5 23 | 24 | /* 25 | // Only override drawRect: if you perform custom drawing. 26 | // An empty implementation adversely affects performance during animation. 27 | override func drawRect(rect: CGRect) { 28 | // Drawing code 29 | } 30 | */ 31 | 32 | override init(frame: CGRect) { 33 | super.init(frame: frame) 34 | createSubViews() 35 | } 36 | 37 | required init?(coder aDecoder: NSCoder) { 38 | super.init(coder: aDecoder) 39 | createSubViews() 40 | } 41 | 42 | func createSubViews() { 43 | addTarget(self, action: #selector(PPParticleButton.effectParticle(_:)), for: UIControlEvents.touchUpInside) 44 | } 45 | 46 | func effectParticle(_ button:UIButton) { 47 | guard let particleFileName = self.getParticleFileName() else { 48 | //Nothing particle effect 49 | return 50 | } 51 | let skView = SKView(frame:CGRect( 52 | origin:CGPoint(x: -self.frame.origin.x, y: -self.frame.origin.y), 53 | size: self.superview!.frame.size)) 54 | skView.backgroundColor = UIColor.clear 55 | skView.allowsTransparency = true 56 | self.addSubview(skView) 57 | let scene = SKScene(size: self.superview!.frame.size) 58 | scene.scaleMode = SKSceneScaleMode.aspectFill 59 | scene.backgroundColor = UIColor.clear 60 | let particle:SKEmitterNode = NSKeyedUnarchiver.unarchiveObject(withFile: Bundle.main.path(forResource: particleFileName, ofType: "sks")!) as! SKEmitterNode 61 | particle.position = CGPoint(x: self.center.x, y: skView.frame.size.height - self.center.y) 62 | skView.presentScene(scene) 63 | let effect = SKAction.speed(to: 0.1, duration: self.effectParticleDuration) 64 | let actionBlock = SKAction.run { () -> Void in 65 | particle.particleBirthRate = 0; 66 | } 67 | let fadeOut = SKAction() 68 | fadeOut.duration = 1 69 | let remove = SKAction.removeFromParent() 70 | let sequence = SKAction.sequence([effect, actionBlock, fadeOut, remove]) 71 | particle.run(sequence) 72 | skView.scene!.addChild(particle) 73 | let delay = (effect.duration + fadeOut.duration) * Double(NSEC_PER_SEC) 74 | let time = DispatchTime.now() + Double(Int64(delay)) / Double(NSEC_PER_SEC) 75 | DispatchQueue.main.asyncAfter(deadline: time, execute: { 76 | skView.presentScene(nil) 77 | skView.removeFromSuperview() 78 | }) 79 | } 80 | 81 | func getParticleFileName() -> String? { 82 | if let filename = particleFileNameMap[PPParticleButtonEffectType.normal] { 83 | return filename 84 | } 85 | if self.isSelected { 86 | return particleFileNameMap[PPParticleButtonEffectType.selected] 87 | } else { 88 | return particleFileNameMap[PPParticleButtonEffectType.unSelected] 89 | } 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /PPParticleButtonExample.xcodeproj/xcuserdata/hikarisatoh.xcuserdatad/xcschemes/PPParticleButtonExample.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 | -------------------------------------------------------------------------------- /PPParticleButtonExample/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 34 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /PPParticleButtonExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 65DCA1BD1C4AB73400979B90 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65DCA1BC1C4AB73400979B90 /* AppDelegate.swift */; }; 11 | 65DCA1BF1C4AB73400979B90 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65DCA1BE1C4AB73400979B90 /* ViewController.swift */; }; 12 | 65DCA1C21C4AB73400979B90 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1C01C4AB73400979B90 /* Main.storyboard */; }; 13 | 65DCA1C41C4AB73400979B90 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1C31C4AB73400979B90 /* Assets.xcassets */; }; 14 | 65DCA1C71C4AB73400979B90 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1C51C4AB73400979B90 /* LaunchScreen.storyboard */; }; 15 | 65DCA1D31C4AB79500979B90 /* PPParticleButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 65DCA1D21C4AB79500979B90 /* PPParticleButton.swift */; }; 16 | 65DCA1DA1C4AB86800979B90 /* heart.png in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1D51C4AB86800979B90 /* heart.png */; }; 17 | 65DCA1DB1C4AB86800979B90 /* HeartParticle.sks in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1D61C4AB86800979B90 /* HeartParticle.sks */; }; 18 | 65DCA1DC1C4AB86800979B90 /* star.png in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1D81C4AB86800979B90 /* star.png */; }; 19 | 65DCA1DD1C4AB86800979B90 /* StarParticle.sks in Resources */ = {isa = PBXBuildFile; fileRef = 65DCA1D91C4AB86800979B90 /* StarParticle.sks */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 65DCA1B91C4AB73400979B90 /* PPParticleButtonExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PPParticleButtonExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 65DCA1BC1C4AB73400979B90 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 25 | 65DCA1BE1C4AB73400979B90 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 26 | 65DCA1C11C4AB73400979B90 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | 65DCA1C31C4AB73400979B90 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | 65DCA1C61C4AB73400979B90 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | 65DCA1C81C4AB73400979B90 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | 65DCA1D21C4AB79500979B90 /* PPParticleButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PPParticleButton.swift; sourceTree = ""; }; 31 | 65DCA1D51C4AB86800979B90 /* heart.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = heart.png; sourceTree = ""; }; 32 | 65DCA1D61C4AB86800979B90 /* HeartParticle.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = HeartParticle.sks; sourceTree = ""; }; 33 | 65DCA1D81C4AB86800979B90 /* star.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = star.png; sourceTree = ""; }; 34 | 65DCA1D91C4AB86800979B90 /* StarParticle.sks */ = {isa = PBXFileReference; lastKnownFileType = file.sks; path = StarParticle.sks; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 65DCA1B61C4AB73400979B90 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 65DCA1B01C4AB73400979B90 = { 49 | isa = PBXGroup; 50 | children = ( 51 | 65DCA1D11C4AB79500979B90 /* PPParticleButton */, 52 | 65DCA1BB1C4AB73400979B90 /* PPParticleButtonExample */, 53 | 65DCA1BA1C4AB73400979B90 /* Products */, 54 | ); 55 | sourceTree = ""; 56 | }; 57 | 65DCA1BA1C4AB73400979B90 /* Products */ = { 58 | isa = PBXGroup; 59 | children = ( 60 | 65DCA1B91C4AB73400979B90 /* PPParticleButtonExample.app */, 61 | ); 62 | name = Products; 63 | sourceTree = ""; 64 | }; 65 | 65DCA1BB1C4AB73400979B90 /* PPParticleButtonExample */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | 65DCA1D41C4AB86800979B90 /* Heart */, 69 | 65DCA1D71C4AB86800979B90 /* Star */, 70 | 65DCA1BC1C4AB73400979B90 /* AppDelegate.swift */, 71 | 65DCA1BE1C4AB73400979B90 /* ViewController.swift */, 72 | 65DCA1C01C4AB73400979B90 /* Main.storyboard */, 73 | 65DCA1C31C4AB73400979B90 /* Assets.xcassets */, 74 | 65DCA1C51C4AB73400979B90 /* LaunchScreen.storyboard */, 75 | 65DCA1C81C4AB73400979B90 /* Info.plist */, 76 | ); 77 | path = PPParticleButtonExample; 78 | sourceTree = ""; 79 | }; 80 | 65DCA1D11C4AB79500979B90 /* PPParticleButton */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 65DCA1D21C4AB79500979B90 /* PPParticleButton.swift */, 84 | ); 85 | path = PPParticleButton; 86 | sourceTree = ""; 87 | }; 88 | 65DCA1D41C4AB86800979B90 /* Heart */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 65DCA1D51C4AB86800979B90 /* heart.png */, 92 | 65DCA1D61C4AB86800979B90 /* HeartParticle.sks */, 93 | ); 94 | path = Heart; 95 | sourceTree = ""; 96 | }; 97 | 65DCA1D71C4AB86800979B90 /* Star */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 65DCA1D81C4AB86800979B90 /* star.png */, 101 | 65DCA1D91C4AB86800979B90 /* StarParticle.sks */, 102 | ); 103 | path = Star; 104 | sourceTree = ""; 105 | }; 106 | /* End PBXGroup section */ 107 | 108 | /* Begin PBXNativeTarget section */ 109 | 65DCA1B81C4AB73400979B90 /* PPParticleButtonExample */ = { 110 | isa = PBXNativeTarget; 111 | buildConfigurationList = 65DCA1CB1C4AB73400979B90 /* Build configuration list for PBXNativeTarget "PPParticleButtonExample" */; 112 | buildPhases = ( 113 | 65DCA1B51C4AB73400979B90 /* Sources */, 114 | 65DCA1B61C4AB73400979B90 /* Frameworks */, 115 | 65DCA1B71C4AB73400979B90 /* Resources */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = PPParticleButtonExample; 122 | productName = PPParticleButtonExample; 123 | productReference = 65DCA1B91C4AB73400979B90 /* PPParticleButtonExample.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | /* End PBXNativeTarget section */ 127 | 128 | /* Begin PBXProject section */ 129 | 65DCA1B11C4AB73400979B90 /* Project object */ = { 130 | isa = PBXProject; 131 | attributes = { 132 | LastSwiftUpdateCheck = 0720; 133 | LastUpgradeCheck = 0830; 134 | ORGANIZATIONNAME = HikaruSato; 135 | TargetAttributes = { 136 | 65DCA1B81C4AB73400979B90 = { 137 | CreatedOnToolsVersion = 7.2; 138 | DevelopmentTeam = J6JEG8NWRQ; 139 | LastSwiftMigration = 0830; 140 | }; 141 | }; 142 | }; 143 | buildConfigurationList = 65DCA1B41C4AB73400979B90 /* Build configuration list for PBXProject "PPParticleButtonExample" */; 144 | compatibilityVersion = "Xcode 3.2"; 145 | developmentRegion = English; 146 | hasScannedForEncodings = 0; 147 | knownRegions = ( 148 | en, 149 | Base, 150 | ); 151 | mainGroup = 65DCA1B01C4AB73400979B90; 152 | productRefGroup = 65DCA1BA1C4AB73400979B90 /* Products */; 153 | projectDirPath = ""; 154 | projectRoot = ""; 155 | targets = ( 156 | 65DCA1B81C4AB73400979B90 /* PPParticleButtonExample */, 157 | ); 158 | }; 159 | /* End PBXProject section */ 160 | 161 | /* Begin PBXResourcesBuildPhase section */ 162 | 65DCA1B71C4AB73400979B90 /* Resources */ = { 163 | isa = PBXResourcesBuildPhase; 164 | buildActionMask = 2147483647; 165 | files = ( 166 | 65DCA1DB1C4AB86800979B90 /* HeartParticle.sks in Resources */, 167 | 65DCA1DD1C4AB86800979B90 /* StarParticle.sks in Resources */, 168 | 65DCA1DA1C4AB86800979B90 /* heart.png in Resources */, 169 | 65DCA1C71C4AB73400979B90 /* LaunchScreen.storyboard in Resources */, 170 | 65DCA1C41C4AB73400979B90 /* Assets.xcassets in Resources */, 171 | 65DCA1C21C4AB73400979B90 /* Main.storyboard in Resources */, 172 | 65DCA1DC1C4AB86800979B90 /* star.png in Resources */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | /* End PBXResourcesBuildPhase section */ 177 | 178 | /* Begin PBXSourcesBuildPhase section */ 179 | 65DCA1B51C4AB73400979B90 /* Sources */ = { 180 | isa = PBXSourcesBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | 65DCA1BF1C4AB73400979B90 /* ViewController.swift in Sources */, 184 | 65DCA1BD1C4AB73400979B90 /* AppDelegate.swift in Sources */, 185 | 65DCA1D31C4AB79500979B90 /* PPParticleButton.swift in Sources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXSourcesBuildPhase section */ 190 | 191 | /* Begin PBXVariantGroup section */ 192 | 65DCA1C01C4AB73400979B90 /* Main.storyboard */ = { 193 | isa = PBXVariantGroup; 194 | children = ( 195 | 65DCA1C11C4AB73400979B90 /* Base */, 196 | ); 197 | name = Main.storyboard; 198 | sourceTree = ""; 199 | }; 200 | 65DCA1C51C4AB73400979B90 /* LaunchScreen.storyboard */ = { 201 | isa = PBXVariantGroup; 202 | children = ( 203 | 65DCA1C61C4AB73400979B90 /* Base */, 204 | ); 205 | name = LaunchScreen.storyboard; 206 | sourceTree = ""; 207 | }; 208 | /* End PBXVariantGroup section */ 209 | 210 | /* Begin XCBuildConfiguration section */ 211 | 65DCA1C91C4AB73400979B90 /* Debug */ = { 212 | isa = XCBuildConfiguration; 213 | buildSettings = { 214 | ALWAYS_SEARCH_USER_PATHS = NO; 215 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 216 | CLANG_CXX_LIBRARY = "libc++"; 217 | CLANG_ENABLE_MODULES = YES; 218 | CLANG_ENABLE_OBJC_ARC = YES; 219 | CLANG_WARN_BOOL_CONVERSION = YES; 220 | CLANG_WARN_CONSTANT_CONVERSION = YES; 221 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 222 | CLANG_WARN_EMPTY_BODY = YES; 223 | CLANG_WARN_ENUM_CONVERSION = YES; 224 | CLANG_WARN_INFINITE_RECURSION = YES; 225 | CLANG_WARN_INT_CONVERSION = YES; 226 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 227 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 228 | CLANG_WARN_UNREACHABLE_CODE = YES; 229 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 230 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 231 | COPY_PHASE_STRIP = NO; 232 | DEBUG_INFORMATION_FORMAT = dwarf; 233 | ENABLE_STRICT_OBJC_MSGSEND = YES; 234 | ENABLE_TESTABILITY = YES; 235 | GCC_C_LANGUAGE_STANDARD = gnu99; 236 | GCC_DYNAMIC_NO_PIC = NO; 237 | GCC_NO_COMMON_BLOCKS = YES; 238 | GCC_OPTIMIZATION_LEVEL = 0; 239 | GCC_PREPROCESSOR_DEFINITIONS = ( 240 | "DEBUG=1", 241 | "$(inherited)", 242 | ); 243 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 244 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 245 | GCC_WARN_UNDECLARED_SELECTOR = YES; 246 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 247 | GCC_WARN_UNUSED_FUNCTION = YES; 248 | GCC_WARN_UNUSED_VARIABLE = YES; 249 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 250 | MTL_ENABLE_DEBUG_INFO = YES; 251 | ONLY_ACTIVE_ARCH = YES; 252 | SDKROOT = iphoneos; 253 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 254 | }; 255 | name = Debug; 256 | }; 257 | 65DCA1CA1C4AB73400979B90 /* Release */ = { 258 | isa = XCBuildConfiguration; 259 | buildSettings = { 260 | ALWAYS_SEARCH_USER_PATHS = NO; 261 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 262 | CLANG_CXX_LIBRARY = "libc++"; 263 | CLANG_ENABLE_MODULES = YES; 264 | CLANG_ENABLE_OBJC_ARC = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_CONSTANT_CONVERSION = YES; 267 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 268 | CLANG_WARN_EMPTY_BODY = YES; 269 | CLANG_WARN_ENUM_CONVERSION = YES; 270 | CLANG_WARN_INFINITE_RECURSION = YES; 271 | CLANG_WARN_INT_CONVERSION = YES; 272 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 273 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 274 | CLANG_WARN_UNREACHABLE_CODE = YES; 275 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 276 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 277 | COPY_PHASE_STRIP = NO; 278 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 279 | ENABLE_NS_ASSERTIONS = NO; 280 | ENABLE_STRICT_OBJC_MSGSEND = YES; 281 | GCC_C_LANGUAGE_STANDARD = gnu99; 282 | GCC_NO_COMMON_BLOCKS = YES; 283 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 284 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 285 | GCC_WARN_UNDECLARED_SELECTOR = YES; 286 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 287 | GCC_WARN_UNUSED_FUNCTION = YES; 288 | GCC_WARN_UNUSED_VARIABLE = YES; 289 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 290 | MTL_ENABLE_DEBUG_INFO = NO; 291 | SDKROOT = iphoneos; 292 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 293 | VALIDATE_PRODUCT = YES; 294 | }; 295 | name = Release; 296 | }; 297 | 65DCA1CC1C4AB73400979B90 /* Debug */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 301 | DEVELOPMENT_TEAM = J6JEG8NWRQ; 302 | INFOPLIST_FILE = PPParticleButtonExample/Info.plist; 303 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 304 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 305 | PRODUCT_BUNDLE_IDENTIFIER = com.HikaruSato.example.PPParticleButtonExample; 306 | PRODUCT_NAME = "$(TARGET_NAME)"; 307 | SWIFT_VERSION = 3.0; 308 | }; 309 | name = Debug; 310 | }; 311 | 65DCA1CD1C4AB73400979B90 /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | buildSettings = { 314 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 315 | DEVELOPMENT_TEAM = J6JEG8NWRQ; 316 | INFOPLIST_FILE = PPParticleButtonExample/Info.plist; 317 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | PRODUCT_BUNDLE_IDENTIFIER = com.HikaruSato.example.PPParticleButtonExample; 320 | PRODUCT_NAME = "$(TARGET_NAME)"; 321 | SWIFT_VERSION = 3.0; 322 | }; 323 | name = Release; 324 | }; 325 | /* End XCBuildConfiguration section */ 326 | 327 | /* Begin XCConfigurationList section */ 328 | 65DCA1B41C4AB73400979B90 /* Build configuration list for PBXProject "PPParticleButtonExample" */ = { 329 | isa = XCConfigurationList; 330 | buildConfigurations = ( 331 | 65DCA1C91C4AB73400979B90 /* Debug */, 332 | 65DCA1CA1C4AB73400979B90 /* Release */, 333 | ); 334 | defaultConfigurationIsVisible = 0; 335 | defaultConfigurationName = Release; 336 | }; 337 | 65DCA1CB1C4AB73400979B90 /* Build configuration list for PBXNativeTarget "PPParticleButtonExample" */ = { 338 | isa = XCConfigurationList; 339 | buildConfigurations = ( 340 | 65DCA1CC1C4AB73400979B90 /* Debug */, 341 | 65DCA1CD1C4AB73400979B90 /* Release */, 342 | ); 343 | defaultConfigurationIsVisible = 0; 344 | defaultConfigurationName = Release; 345 | }; 346 | /* End XCConfigurationList section */ 347 | }; 348 | rootObject = 65DCA1B11C4AB73400979B90 /* Project object */; 349 | } 350 | --------------------------------------------------------------------------------