[
  {
    "path": ".gitignore",
    "content": ".DS_Store\nNPButtonFlip.xcodeproj/project.xcworkspace/xcuserdata/savepanda.xcuserdatad/UserInterfaceState.xcuserstate\nNPButtonFlip.xcodeproj/xcuserdata/*\nUserInterfaceState.xcuserstate\nNPButtonFlip.xccheckout\n"
  },
  {
    "path": "LICENSE",
    "content": "Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "NPButtonFlip/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  NPButtonFlip\n//\n//  Created by Glibert Axel on 30/12/14.\n//  Copyright (c) 2014 Neopixl. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n    private func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {\n        // Override point for customization after application launch.\n        return true\n    }\n\n    func applicationWillResignActive(_ application: UIApplication) {\n        // 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.\n        // 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.\n    }\n\n    func applicationDidEnterBackground(_ application: UIApplication) {\n        // 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.\n        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.\n    }\n\n    func applicationWillEnterForeground(_ application: UIApplication) {\n        // 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.\n    }\n\n    func applicationDidBecomeActive(_ application: UIApplication) {\n        // 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.\n    }\n\n    func applicationWillTerminate(_ application: UIApplication) {\n        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.\n    }\n\n}\n"
  },
  {
    "path": "NPButtonFlip/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"6254\" systemVersion=\"14B25\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"6247\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"  Copyright (c) 2014 Neopixl. All rights reserved.\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"441\" height=\"21\"/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"NPButtonFlip\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"140\" width=\"441\" height=\"43\"/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "NPButtonFlip/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"11762\" systemVersion=\"15G1212\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" colorMatched=\"YES\" initialViewController=\"vXZ-lx-hvc\">\n    <device id=\"retina4_7\" orientation=\"portrait\">\n        <adaptation id=\"fullscreen\"/>\n    </device>\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"11757\"/>\n        <capability name=\"Constraints to layout margins\" minToolsVersion=\"6.0\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"ufC-wZ-h7g\">\n            <objects>\n                <viewController id=\"vXZ-lx-hvc\" customClass=\"ViewController\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"jyV-Pf-zRb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"2fi-mo-0CV\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"kh9-bI-dsS\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"375\" height=\"667\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                        <subviews>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sdn-y3-SG6\" customClass=\"NPButtonWithFilp\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\">\n                                <rect key=\"frame\" x=\"37.5\" y=\"50\" width=\"300\" height=\"50\"/>\n                                <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"50\" id=\"mD0-MF-lgj\"/>\n                                </constraints>\n                                <connections>\n                                    <action selector=\"buttonBigTouchDown:\" destination=\"vXZ-lx-hvc\" eventType=\"touchDown\" id=\"vXE-k1-F4D\"/>\n                                    <action selector=\"buttonBigTouchUpInside:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"LtK-cR-S2j\"/>\n                                </connections>\n                            </view>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"RiE-bP-wkh\" customClass=\"NPButtonWithFilp\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\">\n                                <rect key=\"frame\" x=\"37.5\" y=\"117\" width=\"135\" height=\"50\"/>\n                                <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                <connections>\n                                    <action selector=\"buttonLeftTouchDown:\" destination=\"vXZ-lx-hvc\" eventType=\"touchDown\" id=\"IPE-tS-ecN\"/>\n                                    <action selector=\"buttonLeftTouchUpInside:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"udJ-5s-63J\"/>\n                                </connections>\n                            </view>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"I98-qk-NLK\" customClass=\"NPButtonWithFilp\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\">\n                                <rect key=\"frame\" x=\"202.5\" y=\"117\" width=\"135\" height=\"50\"/>\n                                <color key=\"backgroundColor\" red=\"1\" green=\"1\" blue=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                <connections>\n                                    <action selector=\"buttonRightTouchDown:\" destination=\"vXZ-lx-hvc\" eventType=\"touchDown\" id=\"eiK-Uf-5K0\"/>\n                                    <action selector=\"buttonRightTouchUpInside:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"nW0-Da-7gV\"/>\n                                </connections>\n                            </view>\n                            <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"Action :\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vA3-cp-dSC\">\n                                <rect key=\"frame\" x=\"158.5\" y=\"220\" width=\"58\" height=\"21\"/>\n                                <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                <nil key=\"highlightedColor\"/>\n                            </label>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Mco-QU-XJI\" customClass=\"NPFlipView\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\">\n                                <rect key=\"frame\" x=\"89\" y=\"262\" width=\"32\" height=\"36\"/>\n                                <connections>\n                                    <action selector=\"flipViewLeftTouchDown:\" destination=\"vXZ-lx-hvc\" eventType=\"touchDown\" id=\"6KB-DV-tHt\"/>\n                                    <action selector=\"flipViewLeftTouchUpInside:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"66X-vH-foR\"/>\n                                </connections>\n                            </view>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HdA-Rm-CgZ\" customClass=\"NPFlipView\" customModule=\"NPButtonFlip\" customModuleProvider=\"target\">\n                                <rect key=\"frame\" x=\"254\" y=\"262\" width=\"32\" height=\"36\"/>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"36\" id=\"6Bd-pD-poc\"/>\n                                    <constraint firstAttribute=\"width\" constant=\"32\" id=\"nkm-HF-TTc\"/>\n                                </constraints>\n                                <connections>\n                                    <action selector=\"flipViewRightTouchDown:\" destination=\"vXZ-lx-hvc\" eventType=\"touchDown\" id=\"0J8-qy-dCJ\"/>\n                                    <action selector=\"flipViewRightTouchUpInside:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"E8g-Xn-lAP\"/>\n                                </connections>\n                            </view>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Pfq-7a-rdb\">\n                                <rect key=\"frame\" x=\"82\" y=\"318\" width=\"51\" height=\"30\"/>\n                                <state key=\"normal\" title=\"ToBack\">\n                                    <color key=\"titleShadowColor\" red=\"0.5\" green=\"0.5\" blue=\"0.5\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"toBack:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"7MG-Mx-3sD\"/>\n                                </connections>\n                            </button>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"a2l-da-Gb7\">\n                                <rect key=\"frame\" x=\"246.5\" y=\"318\" width=\"53\" height=\"30\"/>\n                                <state key=\"normal\" title=\"ToFront\">\n                                    <color key=\"titleShadowColor\" red=\"0.5\" green=\"0.5\" blue=\"0.5\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"toFront:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"lfO-UA-Pg5\"/>\n                                </connections>\n                            </button>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"iZo-hy-qlp\">\n                                <rect key=\"frame\" x=\"255\" y=\"182\" width=\"30\" height=\"30\"/>\n                                <state key=\"normal\" title=\"Off\">\n                                    <color key=\"titleShadowColor\" red=\"0.5\" green=\"0.5\" blue=\"0.5\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"off:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"MK9-yw-UOC\"/>\n                                </connections>\n                            </button>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"l68-bC-5ZE\">\n                                <rect key=\"frame\" x=\"90.5\" y=\"182\" width=\"30\" height=\"30\"/>\n                                <state key=\"normal\" title=\"On\">\n                                    <color key=\"titleShadowColor\" red=\"0.5\" green=\"0.5\" blue=\"0.5\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"sRGB\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"on:\" destination=\"vXZ-lx-hvc\" eventType=\"touchUpInside\" id=\"QHf-Jo-fBN\"/>\n                                </connections>\n                            </button>\n                        </subviews>\n                        <color key=\"backgroundColor\" cocoaTouchSystemColor=\"groupTableViewBackgroundColor\"/>\n                        <constraints>\n                            <constraint firstItem=\"Mco-QU-XJI\" firstAttribute=\"top\" secondItem=\"l68-bC-5ZE\" secondAttribute=\"bottom\" constant=\"50\" id=\"4BE-2Z-jlg\"/>\n                            <constraint firstItem=\"sdn-y3-SG6\" firstAttribute=\"top\" secondItem=\"kh9-bI-dsS\" secondAttribute=\"topMargin\" constant=\"50\" id=\"6Vg-h1-iRg\"/>\n                            <constraint firstItem=\"Pfq-7a-rdb\" firstAttribute=\"centerY\" secondItem=\"a2l-da-Gb7\" secondAttribute=\"centerY\" id=\"8A0-aG-JER\"/>\n                            <constraint firstItem=\"HdA-Rm-CgZ\" firstAttribute=\"height\" secondItem=\"Mco-QU-XJI\" secondAttribute=\"height\" id=\"8yO-cx-qmu\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"leading\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"leading\" id=\"AVr-P6-xlF\"/>\n                            <constraint firstItem=\"HdA-Rm-CgZ\" firstAttribute=\"centerX\" secondItem=\"a2l-da-Gb7\" secondAttribute=\"centerX\" constant=\"-3\" id=\"D0C-dm-0vN\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"top\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"bottom\" constant=\"17\" id=\"Fu2-Kg-GkJ\"/>\n                            <constraint firstItem=\"I98-qk-NLK\" firstAttribute=\"height\" secondItem=\"RiE-bP-wkh\" secondAttribute=\"height\" id=\"LBj-LH-ApT\"/>\n                            <constraint firstItem=\"Pfq-7a-rdb\" firstAttribute=\"centerX\" secondItem=\"Mco-QU-XJI\" secondAttribute=\"centerX\" constant=\"2.5\" id=\"NCO-zN-WXJ\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"centerX\" secondItem=\"l68-bC-5ZE\" secondAttribute=\"centerX\" constant=\"-0.5\" id=\"Naa-t0-81F\"/>\n                            <constraint firstAttribute=\"centerX\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"centerX\" id=\"S8L-te-nlS\"/>\n                            <constraint firstItem=\"I98-qk-NLK\" firstAttribute=\"trailing\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"trailing\" id=\"VxC-FA-B0T\"/>\n                            <constraint firstAttribute=\"centerX\" secondItem=\"vA3-cp-dSC\" secondAttribute=\"centerX\" id=\"YEn-wN-ndP\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"centerX\" secondItem=\"Mco-QU-XJI\" secondAttribute=\"centerX\" id=\"Zeg-Bn-Ng8\"/>\n                            <constraint firstItem=\"vA3-cp-dSC\" firstAttribute=\"top\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"bottom\" constant=\"120\" id=\"ahy-EC-m4W\"/>\n                            <constraint firstItem=\"iZo-hy-qlp\" firstAttribute=\"centerX\" secondItem=\"I98-qk-NLK\" secondAttribute=\"centerX\" id=\"bG1-ms-R7y\"/>\n                            <constraint firstItem=\"HdA-Rm-CgZ\" firstAttribute=\"centerX\" secondItem=\"I98-qk-NLK\" secondAttribute=\"centerX\" id=\"cu7-Pm-IEx\"/>\n                            <constraint firstItem=\"Mco-QU-XJI\" firstAttribute=\"centerY\" secondItem=\"HdA-Rm-CgZ\" secondAttribute=\"centerY\" id=\"dUi-M3-X9a\"/>\n                            <constraint firstItem=\"I98-qk-NLK\" firstAttribute=\"width\" secondItem=\"RiE-bP-wkh\" secondAttribute=\"width\" id=\"ecs-90-XW3\"/>\n                            <constraint firstItem=\"Pfq-7a-rdb\" firstAttribute=\"top\" secondItem=\"Mco-QU-XJI\" secondAttribute=\"bottom\" constant=\"20\" id=\"iFe-e2-WX2\"/>\n                            <constraint firstItem=\"l68-bC-5ZE\" firstAttribute=\"top\" secondItem=\"RiE-bP-wkh\" secondAttribute=\"bottom\" constant=\"15\" id=\"iJC-nk-bmA\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"width\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"width\" multiplier=\"0.45\" id=\"oyo-Rc-6fS\"/>\n                            <constraint firstAttribute=\"width\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"width\" multiplier=\"1.25\" id=\"q53-2O-TDP\"/>\n                            <constraint firstItem=\"RiE-bP-wkh\" firstAttribute=\"height\" secondItem=\"sdn-y3-SG6\" secondAttribute=\"height\" id=\"tk6-2C-yyo\"/>\n                            <constraint firstItem=\"HdA-Rm-CgZ\" firstAttribute=\"width\" secondItem=\"Mco-QU-XJI\" secondAttribute=\"width\" id=\"vkB-nh-i4e\"/>\n                            <constraint firstItem=\"l68-bC-5ZE\" firstAttribute=\"centerY\" secondItem=\"iZo-hy-qlp\" secondAttribute=\"centerY\" id=\"zHF-Oi-UmT\"/>\n                            <constraint firstItem=\"I98-qk-NLK\" firstAttribute=\"centerY\" secondItem=\"RiE-bP-wkh\" secondAttribute=\"centerY\" id=\"zu4-Yd-f7P\"/>\n                        </constraints>\n                    </view>\n                    <connections>\n                        <outlet property=\"buttonBig\" destination=\"sdn-y3-SG6\" id=\"78E-EI-9qM\"/>\n                        <outlet property=\"buttonLeft\" destination=\"RiE-bP-wkh\" id=\"VSq-cg-P2s\"/>\n                        <outlet property=\"buttonRight\" destination=\"I98-qk-NLK\" id=\"pS2-cb-S6B\"/>\n                        <outlet property=\"flipLeft\" destination=\"Mco-QU-XJI\" id=\"7bx-px-AlU\"/>\n                        <outlet property=\"flipRight\" destination=\"HdA-Rm-CgZ\" id=\"hTV-U3-wmg\"/>\n                        <outlet property=\"labelAction\" destination=\"vA3-cp-dSC\" id=\"rAD-fa-m0f\"/>\n                    </connections>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"x5A-6p-PRh\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "NPButtonFlip/Classes/NPButtonWithFlip/NPButtonWithFilp.swift",
    "content": "/*\nCopyright 2015 NEOPIXL S.A.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport UIKit\n\npublic class NPButtonWithFilp: UIControl {\n\n\tvar borderColor: UIColor!\n\tvar offColor: UIColor!\n\tvar onColor: UIColor!\n\n\tprivate var flipButton: NPFlipView!\n\tvar flipOffImage: UIImage!\n\tvar flipOnImage: UIImage!\n\tvar text: String!\n\tvar textFont: UIFont!\n\n\tprivate var currentOff = true\n\n\tprivate var label: UILabel!\n\n\t// MARK: - Init\n\t\n\trequired public init?(coder aDecoder: NSCoder) {\n\t\tsuper.init(coder: aDecoder)\n\t\tinitComponents()\n\t}\n\n\toverride init(frame: CGRect) {\n\t\tsuper.init(frame: frame)\n\t\tinitComponents()\n\t}\n\n\t// MARK: - Private methods\n\n\tprivate func initComponents() {\n\t\tself.label = UILabel()\n\t\tself.flipButton = NPFlipView(frame: CGRect(x: 0, y: 0, width: 32, height: 36))\n\t\tlabel.translatesAutoresizingMaskIntoConstraints = false\n\t\tflipButton.translatesAutoresizingMaskIntoConstraints = false\n\t\tself.addSubview(label)\n\t\tself.addSubview(flipButton)\n\n\t\tlet labelCenterYConstraint = NSLayoutConstraint(item:label,\n                                                        attribute:NSLayoutConstraint.Attribute.centerY,\n                                                        relatedBy:NSLayoutConstraint.Relation.equal,\n\t\t                                                toItem:self,\n                                                        attribute:NSLayoutConstraint.Attribute.centerY,\n\t\t                                                multiplier:1,\n\t\t                                                constant:0)\n\t\tself.addConstraint(labelCenterYConstraint)\n\n\t\tlet labelPinLeftBorderConstraint = NSLayoutConstraint(item:label,\n                                                              attribute:NSLayoutConstraint.Attribute.leading,\n                                                              relatedBy:NSLayoutConstraint.Relation.equal,\n\t\t                                                      toItem:self,\n                                                              attribute:NSLayoutConstraint.Attribute.leading,\n\t\t                                                      multiplier:1,\n\t\t                                                      constant:15)\n\t\tself.addConstraint(labelPinLeftBorderConstraint)\n\n\t\tlet flipCenterYConstraint = NSLayoutConstraint(item:flipButton,\n                                                       attribute:NSLayoutConstraint.Attribute.centerY,\n                                                       relatedBy:NSLayoutConstraint.Relation.equal,\n\t\t                                               toItem:self,\n                                                       attribute:NSLayoutConstraint.Attribute.centerY,\n\t\t                                               multiplier:1,\n\t\t                                               constant:2)\n\t\tself.addConstraint(flipCenterYConstraint)\n\n\t\tlet flipPinLeftBorderConstraint = NSLayoutConstraint(item:flipButton,\n                                                             attribute:NSLayoutConstraint.Attribute.trailing,\n                                                             relatedBy:NSLayoutConstraint.Relation.equal,\n\t\t                                                     toItem:self,\n                                                             attribute:NSLayoutConstraint.Attribute.trailing,\n\t\t                                                     multiplier:1,\n\t\t                                                     constant:-10)\n\t\tself.addConstraint(flipPinLeftBorderConstraint)\n\n\t}\n\n\t// MARK: - Public methods\n\n\tpublic func setParameters(borderColor: UIColor, offColor: UIColor, onColor: UIColor, flipOffImage: UIImage, flipOnImage: UIImage, text: String, textFont: UIFont) {\n\t\tself.borderColor = borderColor\n\t\tself.offColor = offColor\n\t\tself.onColor = onColor\n\t\tself.flipOffImage = flipOffImage\n\t\tself.flipOnImage = flipOnImage\n\t\tself.text = text\n\t\tlabel.text = self.text\n\t\tself.textFont = textFont\n\t\tlabel.font = self.textFont\n\t\tlabel.textColor = self.onColor\n\n\t\tself.layer.borderColor = self.borderColor.cgColor\n\t\tself.layer.borderWidth = 1\n\t\tself.layer.cornerRadius = 2\n\t\tself.backgroundColor = offColor\n\n\t\tflipButton.setImages(frontImage: flipOnImage, backImage: flipOffImage)\n\t\tflipButton.addTarget(self, action: #selector(flipTouchDown), for: .touchDown)\n\t\tflipButton.addTarget(self, action: #selector(flipTouchUpInside), for: .touchUpInside)\n\n\t\tflipButton.removeConstraints(flipButton.constraints)\n\n\t\tlet views = [\"view\": flipButton]\n\t\t//+4 for shadow\n        let verticalConstraints = NSLayoutConstraint.constraints(withVisualFormat:\"V:[view(\\(flipOffImage.size.height+4))]\", options: [], metrics: nil, views: views as [String : Any])\n\t\tflipButton.addConstraints(verticalConstraints)\n\n        let horizontalConstraints = NSLayoutConstraint.constraints(withVisualFormat: \"H:[view(\\(flipOffImage.size.width))]\", options: [], metrics: nil, views: views as [String : Any])\n\t\tflipButton.addConstraints(horizontalConstraints)\n\t}\n\n\tpublic func setState (on: Bool, animated: Bool) {\n\t\tif(currentOff == on) {\n\t\t\tif !on {\n\t\t\t\tif animated {\n\t\t\t\t\tUIView.animate(withDuration: 0.2, animations: {\n\t\t\t\t\t\tself.backgroundColor = self.offColor\n\t\t\t\t\t\tself.label.textColor = self.onColor\n\t\t\t\t\t})\n\n\t\t\t\t} else {\n\t\t\t\t\tself.backgroundColor = self.offColor\n\t\t\t\t\tself.label.textColor = self.onColor\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif animated {\n\t\t\t\t\tUIView.animate(withDuration: 0.2, animations: {\n\t\t\t\t\t\tself.backgroundColor = self.onColor\n\t\t\t\t\t\tself.label.textColor = self.offColor\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tself.backgroundColor = self.onColor\n\t\t\t\t\tself.label.textColor = self.offColor\n\t\t\t\t}\n\t\t\t}\n\t\t\tself.flipButton.flip(animated: animated, duration: 0.3, toBack: on, completionBlock: nil)\n\t\t\tself.currentOff = !on\n\t\t}\n\t}\n\n\tpublic override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {\n\t\tdidBegin()\n\t}\n\n\tprivate func didBegin() {\n\t\tif self.currentOff {\n\t\t\tUIView.animate(withDuration: 0.2, animations: {\n\t\t\t\tself.backgroundColor = self.onColor\n\t\t\t\tself.label.textColor = self.offColor\n\t\t\t})\n\t\t} else {\n\t\t\tUIView.animate(withDuration: 0.2, animations: {\n\t\t\t\tself.backgroundColor = self.offColor\n\t\t\t\tself.label.textColor = self.onColor\n\t\t\t})\n\t\t}\n\t\tself.currentOff = !self.currentOff\n\n\t\tself.sendActions(for: .touchDown)\n\t}\n\n\tpublic override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {\n\t\tdidEnd()\n\t}\n\n\tprivate func didEnd() {\n\t\tself.flipButton.flip(animated: true, duration: 0.3, completionBlock: nil)\n\t\tself.sendActions(for: .touchUpInside)\n\t}\n\n    @objc internal func flipTouchUpInside() {\n\t\tdidEnd()\n\t}\n\n    @objc internal func flipTouchDown() {\n\t\tdidBegin()\n\t}\n}\n"
  },
  {
    "path": "NPButtonFlip/Classes/NPFlipView/NPFlipView.swift",
    "content": "/*\nCopyright 2015 NEOPIXL S.A.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n*/\n\nimport UIKit\n\npublic class NPFlipView: UIControl {\n\n    private var frontImageView=UIImageView()\n    private var backImageView=UIImageView()\n    private var backDisplayed = false\n\n    private var completionBlock:(() -> Void)?\n\n    // MARK: - init\n    override init(frame: CGRect) {\n        super.init(frame: frame)\n        self.addSubview(frontImageView)\n        self.addSubview(backImageView)\n    }\n\n\trequired public init?(coder aDecoder: NSCoder) {\n\t\tsuper.init(coder: aDecoder)\n\n\t\tself.addSubview(frontImageView)\n\t\tself.addSubview(backImageView)\n\t}\n\n    // MARK: - set front and back Images\n    public func setImages(frontImage: UIImage, backImage: UIImage) {\n\n        self.frontImageView.image = frontImage\n        self.frontImageView.frame.size = frontImage.size\n        self.backImageView.image = backImage\n        self.backImageView.frame.size = backImage.size\n\n        self.enableSadow()\n    }\n\n    // MARK: - Disable Shadow on Image\n\n    public func disableShadow() {\n        self.frontImageView.layer.shadowColor = nil\n        self.frontImageView.layer.shadowOpacity = 1\n        self.frontImageView.layer.shadowOffset = CGSize()\n        self.frontImageView.layer.shadowRadius = 0\n        self.frontImageView.layer.masksToBounds = false\n        self.frontImageView.layer.zPosition = 0\n        self.frontImageView.layer.shouldRasterize = true\n\n        self.backImageView.layer.shadowColor = nil\n        self.backImageView.layer.shadowOpacity = 1\n        self.backImageView.layer.shadowOffset = CGSize()\n        self.backImageView.layer.shadowRadius = 0\n        self.backImageView.layer.masksToBounds = false\n        self.backImageView.layer.zPosition = 0\n        self.backImageView.layer.shouldRasterize = true\n    }\n\n    // MARK: - Enable Shadow on Image\n\t\n    public func enableSadow() {\n        self.frontImageView.layer.shadowColor = UIColor.black.cgColor\n        self.frontImageView.layer.shadowOpacity = 0.25\n        self.frontImageView.layer.shadowOffset = CGSize(width: 0, height: 2)\n        self.frontImageView.layer.shadowRadius = 2\n        self.frontImageView.layer.masksToBounds = false\n        self.frontImageView.layer.zPosition = -1\n        self.frontImageView.layer.shouldRasterize = true\n\n        self.backImageView.layer.shadowColor = UIColor.black.cgColor\n        self.backImageView.layer.shadowOpacity = 0.25\n        self.backImageView.layer.shadowOffset = CGSize(width: 0, height: 2)\n        self.backImageView.layer.shadowRadius = 2\n        self.backImageView.layer.masksToBounds = false\n        self.backImageView.layer.zPosition = -1\n        self.backImageView.layer.shouldRasterize = true\n    }\n\n    // MARK: - touches Management\n\n\tpublic override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {\n\t\tself.sendActions(for: .touchDown)\n    }\n\n\tpublic override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {\n\t\tself.sendActions(for: .touchUpInside)\n    }\n\n    // MARK: - flip\n\n    public func flip(animated: Bool, duration: TimeInterval, completionBlock:(() -> Void)!) {\n        if animated {\n\t\t\tUIView.transition(with: self, duration: 0.3, options: .transitionFlipFromRight, animations: {\n\t\t\t\t//animations\n\t\t\t\tif !self.backDisplayed {\n\t\t\t\t\tself.backImageView.removeFromSuperview()\n\t\t\t\t\tself.addSubview(self.frontImageView)\n\t\t\t\t} else {\n\t\t\t\t\tself.frontImageView.removeFromSuperview()\n\t\t\t\t\tself.addSubview(self.backImageView)\n\t\t\t\t}\n\t\t\t\tself.backDisplayed = !self.backDisplayed\n\t\t\t}, completion: { (finished) in\n\t\t\t\tif let block = completionBlock {\n\t\t\t\t\tblock()\n\t\t\t\t}\n\t\t\t})\n\t\t} else {\n            if !self.backDisplayed {\n                self.backImageView.removeFromSuperview()\n                self.addSubview(self.frontImageView)\n            } else {\n                self.frontImageView.removeFromSuperview()\n                self.addSubview(self.backImageView)\n            }\n            if let block = completionBlock {\n                block()\n            }\n        }\n    }\n\n    public func flip(animated: Bool, duration: TimeInterval, toBack: Bool, completionBlock: ((Bool) -> Void)!) {\n        if(toBack != backDisplayed) {\n            if animated {\n\t\t\t\tUIView.transition(with: self, duration: 0.3, options: .transitionFlipFromRight, animations: {\n                    //animations\n                    if toBack {\n                        self.backImageView.removeFromSuperview()\n                        self.addSubview(self.frontImageView)\n                    } else {\n                        self.frontImageView.removeFromSuperview()\n                        self.addSubview(self.backImageView)\n                    }\n                    self.backDisplayed = toBack\n                    }, completion: { (finished) in\n                        if let block = completionBlock {\n\t\t\t\t\t\t\tblock(finished)\n\t\t\t\t\t\t}\n\t\t\t\t})\n\n            } else {\n                if toBack {\n                    self.backImageView.removeFromSuperview()\n                    self.addSubview(self.frontImageView)\n                } else {\n                    self.frontImageView.removeFromSuperview()\n                    self.addSubview(self.backImageView)\n                }\n                self.backDisplayed = toBack\n                if let block = completionBlock {\n                    block(true)\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "NPButtonFlip/Images.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"iphone\",\n      \"size\" : \"60x60\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "NPButtonFlip/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "NPButtonFlip/ViewController.swift",
    "content": "//\n//  ViewController.swift\n//  NPButtonFlip\n//\n//  Created by Glibert Axel on 30/12/14.\n//  Copyright (c) 2014 Neopixl. All rights reserved.\n//\n\nimport UIKit\n\nclass ViewController: UIViewController {\n\n    @IBOutlet weak var buttonBig: NPButtonWithFilp!\n    @IBOutlet weak var buttonLeft: NPButtonWithFilp!\n    @IBOutlet weak var buttonRight: NPButtonWithFilp!\n    @IBOutlet weak var labelAction: UILabel!\n    @IBOutlet weak var flipLeft: NPFlipView!\n    @IBOutlet weak var flipRight: NPFlipView!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        // Do any additional setup after loading the view, typically from a nib.\n\t\t\n        if let textFont = UIFont(name: \"HelveticaNeue-Light\", size: 16) {\n            if let imageOff = UIImage(named: \"btn_right_off\") {\n                if let imageOn = UIImage(named: \"btn_right_on\") {\n                    let borderColor = UIColor(white: 230/255, alpha: 1)\n                    let offColor = UIColor.white\n                    let onColor = UIColor(red: 93/255, green: 202/255, blue: 115/255, alpha: 1)\n\t\t\t\t\tbuttonBig.setParameters(borderColor: borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: \"This is good\", textFont: textFont)\n\t\t\t\t\tbuttonRight.setParameters(borderColor: borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: \"Good\", textFont: textFont)\n\n                    //Frame of the NPFlipView must be a little bigger than the image to not crop the shadow animation if shadow is used (by default it's used)\n\t\t\t\t\tflipRight.setImages(frontImage: imageOff, backImage: imageOn)\n                }\n            }\n\n            if let imageOff = UIImage(named: \"btn_wrong_off\") {\n                if let imageOn = UIImage(named: \"btn_wrong_on\") {\n                    let borderColor = UIColor(white: 230/255, alpha: 1)\n                    let offColor = UIColor.white\n                    let onColor = UIColor(red: 222/255, green: 142/255, blue: 92/255, alpha: 1)\n\t\t\t\t\tbuttonLeft.setParameters(borderColor: borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: \"Bad\", textFont: textFont)\n\n                    //Frame of the NPFlipView must be a little bigger than the image to not crop the shadow animation if shadow is used (by default it's used)\n\t\t\t\t\tflipLeft.setImages(frontImage: imageOff, backImage: imageOn)\n                    flipLeft.disableShadow()\n                }\n            }\n\n        }\n    }\n\n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n        // Dispose of any resources that can be recreated.\n    }\n\n    // MARK: Buttons Actions\n\n    @IBAction func buttonBigTouchUpInside(_ sender: Any) {\n        labelAction.text = \"Action : This is good TouchUpInside\"\n    }\n\n    @IBAction func buttonBigTouchDown(_ sender: Any) {\n        labelAction.text = \"Action : This is good TouchDown\"\n    }\n\n    @IBAction func buttonLeftTouchUpInside(_ sender: Any) {\n        labelAction.text = \"Action : Bad TouchUpInside\"\n    }\n\n    @IBAction func buttonLeftTouchDown(_ sender: Any) {\n        labelAction.text = \"Action : Bad TouchDown\"\n    }\n\n    @IBAction func buttonRightTouchUpInside(_ sender: Any) {\n        labelAction.text = \"Action : Good TouchUpInside\"\n    }\n\n    @IBAction func buttonRightTouchDown(_ sender: Any) {\n        labelAction.text = \"Action : Good TouchDown\"\n    }\n\n    @IBAction func flipViewLeftTouchUpInside(_ sender: Any) {\n        labelAction.text = \"Action : flipLeft TouchUpInside\"\n        //flip the flipLeft and when finished, display a alert.\n        flipLeft.flip(animated: true, duration: 0.3, completionBlock: { () -> Void in\n            let refreshAlert = UIAlertView()\n            refreshAlert.title = \"Finished\"\n            refreshAlert.message = \"Flip finished.\"\n\t\t\trefreshAlert.addButton(withTitle: \"OK\")\n            refreshAlert.show()\n        })\n    }\n\n    @IBAction func flipViewLeftTouchDown(_ sender: Any) {\n        labelAction.text = \"Action : flipLeft TouchDown\"\n    }\n\n    @IBAction func flipViewRightTouchUpInside(_ sender: Any) {\n        labelAction.text = \"Action : flipRight TouchUpInside\"\n        //flip the flipRight and when finished, display a alert.\n        flipRight.flip(animated: true, duration: 0.3, completionBlock: { () -> Void in\n            let refreshAlert = UIAlertView()\n            refreshAlert.title = \"Finished\"\n            refreshAlert.message = \"Flip finished.\"\n\t\t\trefreshAlert.addButton(withTitle: \"OK\")\n            refreshAlert.show()\n        })\n    }\n\n    @IBAction func flipViewRightTouchDown(_ sender: Any) {\n        labelAction.text = \"Action : flipRight TouchDown\"\n    }\n\n    @IBAction func toBack(_ sender: Any) {\n        //flip all flip to back\n        flipRight.flip(animated: true, duration: 0.3, toBack:true, completionBlock: nil)\n        flipLeft.flip(animated: true, duration: 0.3, toBack:true, completionBlock: nil)\n    }\n    @IBAction func toFront(_ sender: Any) {\n        //flip all flip to front\n        flipRight.flip(animated: true, duration: 0.3, toBack:false, completionBlock: nil)\n        flipLeft.flip(animated: true, duration: 0.3, toBack:false, completionBlock: nil)\n    }\n    @IBAction func on(_ sender: Any) {\n        //set all button to on\n\t\tbuttonRight.setState(on: true, animated: true)\n\t\tbuttonLeft.setState(on: true, animated: true)\n\t\tbuttonBig.setState(on: true, animated: true)\n    }\n    @IBAction func off(_ sender: Any) {\n        //set all button to off\n\t\tbuttonRight.setState(on: false, animated: true)\n\t\tbuttonLeft.setState(on: false, animated: true)\n\t\tbuttonBig.setState(on: false, animated: true)\n    }\n}\n"
  },
  {
    "path": "NPButtonFlip.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t77405D951A528E7700033517 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77405D941A528E7700033517 /* AppDelegate.swift */; };\n\t\t77405D971A528E7700033517 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77405D961A528E7700033517 /* ViewController.swift */; };\n\t\t77405D9A1A528E7700033517 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 77405D981A528E7700033517 /* Main.storyboard */; };\n\t\t77405D9C1A528E7700033517 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 77405D9B1A528E7700033517 /* Images.xcassets */; };\n\t\t77405D9F1A528E7700033517 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 77405D9D1A528E7700033517 /* LaunchScreen.xib */; };\n\t\t77405DAB1A528E7700033517 /* NPButtonFlipTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77405DAA1A528E7700033517 /* NPButtonFlipTests.swift */; };\n\t\t77405DB91A528F4900033517 /* NPButtonWithFilp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77405DB61A528F4900033517 /* NPButtonWithFilp.swift */; };\n\t\t77405DBA1A528F4900033517 /* NPFlipView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 77405DB81A528F4900033517 /* NPFlipView.swift */; };\n\t\t77405DC41A52905400033517 /* btn_right_on.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DBC1A52905400033517 /* btn_right_on.png */; };\n\t\t77405DC51A52905400033517 /* btn_right_on@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DBD1A52905400033517 /* btn_right_on@2x.png */; };\n\t\t77405DC61A52905400033517 /* btn_right_off.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DBE1A52905400033517 /* btn_right_off.png */; };\n\t\t77405DC71A52905400033517 /* btn_right_off@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DBF1A52905400033517 /* btn_right_off@2x.png */; };\n\t\t77405DC81A52905400033517 /* btn_wrong_on.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DC01A52905400033517 /* btn_wrong_on.png */; };\n\t\t77405DC91A52905400033517 /* btn_wrong_on@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DC11A52905400033517 /* btn_wrong_on@2x.png */; };\n\t\t77405DCA1A52905400033517 /* btn_wrong_off.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DC21A52905400033517 /* btn_wrong_off.png */; };\n\t\t77405DCB1A52905400033517 /* btn_wrong_off@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 77405DC31A52905400033517 /* btn_wrong_off@2x.png */; };\n\t\t779301221A5300C8003CE683 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = 779301211A5300C8003CE683 /* README.md */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t77405DA51A528E7700033517 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 77405D871A528E7700033517 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 77405D8E1A528E7700033517;\n\t\t\tremoteInfo = NPButtonFlip;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t77405D8F1A528E7700033517 /* NPButtonFlip.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NPButtonFlip.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t77405D931A528E7700033517 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t77405D941A528E7700033517 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t77405D961A528E7700033517 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = \"<group>\"; };\n\t\t77405D991A528E7700033517 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t77405D9B1A528E7700033517 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = \"<group>\"; };\n\t\t77405D9E1A528E7700033517 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = \"<group>\"; };\n\t\t77405DA41A528E7700033517 /* NPButtonFlipTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NPButtonFlipTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t77405DA91A528E7700033517 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t77405DAA1A528E7700033517 /* NPButtonFlipTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NPButtonFlipTests.swift; sourceTree = \"<group>\"; };\n\t\t77405DB61A528F4900033517 /* NPButtonWithFilp.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NPButtonWithFilp.swift; sourceTree = \"<group>\"; };\n\t\t77405DB81A528F4900033517 /* NPFlipView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NPFlipView.swift; sourceTree = \"<group>\"; };\n\t\t77405DBC1A52905400033517 /* btn_right_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = btn_right_on.png; sourceTree = \"<group>\"; };\n\t\t77405DBD1A52905400033517 /* btn_right_on@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"btn_right_on@2x.png\"; sourceTree = \"<group>\"; };\n\t\t77405DBE1A52905400033517 /* btn_right_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = btn_right_off.png; sourceTree = \"<group>\"; };\n\t\t77405DBF1A52905400033517 /* btn_right_off@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"btn_right_off@2x.png\"; sourceTree = \"<group>\"; };\n\t\t77405DC01A52905400033517 /* btn_wrong_on.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = btn_wrong_on.png; sourceTree = \"<group>\"; };\n\t\t77405DC11A52905400033517 /* btn_wrong_on@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"btn_wrong_on@2x.png\"; sourceTree = \"<group>\"; };\n\t\t77405DC21A52905400033517 /* btn_wrong_off.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = btn_wrong_off.png; sourceTree = \"<group>\"; };\n\t\t77405DC31A52905400033517 /* btn_wrong_off@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = \"btn_wrong_off@2x.png\"; sourceTree = \"<group>\"; };\n\t\t779301211A5300C8003CE683 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t77405D8C1A528E7700033517 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t77405DA11A528E7700033517 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t77405D861A528E7700033517 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405D911A528E7700033517 /* NPButtonFlip */,\n\t\t\t\t77405DA71A528E7700033517 /* NPButtonFlipTests */,\n\t\t\t\t77405D901A528E7700033517 /* Products */,\n\t\t\t\t779301211A5300C8003CE683 /* README.md */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405D901A528E7700033517 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405D8F1A528E7700033517 /* NPButtonFlip.app */,\n\t\t\t\t77405DA41A528E7700033517 /* NPButtonFlipTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405D911A528E7700033517 /* NPButtonFlip */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DBB1A52905400033517 /* Ressources */,\n\t\t\t\t77405DB41A528F4900033517 /* Classes */,\n\t\t\t\t77405D941A528E7700033517 /* AppDelegate.swift */,\n\t\t\t\t77405D961A528E7700033517 /* ViewController.swift */,\n\t\t\t\t77405D981A528E7700033517 /* Main.storyboard */,\n\t\t\t\t77405D9B1A528E7700033517 /* Images.xcassets */,\n\t\t\t\t77405D9D1A528E7700033517 /* LaunchScreen.xib */,\n\t\t\t\t77405D921A528E7700033517 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = NPButtonFlip;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405D921A528E7700033517 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405D931A528E7700033517 /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DA71A528E7700033517 /* NPButtonFlipTests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DAA1A528E7700033517 /* NPButtonFlipTests.swift */,\n\t\t\t\t77405DA81A528E7700033517 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = NPButtonFlipTests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DA81A528E7700033517 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DA91A528E7700033517 /* Info.plist */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DB41A528F4900033517 /* Classes */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DB51A528F4900033517 /* NPButtonWithFlip */,\n\t\t\t\t77405DB71A528F4900033517 /* NPFlipView */,\n\t\t\t);\n\t\t\tpath = Classes;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DB51A528F4900033517 /* NPButtonWithFlip */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DB61A528F4900033517 /* NPButtonWithFilp.swift */,\n\t\t\t);\n\t\t\tpath = NPButtonWithFlip;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DB71A528F4900033517 /* NPFlipView */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DB81A528F4900033517 /* NPFlipView.swift */,\n\t\t\t);\n\t\t\tpath = NPFlipView;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405DBB1A52905400033517 /* Ressources */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t77405DBC1A52905400033517 /* btn_right_on.png */,\n\t\t\t\t77405DBD1A52905400033517 /* btn_right_on@2x.png */,\n\t\t\t\t77405DBE1A52905400033517 /* btn_right_off.png */,\n\t\t\t\t77405DBF1A52905400033517 /* btn_right_off@2x.png */,\n\t\t\t\t77405DC01A52905400033517 /* btn_wrong_on.png */,\n\t\t\t\t77405DC11A52905400033517 /* btn_wrong_on@2x.png */,\n\t\t\t\t77405DC21A52905400033517 /* btn_wrong_off.png */,\n\t\t\t\t77405DC31A52905400033517 /* btn_wrong_off@2x.png */,\n\t\t\t);\n\t\t\tpath = Ressources;\n\t\t\tsourceTree = SOURCE_ROOT;\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t77405D8E1A528E7700033517 /* NPButtonFlip */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 77405DAE1A528E7700033517 /* Build configuration list for PBXNativeTarget \"NPButtonFlip\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t77405D8B1A528E7700033517 /* Sources */,\n\t\t\t\t77405D8C1A528E7700033517 /* Frameworks */,\n\t\t\t\t77405D8D1A528E7700033517 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = NPButtonFlip;\n\t\t\tproductName = NPButtonFlip;\n\t\t\tproductReference = 77405D8F1A528E7700033517 /* NPButtonFlip.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t77405DA31A528E7700033517 /* NPButtonFlipTests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 77405DB11A528E7700033517 /* Build configuration list for PBXNativeTarget \"NPButtonFlipTests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t77405DA01A528E7700033517 /* Sources */,\n\t\t\t\t77405DA11A528E7700033517 /* Frameworks */,\n\t\t\t\t77405DA21A528E7700033517 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t77405DA61A528E7700033517 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = NPButtonFlipTests;\n\t\t\tproductName = NPButtonFlipTests;\n\t\t\tproductReference = 77405DA41A528E7700033517 /* NPButtonFlipTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t77405D871A528E7700033517 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1010;\n\t\t\t\tORGANIZATIONNAME = Neopixl;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t77405D8E1A528E7700033517 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1.1;\n\t\t\t\t\t\tLastSwiftMigration = 0820;\n\t\t\t\t\t};\n\t\t\t\t\t77405DA31A528E7700033517 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1.1;\n\t\t\t\t\t\tLastSwiftMigration = 0820;\n\t\t\t\t\t\tTestTargetID = 77405D8E1A528E7700033517;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 77405D8A1A528E7700033517 /* Build configuration list for PBXProject \"NPButtonFlip\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 77405D861A528E7700033517;\n\t\t\tproductRefGroup = 77405D901A528E7700033517 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t77405D8E1A528E7700033517 /* NPButtonFlip */,\n\t\t\t\t77405DA31A528E7700033517 /* NPButtonFlipTests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t77405D8D1A528E7700033517 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t77405DC61A52905400033517 /* btn_right_off.png in Resources */,\n\t\t\t\t77405DC71A52905400033517 /* btn_right_off@2x.png in Resources */,\n\t\t\t\t77405D9A1A528E7700033517 /* Main.storyboard in Resources */,\n\t\t\t\t77405D9F1A528E7700033517 /* LaunchScreen.xib in Resources */,\n\t\t\t\t77405D9C1A528E7700033517 /* Images.xcassets in Resources */,\n\t\t\t\t77405DC51A52905400033517 /* btn_right_on@2x.png in Resources */,\n\t\t\t\t77405DC81A52905400033517 /* btn_wrong_on.png in Resources */,\n\t\t\t\t77405DCA1A52905400033517 /* btn_wrong_off.png in Resources */,\n\t\t\t\t77405DCB1A52905400033517 /* btn_wrong_off@2x.png in Resources */,\n\t\t\t\t77405DC41A52905400033517 /* btn_right_on.png in Resources */,\n\t\t\t\t77405DC91A52905400033517 /* btn_wrong_on@2x.png in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t77405DA21A528E7700033517 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t77405D8B1A528E7700033517 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t77405DB91A528F4900033517 /* NPButtonWithFilp.swift in Sources */,\n\t\t\t\t77405D971A528E7700033517 /* ViewController.swift in Sources */,\n\t\t\t\t779301221A5300C8003CE683 /* README.md in Sources */,\n\t\t\t\t77405D951A528E7700033517 /* AppDelegate.swift in Sources */,\n\t\t\t\t77405DBA1A528F4900033517 /* NPFlipView.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t77405DA01A528E7700033517 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t77405DAB1A528E7700033517 /* NPButtonFlipTests.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t77405DA61A528E7700033517 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 77405D8E1A528E7700033517 /* NPButtonFlip */;\n\t\t\ttargetProxy = 77405DA51A528E7700033517 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t77405D981A528E7700033517 /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t77405D991A528E7700033517 /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t77405D9D1A528E7700033517 /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t77405D9E1A528E7700033517 /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t77405DAC1A528E7700033517 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_SYMBOLS_PRIVATE_EXTERN = NO;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t77405DAD1A528E7700033517 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";\n\t\t\t\tCOPY_PHASE_STRIP = YES;\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Owholemodule\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t77405DAF1A528E7700033517 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = NPButtonFlip/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.neopixl.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t77405DB01A528E7700033517 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tINFOPLIST_FILE = NPButtonFlip/Info.plist;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 8.0;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.neopixl.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.2;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t77405DB21A528E7700033517 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = NPButtonFlipTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.neopixl.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/NPButtonFlip.app/NPButtonFlip\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t77405DB31A528E7700033517 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tBUNDLE_LOADER = \"$(TEST_HOST)\";\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(SDKROOT)/Developer/Library/Frameworks\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tINFOPLIST_FILE = NPButtonFlipTests/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks @loader_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.neopixl.$(PRODUCT_NAME:rfc1034identifier)\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 3.0;\n\t\t\t\tTEST_HOST = \"$(BUILT_PRODUCTS_DIR)/NPButtonFlip.app/NPButtonFlip\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t77405D8A1A528E7700033517 /* Build configuration list for PBXProject \"NPButtonFlip\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t77405DAC1A528E7700033517 /* Debug */,\n\t\t\t\t77405DAD1A528E7700033517 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t77405DAE1A528E7700033517 /* Build configuration list for PBXNativeTarget \"NPButtonFlip\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t77405DAF1A528E7700033517 /* Debug */,\n\t\t\t\t77405DB01A528E7700033517 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t77405DB11A528E7700033517 /* Build configuration list for PBXNativeTarget \"NPButtonFlipTests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t77405DB21A528E7700033517 /* Debug */,\n\t\t\t\t77405DB31A528E7700033517 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 77405D871A528E7700033517 /* Project object */;\n}\n"
  },
  {
    "path": "NPButtonFlip.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:NPButtonFlip.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "NPButtonFlip.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "NPButtonFlipTests/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "NPButtonFlipTests/NPButtonFlipTests.swift",
    "content": "//\n//  NPButtonFlipTests.swift\n//  NPButtonFlipTests\n//\n//  Created by Glibert Axel on 30/12/14.\n//  Copyright (c) 2014 Neopixl. All rights reserved.\n//\n\nimport UIKit\nimport XCTest\n\nclass NPButtonFlipTests: XCTestCase {\n    \n    override func setUp() {\n        super.setUp()\n        // Put setup code here. This method is called before the invocation of each test method in the class.\n    }\n    \n    override func tearDown() {\n        // Put teardown code here. This method is called after the invocation of each test method in the class.\n        super.tearDown()\n    }\n    \n    func testExample() {\n        // This is an example of a functional test case.\n        XCTAssert(true, \"Pass\")\n    }\n    \n    func testPerformanceExample() {\n        // This is an example of a performance test case.\n        self.measure() {\n            // Put the code you want to measure the time of here.\n        }\n    }\n    \n}\n"
  },
  {
    "path": "NPFlipButton.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name = 'NPFlipButton'\n  s.version = '1.0.2'\n  s.license = 'Apache 2.0'\n  s.summary = 'This is a simple button with a circle at right, who will animate when changing state.'\n  s.homepage = 'https://github.com/neopixl/NPFlipButton'\n  s.social_media_url = 'http://twitter.com/neopixl'\n  s.authors = { 'Neopixl S.A.' => 'contact@neopixl.com' }\n  s.source = { :git => 'https://github.com/neopixl/NPFlipButton.git', :tag => s.version }\n  s.platform = :ios\n  s.ios.deployment_target = '8.0'\n\n  s.source_files = 'NPButtonFlip/Classes/*/*.swift'\n\n  s.requires_arc = true\nend\n"
  },
  {
    "path": "README.md",
    "content": "# NPFlipButton\n![Version](https://img.shields.io/cocoapods/v/NPFlipButton.svg?style=flat)\n![License](https://img.shields.io/cocoapods/l/NPFlipButton.svg?style=flat)\n![Platform](https://img.shields.io/cocoapods/p/NPFlipButton.svg?style=flat)\n***\n\nThis is a simple button with a circle at right, who will animate when changing state.\n\n<img src = \"https://github.com/neopixl/NPFlipButton/blob/master/Documentation/npflipbutton.gif?raw=true\" />\n\n\n## Features\n\n- automatically draw the button and set its text\n- animate the state change\n\n## Installation\n\n> **Embedded frameworks require a minimum deployment target of iOS 8.**\n>\n> To use NPFlipButton with a project targeting iOS 7, you must include the files in `Classes/NPButtonWithFlip` and `Classes/NPFlipView` directly in your project.\n>\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.\n\nCocoaPods 0.36 adds supports for Swift and embedded frameworks. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate NPFlipButton into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'NPFlipButton'\n```\n\n***Swift 2 Support*** (only with version 1.0.0) :\n\n```ruby\npod 'NPFlipButton', '~> 1.0.0'\n```\n\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n## Usage\n\nImport NPFlipButton\n```swift\nimport NPFlipButton\n```\nInstantiate a new NPButtonWithFlip or get it from a Storyboard\nConfigure the parameters:\n```swift\nbutton.setParameters(borderColor: borderColor, offColor: offColor, onColor: onColor, flipOffImage: imageOff, flipOnImage: imageOn, text: \"Button\", textFont: textFont)\n\n```\n\n## Small Print\n\n### Author\n\n[Neopixl](http://www.neopixl.com)\n\n### License\n-------------------------\n\nCopyright 2015 Neopixl S.A. - Apache 2.0 licence. \n"
  }
]