[
  {
    "path": ".gitignore",
    "content": "# Xcode\n#\n# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore\n\n## Build generated\nbuild/\nDerivedData\n\n## Various settings\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n\n## Other\n*.xccheckout\n*.moved-aside\n*.xcuserstate\n*.xcscmblueprint\n\n## Obj-C/Swift specific\n*.hmap\n*.ipa\n\n## Playgrounds\ntimeline.xctimeline\nplayground.xcworkspace\n\n# Swift Package Manager\n#\n# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.\n# Packages/\n.build/\n\n# CocoaPods\n#\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control\n#\n# Pods/\n\n# Carthage\n#\n# Add this line if you want to avoid checking in source code from Carthage dependencies.\n# Carthage/Checkouts\n\nCarthage/Build\n\n# fastlane\n#\n# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the \n# screenshots whenever they are needed.\n# For more information about the recommended setup visit:\n# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md\n\nfastlane/report.xml\nfastlane/screenshots\n"
  },
  {
    "path": "Example/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  Example\n//\n//  Created by Jake Lawson on 04/06/2016.\n//  Copyright © 2016 Jake Lawson. All rights reserved.\n//\n\nimport UIKit\n\n@UIApplicationMain\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n\n    var window: UIWindow?\n\n\n    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}\n\n"
  },
  {
    "path": "Example/Assets.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      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"29x29\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"40x40\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"ipad\",\n      \"size\" : \"76x76\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Example/Base.lproj/LaunchScreen.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"10117\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"10085\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"EHf-IW-A2E\">\n            <objects>\n                <viewController id=\"01J-lp-oVM\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"Llm-lL-Icb\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"xb3-aO-Qok\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"Ze5-6b-2t3\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"iYj-Kq-Ea1\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"53\" y=\"375\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "Example/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=\"10117\" systemVersion=\"15F34\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <deployment identifier=\"iOS\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"10085\"/>\n    </dependencies>\n    <scenes>\n        <!--Main View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"MainViewController\" customModule=\"Example\" customModuleProvider=\"target\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5nH-sl-7P9\">\n                                <rect key=\"frame\" x=\"233\" y=\"285\" width=\"134\" height=\"30\"/>\n                                <state key=\"normal\" title=\"Show flickable view\"/>\n                                <connections>\n                                    <segue destination=\"XmW-5R-SG1\" kind=\"presentation\" modalPresentationStyle=\"overFullScreen\" modalTransitionStyle=\"crossDissolve\" id=\"466-A7-jAC\"/>\n                                </connections>\n                            </button>\n                        </subviews>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                        <constraints>\n                            <constraint firstItem=\"5nH-sl-7P9\" firstAttribute=\"centerY\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"centerY\" id=\"YB3-jt-X23\"/>\n                            <constraint firstItem=\"5nH-sl-7P9\" firstAttribute=\"centerX\" secondItem=\"8bC-Xf-vdC\" secondAttribute=\"centerX\" id=\"zDy-2u-yd0\"/>\n                        </constraints>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"1136\" y=\"124\"/>\n        </scene>\n        <!--Flick To Dismiss View Controller-->\n        <scene sceneID=\"ZqU-Ze-wic\">\n            <objects>\n                <viewController id=\"XmW-5R-SG1\" customClass=\"FlickToDismissViewController\" customModule=\"Example\" customModuleProvider=\"target\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"wFy-U3-Koc\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"bxl-jM-wPh\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"ZUO-0n-Gnr\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <view contentMode=\"scaleToFill\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gA8-yI-JgI\">\n                                <rect key=\"frame\" x=\"160\" y=\"150\" width=\"280\" height=\"300\"/>\n                                <subviews>\n                                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"AJ3-Ze-KpC\">\n                                        <rect key=\"frame\" x=\"20\" y=\"20\" width=\"240\" height=\"21\"/>\n                                        <color key=\"backgroundColor\" white=\"0.90045914783344405\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                        <constraints>\n                                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"5wK-U1-M7O\"/>\n                                        </constraints>\n                                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                        <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                        <nil key=\"highlightedColor\"/>\n                                    </label>\n                                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"\" textAlignment=\"natural\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"B40-gw-kj6\">\n                                        <rect key=\"frame\" x=\"20\" y=\"81\" width=\"200\" height=\"21\"/>\n                                        <color key=\"backgroundColor\" white=\"0.90000000000000002\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                        <constraints>\n                                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"gwT-Lm-GnX\"/>\n                                        </constraints>\n                                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                        <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                        <nil key=\"highlightedColor\"/>\n                                    </label>\n                                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"\" textAlignment=\"natural\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lpO-Fe-nB7\">\n                                        <rect key=\"frame\" x=\"20\" y=\"110\" width=\"220\" height=\"21\"/>\n                                        <color key=\"backgroundColor\" white=\"0.90000000000000002\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                        <constraints>\n                                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"URF-nO-rka\"/>\n                                        </constraints>\n                                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                        <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                        <nil key=\"highlightedColor\"/>\n                                    </label>\n                                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"\" textAlignment=\"natural\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JmD-qe-yF6\">\n                                        <rect key=\"frame\" x=\"20\" y=\"139\" width=\"214\" height=\"21\"/>\n                                        <color key=\"backgroundColor\" white=\"0.90000000000000002\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                        <constraints>\n                                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"HAP-Tw-FIo\"/>\n                                        </constraints>\n                                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                        <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                        <nil key=\"highlightedColor\"/>\n                                    </label>\n                                    <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"\" textAlignment=\"natural\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"P3O-h1-BYZ\">\n                                        <rect key=\"frame\" x=\"20\" y=\"168\" width=\"240\" height=\"21\"/>\n                                        <color key=\"backgroundColor\" white=\"0.90000000000000002\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                        <constraints>\n                                            <constraint firstAttribute=\"height\" constant=\"21\" id=\"c6B-Zf-Mz7\"/>\n                                        </constraints>\n                                        <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                                        <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                                        <nil key=\"highlightedColor\"/>\n                                    </label>\n                                </subviews>\n                                <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                <constraints>\n                                    <constraint firstItem=\"JmD-qe-yF6\" firstAttribute=\"top\" secondItem=\"lpO-Fe-nB7\" secondAttribute=\"bottom\" constant=\"8\" id=\"9fT-M2-8Hk\"/>\n                                    <constraint firstItem=\"P3O-h1-BYZ\" firstAttribute=\"leading\" secondItem=\"gA8-yI-JgI\" secondAttribute=\"leading\" constant=\"20\" id=\"Agj-yR-SaN\"/>\n                                    <constraint firstItem=\"P3O-h1-BYZ\" firstAttribute=\"top\" secondItem=\"JmD-qe-yF6\" secondAttribute=\"bottom\" constant=\"8\" id=\"HJZ-QI-bdi\"/>\n                                    <constraint firstAttribute=\"trailing\" secondItem=\"lpO-Fe-nB7\" secondAttribute=\"trailing\" constant=\"40\" id=\"P0p-HL-cKu\"/>\n                                    <constraint firstAttribute=\"trailing\" secondItem=\"AJ3-Ze-KpC\" secondAttribute=\"trailing\" constant=\"20\" id=\"QuG-wR-vsd\"/>\n                                    <constraint firstItem=\"lpO-Fe-nB7\" firstAttribute=\"leading\" secondItem=\"B40-gw-kj6\" secondAttribute=\"leading\" id=\"SuX-uv-VzY\"/>\n                                    <constraint firstItem=\"B40-gw-kj6\" firstAttribute=\"top\" secondItem=\"AJ3-Ze-KpC\" secondAttribute=\"bottom\" constant=\"40\" id=\"Uti-f2-toA\"/>\n                                    <constraint firstAttribute=\"trailing\" secondItem=\"JmD-qe-yF6\" secondAttribute=\"trailing\" constant=\"46\" id=\"WsA-Vp-Kt9\"/>\n                                    <constraint firstAttribute=\"height\" constant=\"300\" id=\"ZsR-1I-hW3\"/>\n                                    <constraint firstItem=\"AJ3-Ze-KpC\" firstAttribute=\"leading\" secondItem=\"gA8-yI-JgI\" secondAttribute=\"leading\" constant=\"20\" id=\"cym-BV-Kdm\"/>\n                                    <constraint firstAttribute=\"trailing\" secondItem=\"B40-gw-kj6\" secondAttribute=\"trailing\" constant=\"60\" id=\"d0B-lJ-ou3\"/>\n                                    <constraint firstAttribute=\"trailing\" secondItem=\"P3O-h1-BYZ\" secondAttribute=\"trailing\" constant=\"20\" id=\"iky-Eu-NeH\"/>\n                                    <constraint firstItem=\"AJ3-Ze-KpC\" firstAttribute=\"top\" secondItem=\"gA8-yI-JgI\" secondAttribute=\"top\" constant=\"20\" id=\"ipq-g2-lNa\"/>\n                                    <constraint firstItem=\"JmD-qe-yF6\" firstAttribute=\"leading\" secondItem=\"lpO-Fe-nB7\" secondAttribute=\"leading\" id=\"m24-LP-imh\"/>\n                                    <constraint firstAttribute=\"width\" constant=\"280\" id=\"r03-cR-Fmu\"/>\n                                    <constraint firstItem=\"lpO-Fe-nB7\" firstAttribute=\"top\" secondItem=\"B40-gw-kj6\" secondAttribute=\"bottom\" constant=\"8\" id=\"rAH-Wn-cRN\"/>\n                                    <constraint firstItem=\"B40-gw-kj6\" firstAttribute=\"leading\" secondItem=\"gA8-yI-JgI\" secondAttribute=\"leading\" constant=\"20\" id=\"uvl-hY-Aoy\"/>\n                                </constraints>\n                                <userDefinedRuntimeAttributes>\n                                    <userDefinedRuntimeAttribute type=\"number\" keyPath=\"layer.cornerRadius\">\n                                        <integer key=\"value\" value=\"0\"/>\n                                    </userDefinedRuntimeAttribute>\n                                </userDefinedRuntimeAttributes>\n                            </view>\n                            <button opaque=\"NO\" contentMode=\"scaleToFill\" contentHorizontalAlignment=\"center\" contentVerticalAlignment=\"center\" buttonType=\"roundedRect\" lineBreakMode=\"middleTruncation\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lac-WH-Vep\">\n                                <rect key=\"frame\" x=\"270\" y=\"550\" width=\"60\" height=\"30\"/>\n                                <state key=\"normal\" title=\"DISMISS\">\n                                    <color key=\"titleColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                </state>\n                                <connections>\n                                    <action selector=\"dismissViewController\" destination=\"XmW-5R-SG1\" eventType=\"touchUpInside\" id=\"Zbq-xe-gop\"/>\n                                </connections>\n                            </button>\n                            <label opaque=\"NO\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"WHAT'S NEW\" textAlignment=\"natural\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" adjustsFontSizeToFit=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Yh3-4e-ns0\">\n                                <rect key=\"frame\" x=\"245\" y=\"28\" width=\"111\" height=\"21\"/>\n                                <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"17\"/>\n                                <color key=\"textColor\" white=\"1\" alpha=\"1\" colorSpace=\"calibratedWhite\"/>\n                                <nil key=\"highlightedColor\"/>\n                            </label>\n                        </subviews>\n                        <color key=\"backgroundColor\" red=\"0.54117647059999996\" green=\"0.37647058820000001\" blue=\"0.94117647059999998\" alpha=\"0.80000000000000004\" colorSpace=\"calibratedRGB\"/>\n                        <constraints>\n                            <constraint firstItem=\"Yh3-4e-ns0\" firstAttribute=\"top\" secondItem=\"wFy-U3-Koc\" secondAttribute=\"bottom\" constant=\"28\" id=\"Ek5-iN-Jxl\"/>\n                            <constraint firstItem=\"gA8-yI-JgI\" firstAttribute=\"centerX\" secondItem=\"ZUO-0n-Gnr\" secondAttribute=\"centerX\" id=\"KOp-Yy-RYI\"/>\n                            <constraint firstItem=\"gA8-yI-JgI\" firstAttribute=\"centerY\" secondItem=\"ZUO-0n-Gnr\" secondAttribute=\"centerY\" id=\"p3f-Gu-HaL\"/>\n                            <constraint firstItem=\"bxl-jM-wPh\" firstAttribute=\"top\" secondItem=\"lac-WH-Vep\" secondAttribute=\"bottom\" constant=\"20\" id=\"sIb-WS-IUa\"/>\n                            <constraint firstItem=\"lac-WH-Vep\" firstAttribute=\"centerX\" secondItem=\"ZUO-0n-Gnr\" secondAttribute=\"centerX\" id=\"t29-Dc-XxR\"/>\n                            <constraint firstItem=\"Yh3-4e-ns0\" firstAttribute=\"centerX\" secondItem=\"ZUO-0n-Gnr\" secondAttribute=\"centerX\" id=\"tvx-hc-iAN\"/>\n                        </constraints>\n                    </view>\n                    <nil key=\"simulatedStatusBarMetrics\"/>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"string\" keyPath=\"animationType\" value=\"Scale\"/>\n                    </userDefinedRuntimeAttributes>\n                    <connections>\n                        <outlet property=\"flickableView\" destination=\"gA8-yI-JgI\" id=\"vwj-Cs-9sp\"/>\n                    </connections>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"ISy-Ay-pCM\" userLabel=\"First Responder\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n            <point key=\"canvasLocation\" x=\"1835\" y=\"124\"/>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "Example/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\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "Example/MainViewController.swift",
    "content": "//\n//  ViewController.swift\n//  Example\n//\n//  Created by Jake Lawson on 04/06/2016.\n//  Copyright © 2016 Jake Lawson. All rights reserved.\n//\n\nimport UIKit\n\nclass MainViewController: UIViewController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        // Do any additional setup after loading the view, typically from a nib.\n    }\n\n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n        // Dispose of any resources that can be recreated.\n    }\n    \n    // MARK: Status bar\n    \n    override func prefersStatusBarHidden() -> Bool {\n        return true\n    }\n\n}\n\n"
  },
  {
    "path": "Example.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\t29112E951D034E020094568F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29112E941D034E020094568F /* AppDelegate.swift */; };\n\t\t29112E971D034E020094568F /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29112E961D034E020094568F /* MainViewController.swift */; };\n\t\t29112E9A1D034E020094568F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29112E981D034E020094568F /* Main.storyboard */; };\n\t\t29112E9C1D034E020094568F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29112E9B1D034E020094568F /* Assets.xcassets */; };\n\t\t29112E9F1D034E020094568F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 29112E9D1D034E020094568F /* LaunchScreen.storyboard */; };\n\t\t29112EB71D034E790094568F /* FlickToDismissViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29112EB61D034E790094568F /* FlickToDismissViewController.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t29112E911D034E020094568F /* Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Example.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t29112E941D034E020094568F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t29112E961D034E020094568F /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = \"<group>\"; };\n\t\t29112E991D034E020094568F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t29112E9B1D034E020094568F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t29112E9E1D034E020094568F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t29112EA01D034E020094568F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t29112EB61D034E790094568F /* FlickToDismissViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FlickToDismissViewController.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t29112E8E1D034E020094568F /* 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\t29112E881D034E020094568F = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112EB41D034E420094568F /* Source */,\n\t\t\t\t29112E931D034E020094568F /* Example */,\n\t\t\t\t29112E921D034E020094568F /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112E921D034E020094568F /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E911D034E020094568F /* Example.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112E931D034E020094568F /* Example */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E941D034E020094568F /* AppDelegate.swift */,\n\t\t\t\t29112EB81D034F040094568F /* Controllers */,\n\t\t\t\t29112EB91D034F0C0094568F /* Storyboards */,\n\t\t\t\t29112E9B1D034E020094568F /* Assets.xcassets */,\n\t\t\t\t29112EA01D034E020094568F /* Info.plist */,\n\t\t\t);\n\t\t\tpath = Example;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112EB41D034E420094568F /* Source */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112EB61D034E790094568F /* FlickToDismissViewController.swift */,\n\t\t\t);\n\t\t\tpath = Source;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112EB81D034F040094568F /* Controllers */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E961D034E020094568F /* MainViewController.swift */,\n\t\t\t);\n\t\t\tname = Controllers;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112EB91D034F0C0094568F /* Storyboards */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E9D1D034E020094568F /* LaunchScreen.storyboard */,\n\t\t\t\t29112E981D034E020094568F /* Main.storyboard */,\n\t\t\t);\n\t\t\tname = Storyboards;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t29112E901D034E020094568F /* Example */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 29112EAE1D034E020094568F /* Build configuration list for PBXNativeTarget \"Example\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t29112E8D1D034E020094568F /* Sources */,\n\t\t\t\t29112E8E1D034E020094568F /* Frameworks */,\n\t\t\t\t29112E8F1D034E020094568F /* 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 = Example;\n\t\t\tproductName = Example;\n\t\t\tproductReference = 29112E911D034E020094568F /* Example.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t29112E891D034E020094568F /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 0730;\n\t\t\t\tLastUpgradeCheck = 0730;\n\t\t\t\tORGANIZATIONNAME = \"Jake Lawson\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t29112E901D034E020094568F = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3.1;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 29112E8C1D034E020094568F /* Build configuration list for PBXProject \"Example\" */;\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 = 29112E881D034E020094568F;\n\t\t\tproductRefGroup = 29112E921D034E020094568F /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t29112E901D034E020094568F /* Example */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t29112E8F1D034E020094568F /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t29112E9F1D034E020094568F /* LaunchScreen.storyboard in Resources */,\n\t\t\t\t29112E9C1D034E020094568F /* Assets.xcassets in Resources */,\n\t\t\t\t29112E9A1D034E020094568F /* Main.storyboard in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t29112E8D1D034E020094568F /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t29112E971D034E020094568F /* MainViewController.swift in Sources */,\n\t\t\t\t29112EB71D034E790094568F /* FlickToDismissViewController.swift in Sources */,\n\t\t\t\t29112E951D034E020094568F /* AppDelegate.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\t29112E981D034E020094568F /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E991D034E020094568F /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t29112E9D1D034E020094568F /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t29112E9E1D034E020094568F /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t29112EAC1D034E020094568F /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\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_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = 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_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\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\tDEBUG_INFORMATION_FORMAT = dwarf;\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_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 = 9.3;\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\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t29112EAD1D034E020094568F /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\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_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = 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_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\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\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\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 = 9.3;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tTARGETED_DEVICE_FAMILY = \"1,2\";\n\t\t\t\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t29112EAF1D034E020094568F /* 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 = Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.jakelawson.Example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t29112EB01D034E020094568F /* 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 = Example/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.jakelawson.Example;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t29112E8C1D034E020094568F /* Build configuration list for PBXProject \"Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t29112EAC1D034E020094568F /* Debug */,\n\t\t\t\t29112EAD1D034E020094568F /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t29112EAE1D034E020094568F /* Build configuration list for PBXNativeTarget \"Example\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t29112EAF1D034E020094568F /* Debug */,\n\t\t\t\t29112EB01D034E020094568F /* 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 = 29112E891D034E020094568F /* Project object */;\n}\n"
  },
  {
    "path": "Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:Example.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "FlickToDismiss.podspec",
    "content": "Pod::Spec.new do |s|\n  s.name         = \"FlickToDismiss\"\n  s.version      = \"0.9\"\n  s.summary      = \"A basic UIViewController class that presents a UIView which can be dismissed by flicking it off the screen.\"\n  s.description  = <<-DESC\n                  FlickToDismiss is written in Swift and utilises UIKit Dynamics. It allows for a UIView to be flicked off the screen which dismisses the presenting view controller.\n                   DESC\n  s.homepage     = \"https://github.com/jakelawson1/FlickToDismiss\"\n  s.license      = { :type => 'MIT', :file => 'LICENSE' }\n  s.author       = { \"Jake Lawson\" => \"jakelawson1@hotmail.com\" }\n  s.source       = { :git => \"https://github.com/jakelawson1/FlickToDismiss.git\", :tag => \"#{s.version}\" }\n\n  s.platform     = :ios, \"8.0\"\n\n  s.source_files = 'Source/**'\n  s.framework    = \"UIKit\"\nend\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2016 Jake\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# FlickToDismiss\n\n![FlickToDismiss hero image](FlickToDismiss.gif)\n\n## Requirements\n\n- iOS 8.0+\n- Xcode 7.3\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\nTo integrate FlickToDismiss into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'FlickToDismiss', '~> 0.9'\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Manual\n\nAdd [FlickToDismissViewController.swift](Source/FlickToDismissViewController.swift) to your project in Xcode.\n\n## Usage\n\n### Interface Builder\n\n1. Drag a new `UIViewController` object onto your storyboard.\n2. Set the class to `FlickToDismissViewController`.\n3. Drag a `UIView` object onto the View Controller.\n4. Add any necessary constraints.\n5. Connect the `flickableView` outlet to the `UIView` in the Connections inspector.\n6. Job done.\n\n### Programatically\n\n```swift\nlet viewToFlick = UIView(frame: CGRect(x: 0, y: 0, width: 280, height: 300))\nviewToFlick.backgroundColor = .whiteColor()\n// Optional - See FlickToDismissOption for available options.\nlet options: [FlickToDismissOption] = [\n.Animation(.Scale),\n.BackgroundColor(UIColor(white: 0.0, alpha: 0.8))\n]\nlet vc = FlickToDismissViewController(flickableView: viewToFlick, options: options)\nvc.modalTransitionStyle = .CrossDissolve\nvc.modalPresentationStyle = .OverFullScreen\npresentViewController(vc, animated: true, completion: nil)\n```\n\n#### Hint - Subclassing UIView\n\nSince Auto Layout sizes views according to their frames, it incorrectly assumes it has a larger space to lay things out when a view is rotated. To correct this we need to supply the method `alignmentRectForFrame()` in the view subclass:\n```swift\noverride func alignmentRectForFrame(frame: CGRect) -> CGRect {\n    return bounds\n}\n```\n\n## License\n\nFlickToDismiss is licensed under the MIT License. See [LICENSE](LICENSE) for details.\n\nLet me know if you use FlickToDismiss in your projects, I would love to know!"
  },
  {
    "path": "Source/FlickToDismissViewController.swift",
    "content": "//\n//  FlickToDismissViewController.swift\n//  Example\n//\n//  Created by Jake Lawson on 04/06/2016.\n//  Copyright © 2016 Jake Lawson. All rights reserved.\n//\n\nimport UIKit\n\n/// Options used to customize the appearance and interaction.\npublic enum FlickToDismissOption {\n    case BackgroundColor(UIColor)\n    case FlickThreshold(CGFloat)\n    case FlickVelocityMultiplier(CGFloat)\n    case SnapDamping(CGFloat)\n    case Animation(AnimationType)\n}\n\n/// Different animation styles for presenting the flickable view.\npublic enum AnimationType: String {\n    case None\n    case Scale\n}\n\n/// Presents a UIView which can dismissed by flicking it off the screen.\n@IBDesignable\npublic class FlickToDismissViewController: UIViewController {\n\n    // MARK:- Properties\n    \n    /// Flickable UIView.\n    @IBOutlet public var flickableView: UIView!\n    private var panGestureRecognizer: UIPanGestureRecognizer!\n    /// Array of FlickToDismissOptions.\n    private var options: [FlickToDismissOption]?\n    /// Indicates how fast the view must be moving in order to have the view continue moving.\n    @IBInspectable public var flickThreshold: CGFloat = 1000\n    /// The amount of oscillation of the flickableView during the conclusion of a snap.\n    @IBInspectable public var snapDamping: CGFloat = 0.5\n    /// Affects how fast or slow the view is flicked off the screen.\n    @IBInspectable public var flickVelocityMultiplier: CGFloat = 0.2\n    /// Animation presentation type. See AnimationType for all possible values.\n    @IBInspectable public var animationType: String = \"None\"\n    /// The point for the flickable view to return to if the view was not flicked off the screen\n    public var originalCenter: CGPoint?\n    // UIKit Dynamics\n    private var animator: UIDynamicAnimator!\n    private var attachmentBehavior: UIAttachmentBehavior!\n    private var snapBehaviour: UISnapBehavior!\n    private var pushBehaviour: UIPushBehavior!\n    \n    // MARK:- Life Cycle\n    \n    public init(flickableView: UIView, options: [FlickToDismissOption]?) {\n        super.init(nibName: nil, bundle: nil)\n        self.flickableView = flickableView\n        self.options = options\n    }\n    \n    required public init?(coder aDecoder: NSCoder) {\n        super.init(coder: aDecoder)\n    }\n    \n    public override func viewDidLoad() {\n        super.viewDidLoad()\n        setup()\n    }\n    \n    public override func viewWillAppear(animated: Bool) {\n        super.viewWillAppear(animated)\n        // Perform animation when view will appear\n        switch AnimationType.init(rawValue: animationType) ?? .None {\n        case .Scale:\n            UIView.animateWithDuration(0.5, delay: 0.0, usingSpringWithDamping: 0.8, initialSpringVelocity: 5.0, options: .CurveEaseInOut, animations: ({\n                self.flickableView.transform = CGAffineTransformIdentity\n                self.flickableView.alpha = 1.0\n            }), completion: nil)\n        default:\n            break\n        }\n    }\n    \n    // MARK:- Setup\n\n    private func setup() {\n        // Setup pan gesture\n        panGestureRecognizer = UIPanGestureRecognizer(target: self, action: #selector(FlickToDismissViewController.handleAttachmentGesture(_:)))\n        // Setup animator\n        animator = UIDynamicAnimator(referenceView: view)\n        // Apply options\n        if let options = options {\n            for option in options {\n                switch option {\n                case .BackgroundColor(let color):\n                    view.backgroundColor = color\n                case .FlickThreshold(let threshold):\n                    flickThreshold = threshold\n                case .FlickVelocityMultiplier(let multiplier):\n                    flickVelocityMultiplier = multiplier\n                case .SnapDamping(let damping):\n                    snapDamping = damping\n                case .Animation(let animation):\n                    animationType = animation.rawValue\n                }\n            }\n        }\n        // Setup animation\n        switch AnimationType.init(rawValue: animationType) ?? .None {\n        case .Scale:\n            flickableView.transform = CGAffineTransformMakeScale(0.8, 0.8)\n            flickableView.alpha = 0.0\n        default:\n            break\n        }\n        flickableView.addGestureRecognizer(panGestureRecognizer)\n        // If there are no constraints, center the view\n        if flickableView.constraints.count == 0 {\n            flickableView.center = view.center\n        }\n        view.addSubview(flickableView)\n    }\n    \n    // MARK: Layout\n    \n    public override func viewDidLayoutSubviews() {\n        // Only set the center if the view has constraints\n        if flickableView.constraints.count != 0 {\n            originalCenter = flickableView.center\n        }\n    }\n    \n    // MARK:- Pan Gesture\n    \n    @objc private func handleAttachmentGesture(panGesture: UIPanGestureRecognizer) {\n        let location = panGesture.locationInView(view)\n        let boxLocation = panGesture.locationInView(flickableView)\n        switch panGesture.state {\n        case .Began:\n            animator.removeAllBehaviors()\n            let centerOffset = UIOffset(horizontal: boxLocation.x-flickableView.bounds.midX, vertical: boxLocation.y-flickableView.bounds.midY)\n            attachmentBehavior = UIAttachmentBehavior(item: flickableView, offsetFromCenter: centerOffset, attachedToAnchor: location)\n            animator.addBehavior(attachmentBehavior)\n        case .Ended:\n            animator.removeAllBehaviors()\n            let velocity = panGesture.velocityInView(view)\n            let magnitude = sqrt((velocity.x * velocity.x) + (velocity.y * velocity.y))\n            guard magnitude > flickThreshold else {\n                snapBehaviour = UISnapBehavior(item: flickableView, snapToPoint: originalCenter ?? view.center)\n                snapBehaviour.damping = snapDamping\n                animator.addBehavior(snapBehaviour)\n                return\n            }\n            let centerOffset = UIOffset(horizontal: boxLocation.x-flickableView.bounds.midX, vertical: boxLocation.y-flickableView.bounds.midY)\n            pushBehaviour = UIPushBehavior(items: [flickableView], mode: .Instantaneous)\n            pushBehaviour.pushDirection = CGVector(dx: velocity.x, dy: velocity.y)\n            pushBehaviour.setTargetOffsetFromCenter(centerOffset, forItem: flickableView)\n            pushBehaviour.magnitude = magnitude * flickVelocityMultiplier\n            animator.addBehavior(pushBehaviour)\n            dismissViewControllerAnimated(true, completion: nil)\n        default:\n            attachmentBehavior.anchorPoint = location\n        }\n    }\n    \n    // MARK:- Helpers\n    \n    /// Connect this to a button to dismiss the view controller.\n    @IBAction public func dismissViewController() {\n        dismissViewControllerAnimated(true, completion: nil)\n    }\n    \n    // MARK:- Rotation\n    \n    public override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {\n        // Remove behaviors on rotation in order to satisfy constraints\n        animator.removeAllBehaviors()\n        // Center view if there are no constraints\n        if flickableView.constraints.count == 0 {\n            flickableView.center = CGPoint(x: size.width/2, y: size.height/2)\n        }\n    }\n    \n}\n"
  }
]