[
  {
    "path": ".swift-version",
    "content": "3.0\n"
  },
  {
    "path": "FNMatchPull/AppDelegate.swift",
    "content": "//\n//  AppDelegate.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/26.\n//  Copyright © 2016年 Fnoz. 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: [UIApplicationLaunchOptionsKey: Any]?) -> 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": "FNMatchPull/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  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/Assets.xcassets/Image/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/Assets.xcassets/Image/icn_0.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_3.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_3@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_3@3x.png\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/Assets.xcassets/Image/icn_1.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_1.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_1@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_1@3x.png\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/Assets.xcassets/Image/icn_2.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_2.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_2@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icn_2@3x.png\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "FNMatchPull/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=\"8150\" systemVersion=\"15A204g\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\" initialViewController=\"01J-lp-oVM\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"8122\"/>\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                        <animations/>\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": "FNMatchPull/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=\"6211\" systemVersion=\"14A298i\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"6204\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" 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                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNAnimator.swift",
    "content": "//\n// Animator.swift\n//\n// Copyright (c) 2014 Josip Cavar\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport Foundation\nimport QuartzCore\nimport UIKit\n\ninternal class FNAnimatorView: UIView {\n    \n    fileprivate let titleLabel: UILabel = {\n        let label = UILabel()\n        label.translatesAutoresizingMaskIntoConstraints = false\n        return label\n    }()\n    \n    fileprivate let activityIndicatorView: UIActivityIndicatorView = {\n        let activity = UIActivityIndicatorView(activityIndicatorStyle: .gray)\n        activity.translatesAutoresizingMaskIntoConstraints = false\n        return activity\n    }()\n    \n    override init(frame: CGRect) {\n        super.init(frame: frame)\n        autoresizingMask = [UIViewAutoresizing.flexibleWidth, UIViewAutoresizing.flexibleHeight]\n        addSubview(titleLabel)\n        addSubview(activityIndicatorView)\n        \n        let leftActivityConstraint = NSLayoutConstraint(item: activityIndicatorView, attribute: .left, relatedBy: .equal, toItem: self, attribute: .left, multiplier: 1, constant: 16)\n        let centerActivityConstraint = NSLayoutConstraint(item: activityIndicatorView, attribute: .centerY, relatedBy: .equal, toItem: self, attribute: .centerY, multiplier: 1, constant: 0)\n        \n        let leftTitleConstraint = NSLayoutConstraint(item: titleLabel, attribute: .left, relatedBy: .equal, toItem: activityIndicatorView, attribute: .right, multiplier: 1, constant: 16)\n        let centerTitleConstraint = NSLayoutConstraint(item: self, attribute: .centerY, relatedBy: .equal, toItem: titleLabel, attribute: .centerY, multiplier: 1, constant: 0)\n        \n        addConstraints([leftActivityConstraint, centerActivityConstraint, leftTitleConstraint, centerTitleConstraint])\n    }\n    \n    required init(coder aDecoder: NSCoder) {\n        fatalError(\"init(coder:) has not been implemented\")\n    }\n}\n\nclass FNAnimator: FNPullToRefreshViewDelegate {\n    \n    internal let animatorView: FNAnimatorView\n    \n    init(frame: CGRect) {\n        animatorView = FNAnimatorView(frame: frame)\n    }\n    \n    func pullToRefreshAnimationDidStart(_ view: FNPullToRefreshView) {\n        animatorView.activityIndicatorView.startAnimating()\n        animatorView.titleLabel.text = \"Loading\"\n    }\n    \n    func pullToRefreshAnimationDidEnd(_ view: FNPullToRefreshView) {\n        animatorView.activityIndicatorView.stopAnimating()\n        animatorView.titleLabel.text = \"\"\n    }\n    \n    func pullToRefresh(_ view: FNPullToRefreshView, progressDidChange progress: CGFloat) {\n        \n    }\n    \n    func pullToRefresh(_ view: FNPullToRefreshView, stateDidChange state: FNPullToRefreshViewState) {\n        switch state {\n        case .loading:\n            animatorView.titleLabel.text = \"Loading\"\n        case .pullToRefresh:\n            animatorView.titleLabel.text = \"Pull to refresh\"\n        case .releaseToRefresh:\n            animatorView.titleLabel.text = \"Release to refresh\"\n        }\n    }\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNMatchFontParser.swift",
    "content": "//\n//  FNMatchFontParser.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/26.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport Foundation\nimport UIKit\n\nlet fontWidth = CGFloat(25.0)\nlet fontHeight = CGFloat(25.0)\nlet fontWidthWithMargin = CGFloat(35.0)\n\nclass FNMatchFontParser: NSObject {\n    \n    class func parserText(_ text: NSString, width: CGFloat) -> (NSArray, NSArray) {\n        let startPoints: NSMutableArray = []\n        let endPoints: NSMutableArray = []\n        let leftMargin = (width - fontWidthWithMargin * CGFloat(text.length) + fontWidthWithMargin - fontWidth)/2\n        let topMargin = (pullViewHeight - fontHeight)/2\n        for i in 0 ... text.length - 1 {\n            let char = text.substring(with: NSMakeRange(i, 1))\n            let (startPointsToAdd, endPointsToAdd) = parserChar(char as NSString)\n            if startPointsToAdd.count == 0 || endPointsToAdd.count == 0 {\n                continue\n            }\n            for j in 0 ... startPointsToAdd.count - 1 {\n                var startPoint = (startPointsToAdd[j] as! NSValue).cgPointValue\n                startPoint.x += leftMargin + CGFloat(i) * fontWidthWithMargin\n                startPoint.y += topMargin\n                startPointsToAdd.replaceObject(at: j, with: NSValue.init(cgPoint: startPoint))\n                var endPoint = (endPointsToAdd[j] as! NSValue).cgPointValue\n                endPoint.x += leftMargin + CGFloat(i) * fontWidthWithMargin\n                endPoint.y += topMargin\n                endPointsToAdd.replaceObject(at: j, with: NSValue.init(cgPoint: endPoint))\n            }\n            startPoints.addObjects(from: startPointsToAdd as [AnyObject])\n            endPoints.addObjects(from: endPointsToAdd as [AnyObject])\n        }\n        \n        return (startPoints, endPoints)\n    }\n    \n    class func parserChar(_ char: NSString) -> (NSMutableArray, NSMutableArray) {\n        var startPointsToAdd:NSMutableArray = []\n        var endPointsToAdd:NSMutableArray = []\n        switch char {\n        case \"A\",\"a\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.3)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.3)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.3)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.3)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"B\",\"b\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontHeight * 0.55, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.45)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.45)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.45)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.45)),\n                              NSValue.init(cgPoint: CGPoint(x: fontHeight * 0.55, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontHeight * 0.45, y: fontHeight * 0.45)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.45)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"C\",\"c\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.7))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.3)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"D\",\"d\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.2, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.2, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.2, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.2, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"E\",\"e\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.8, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"F\",\"f\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.8, y: fontHeight * 0.5))]\n            break\n        case \"G\",\"g\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.3)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"H\",\"h\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"I\",\"i\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight))]\n            break\n        case \"J\",\"j\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight * 0.8)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: fontHeight))]\n            break\n        case \"K\",\"k\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.7, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.7, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.7, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"L\",\"l\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.1, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.9, y: fontHeight))]\n            break\n        case \"M\",\"m\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.4)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.4)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"N\",\"n\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"O\",\"o\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"P\",\"p\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6))]\n            break\n        case \"Q\",\"q\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.4, y: fontHeight * 0.75))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.6, y: fontHeight * 1.25))]\n            break\n        case \"R\",\"r\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.6, y: fontHeight * 0.6))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"S\",\"s\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.45)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.8)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.45))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.45)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.2)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.45)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"T\",\"t\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight))]\n            break\n        case \"U\",\"u\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \"V\",\"v\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.25, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.75, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.25, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.75, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0))]\n            break\n        case \"W\",\"w\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * -0.1, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * -0.05, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.3)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 1.05, y: fontHeight * 0.5))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * -0.05, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 1.05, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 1.1, y: 0))]\n            break\n        case \"X\",\"x\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5))]\n            break\n        case \"Y\",\"y\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.6))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight * 0.6)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight))]\n            break\n        case \"Z\",\"z\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: 0, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                                NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                                NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth, y: 0)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.5, y: fontHeight * 0.5)),\n                              NSValue.init(cgPoint: CGPoint(x: 0, y: fontHeight)),\n                              NSValue.init(cgPoint: CGPoint(x: fontWidth, y: fontHeight))]\n            break\n        case \",\":\n            startPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.35, y: fontHeight * 0.65))]\n            endPointsToAdd = [NSValue.init(cgPoint: CGPoint(x: fontWidth * 0.35, y: fontHeight))]\n            break\n        default:\n            break\n        }\n        return (startPointsToAdd, endPointsToAdd)\n    }\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNMatchPullAnimator.swift",
    "content": "//\n//  FNMatchPullAnimator.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/25.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport UIKit\n\n// Pull down style, support text and pattern\npublic enum FNMatchPullStyle: NSInteger {\n    case pattern = 0\n    case text = 1\n}\n\npublic class FNMatchPullAnimator: UIView, FNPullToRefreshViewDelegate {\n    \n    var matchPullView: FNMatchPullView!\n    \n    // Pull down style\n    public var style: FNMatchPullStyle! {\n        didSet {\n            matchPullView.style = style\n            matchPullView.initMatch()\n        }\n    }\n    \n    // Text charaters, supports English letters and comma.\n    public var text: NSString! {\n        didSet {\n            matchPullView.text = text\n            matchPullView.initMatch()\n        }\n    }\n    \n    public var lineWidth:CGFloat? {\n        didSet {\n            matchPullView.lineWidth = lineWidth\n            matchPullView.initMatch()\n        }\n    }\n    \n    public var startPoints:NSArray? {\n        didSet {\n            matchPullView.startPoints = startPoints!\n            matchPullView.initMatch()\n        }\n    }\n    \n    public var endPoints:NSArray? {\n        didSet {\n            matchPullView.endPoints = endPoints!\n            matchPullView.initMatch()\n        }\n    }\n    fileprivate let layerLoader = CAShapeLayer()\n    fileprivate let layerSeparator = CAShapeLayer()\n    \n    public override init(frame: CGRect) {\n        super.init(frame: frame)\n        \n        matchPullView = FNMatchPullView.init(frame:CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height))\n        matchPullView.initMatch()\n        addSubview(matchPullView);\n        \n        let line = UIView.init(frame: CGRect(x: 0, y: frame.size.height - 1, width: frame.size.width, height: 1))\n        line.backgroundColor = UIColor(red: 0.7, green: 0.7, blue: 0.7, alpha: 1)\n        addSubview(line)\n    }\n    \n    required public init(coder aDecoder: NSCoder) {\n        fatalError(\"init(coder:) has not been implemented\")\n    }\n    \n    public func pullToRefresh(_ view: FNPullToRefreshView, progressDidChange progress: CGFloat) {\n        let validProgress = CGFloat(min(progress, 1.0))\n        matchPullView.progress = validProgress\n        matchPullView.center = CGPoint(x: matchPullView.center.x, y: frame.size.height/2 + frame.size.height/2 * (1 - validProgress))\n    }\n    \n    public func pullToRefresh(_ view: FNPullToRefreshView, stateDidChange state: FNPullToRefreshViewState) {\n        \n    }\n    \n    public func pullToRefreshAnimationDidEnd(_ view: FNPullToRefreshView) {\n        matchPullView.endBling()\n    }\n    \n    public func pullToRefreshAnimationDidStart(_ view: FNPullToRefreshView) {\n        matchPullView.startBling()\n    }\n    \n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNMatchPullMatch.swift",
    "content": "//\n//  FNMatchPullMatch.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/25.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport UIKit\n\nclass FNMatchPullMatch: UIView {\n    var angle:CGFloat = 0\n    var oriCenter:CGPoint = CGPoint(x: 0, y: 0)\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNMatchPullView.swift",
    "content": "//\n//  FNMatchPullView.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/25.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport UIKit\n\nlet horizontalMove = CGFloat(150.0)\nlet verticalMove = CGFloat(100.0)\nlet pullViewHeight = CGFloat(80.0)\n\nclass FNMatchPullView: UIView {\n    var lineWidth:CGFloat! = CGFloat(2)\n    var style:FNMatchPullStyle?\n    var text:NSString?\n    var startPoints:NSArray?\n    var endPoints:NSArray?\n    var matchViews:NSMutableArray = []\n    var timer:Timer!\n    var progress:CGFloat = 0.0 {\n        didSet {\n            refreshView(progress)\n        }\n    }\n    \n    override init(frame: CGRect) {\n        super.init(frame: frame)\n        \n        startPoints = []\n        endPoints = []\n    }\n    \n    required init?(coder aDecoder: NSCoder) {\n        fatalError(\"init(coder:) has not been implemented\")\n    }\n    \n    func initMatch() {\n        //remove old matchs\n        if matchViews.count > 0 {\n            for i in 0 ... matchViews.count - 1 {\n                let match = matchViews[i] as! FNMatchPullMatch\n                match.removeFromSuperview()\n            }\n        }\n        \n        if style == .text {\n            updateTextToPoints()\n        }\n        \n        if startPoints?.count != endPoints?.count || startPoints?.count == 0{\n            return\n        }\n        \n        matchViews.removeAllObjects()\n        matchViews = NSMutableArray.init(array: [])\n        //build new matchs\n        for i in 0 ... (startPoints?.count)! - 1 {\n            let match = FNMatchPullMatch.init()\n            match.backgroundColor = UIColor.white\n            match.alpha = 0.3\n            let startPoint = (startPoints?[i] as! NSValue).cgPointValue\n            let endPoint = (endPoints?[i] as! NSValue).cgPointValue\n            let aaa = (endPoint.x - startPoint.x)*(endPoint.x - startPoint.x)+(endPoint.y - startPoint.y)*(endPoint.y - startPoint.y)\n            match.frame = CGRect(x: 0, y: 0, width: sqrt(aaa), height: lineWidth)\n            if i%2 == 0 {\n                match.center = CGPoint(x: (startPoint.x + endPoint.x)/2 - horizontalMove, y: (startPoint.y + endPoint.y)/2 - verticalMove)\n            }\n            else {\n                match.center = CGPoint(x: (startPoint.x + endPoint.x)/2 + horizontalMove, y: (startPoint.y + endPoint.y)/2 - verticalMove)\n            }\n            match.oriCenter = match.center\n            match.angle = atan((endPoint.y - startPoint.y)/(endPoint.x - startPoint.x)) + CGFloat(M_PI)\n            let rotate = CGAffineTransform(rotationAngle: CGFloat(-M_PI) + match.angle)\n            match.transform = rotate.scaledBy(x: 0, y: 0)\n            addSubview(match)\n            matchViews.add(match)\n        }\n    }\n    \n    func updateTextToPoints() {\n        // Fix the issue that app will crash if text is nil\n        if text == nil {\n            return\n        }\n        let (startPointsNew, endPointsNew) = FNMatchFontParser.parserText(text!, width: self.frame.size.width)\n        startPoints = startPointsNew\n        endPoints = endPointsNew\n    }\n    \n    func refreshView(_ progress:CGFloat) {\n        let validProgress = min(progress, 1.0)  //限制到1以下\n        if matchViews.count == 0 {\n            return\n        }\n        for i in 0 ... matchViews.count - 1 {\n            let duration = 0.6\n            let interval = CGFloat((1-duration)/Double(matchViews.count - 1))\n            var progressHandled = (validProgress - CGFloat(i) * interval) / 0.6\n            if progressHandled<0 {\n                progressHandled = 0\n            }\n            else if progressHandled>1 {\n                progressHandled = 1\n            }\n            let startPoint = (startPoints![i] as! NSValue).cgPointValue\n            let endPoint = (endPoints![i] as! NSValue).cgPointValue\n            let centerPoint = CGPoint(x: (startPoint.x + endPoint.x)/2, y: (startPoint.y + endPoint.y)/2)\n            let newCenterPoint:CGPoint\n            let match = matchViews[i] as! FNMatchPullMatch\n            if i%2 == 0 {\n                newCenterPoint = CGPoint(x: centerPoint.x - horizontalMove * (1 - progressHandled), y: centerPoint.y - verticalMove * (1 - progressHandled))\n                let rotate = CGAffineTransform(rotationAngle: match.angle + CGFloat(M_PI) * progressHandled)\n                match.transform = rotate.scaledBy(x: progressHandled, y: progressHandled)\n            }\n            else {\n                newCenterPoint = CGPoint(x: centerPoint.x + horizontalMove * (1 - progressHandled), y: centerPoint.y - verticalMove * (1 - progressHandled))\n                let rotate = CGAffineTransform(rotationAngle: match.angle + CGFloat(M_PI) * progressHandled)\n                match.transform = rotate.scaledBy(x: progressHandled, y: progressHandled)\n            }\n            match.center = newCenterPoint\n        }\n    }\n    \n    func startBling() {\n        timer?.invalidate()\n        timer = nil\n        timer = Timer.scheduledTimer(timeInterval: 2.1,\n                                                       target:self,selector:#selector(addAnimation),\n                                                       userInfo:nil,repeats:true)\n        timer.fire()\n    }\n    \n    @objc func addAnimation() {\n        if matchViews.count == 0 {\n            return\n        }\n        let interval = 1.3/Double(matchViews.count)\n        for i in 0 ... matchViews.count - 1 {\n            let match = matchViews[i] as! FNMatchPullMatch\n            UIView.animate(withDuration: 0.4, delay: interval * Double(i), options: .curveLinear, animations: {\n                match.alpha = 1;\n                }, completion: { (fff) in\n                    UIView.animate(withDuration: 0.3, delay: 0, options: .curveLinear, animations: {\n                        match.alpha = 0.4\n                        }, completion: nil)\n            })\n        }\n    }\n    \n    func endBling() {\n        timer?.invalidate()\n        timer = nil\n        if matchViews.count == 0 {\n            return\n        }\n        for i in 0 ... matchViews.count - 1 {\n            let match = matchViews[i] as! FNMatchPullMatch\n            match.layer.removeAllAnimations()\n        }\n        \n        UIView.animate(withDuration: 1, animations: { \n            self.frame = CGRect(x: self.frame.origin.x, y: pullViewHeight/2, width: self.frame.size.width, height: self.frame.size.height)\n        }) \n        \n        //delay a bit of time as progress = 0 will perform later\n        let delayTime = DispatchTime.now() + Double(Int64(0.01 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)\n        DispatchQueue.main.asyncAfter(deadline: delayTime) {\n            for i in 0 ... self.matchViews.count - 1 {\n                let match = self.matchViews[i] as! FNMatchPullMatch\n                UIView.animate(withDuration: 0.5, delay: 0.6/Double(self.matchViews.count) * Double(self.matchViews.count - i), options: .curveLinear, animations: {\n                    let rotate = CGAffineTransform(rotationAngle: match.angle)\n                    match.transform = rotate.scaledBy(x: 0.1, y: 0.1)\n                    match.center = match.oriCenter\n                    }, completion: nil)\n            }\n        }\n\n    }\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNPullToRefreshExtension.swift",
    "content": "//\n// PullToRefresh.swift\n//\n// Copyright (c) 2014 Josip Cavar\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport Foundation\nimport UIKit\n\nprivate let pullToRefreshTag = 324\nprivate let pullToRefreshDefaultHeight: CGFloat = 50\n\nextension UIScrollView {\n    \n    public var pullToRefreshView: FNPullToRefreshView? {\n        get {\n            let pullToRefreshView = viewWithTag(pullToRefreshTag)\n            return pullToRefreshView as? FNPullToRefreshView\n        }\n    }\n    \n    public func addPullToRefreshWithAction(_ action:@escaping (() -> ())) {\n        let pullToRefreshView = FNPullToRefreshView(action: action, frame: CGRect(x: 0, y: -pullToRefreshDefaultHeight, width: self.frame.size.width, height: pullToRefreshDefaultHeight))\n        pullToRefreshView.tag = pullToRefreshTag\n        addSubview(pullToRefreshView)\n    }\n\n    public func addPullToRefreshWithAction(_ action:@escaping (() -> ()), withAnimator animator: FNPullToRefreshViewDelegate, withSubview subview: UIView) {\n        let height = subview.frame.height\n        let pullToRefreshView = FNPullToRefreshView(action: action, frame: CGRect(x: 0, y: -height, width: self.frame.size.width, height: height), animator: animator, subview: subview)\n        pullToRefreshView.tag = pullToRefreshTag\n        addSubview(pullToRefreshView)\n    }\n    \n    //\n    public func addPullToRefreshWithAction<T: UIView>(_ action:@escaping (() -> ()), withAnimator animator: T) where T: FNPullToRefreshViewDelegate {\n        let height = animator.frame.height\n        let pullToRefreshView = FNPullToRefreshView(action: action, frame: CGRect(x: 0, y: -height, width: self.frame.size.width, height: height), animator: animator, subview: animator)\n        pullToRefreshView.tag = pullToRefreshTag\n        addSubview(pullToRefreshView)\n    }\n    \n    // Manually start pull to refresh\n    public func startPullToRefresh() {\n        pullToRefreshView?.loading = true\n    }\n    \n    // Manually stop pull to refresh\n    public func stopPullToRefresh() {\n        pullToRefreshView?.loading = false\n    }\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPull/FNPullToRefreshView.swift",
    "content": "//\n// FNPullToRefreshView.swift\n//\n// Copyright (c) 2014 Josip Cavar\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport UIKit\nimport QuartzCore\n\nprivate var KVOContext = \"RefresherKVOContext\"\nprivate let ContentOffsetKeyPath = \"contentOffset\"\n\npublic enum FNPullToRefreshViewState {\n\n    case loading\n    case pullToRefresh\n    case releaseToRefresh\n}\n\npublic protocol FNPullToRefreshViewDelegate {\n    \n    func pullToRefreshAnimationDidStart(_ view: FNPullToRefreshView)\n    func pullToRefreshAnimationDidEnd(_ view: FNPullToRefreshView)\n    func pullToRefresh(_ view: FNPullToRefreshView, progressDidChange progress: CGFloat)\n    func pullToRefresh(_ view: FNPullToRefreshView, stateDidChange state: FNPullToRefreshViewState)\n}\n\nopen class FNPullToRefreshView: UIView {\n    \n    fileprivate var scrollViewBouncesDefaultValue: Bool = false\n    fileprivate var scrollViewInsetsDefaultValue: UIEdgeInsets = UIEdgeInsets.zero\n\n    fileprivate var animator: FNPullToRefreshViewDelegate\n    fileprivate var action: (() -> ()) = {}\n\n    fileprivate var previousOffset: CGFloat = 0\n\n    internal var loading: Bool = false {\n        \n        didSet {\n            if loading != oldValue {\n                if loading {\n                    startAnimating()\n                } else {\n                    stopAnimating()\n                }\n            }\n        }\n    }\n    \n    \n    //MARK: Object lifecycle methods\n\n    convenience init(action :@escaping (() -> ()), frame: CGRect) {\n        var bounds = frame\n        bounds.origin.y = 0\n        let animator = FNAnimator(frame: bounds)\n        self.init(frame: frame, animator: animator)\n        self.action = action;\n        addSubview(animator.animatorView)\n    }\n\n    convenience init(action :@escaping (() -> ()), frame: CGRect, animator: FNPullToRefreshViewDelegate, subview: UIView) {\n        self.init(frame: frame, animator: animator)\n        self.action = action;\n        subview.frame = self.bounds\n        addSubview(subview)\n    }\n    \n    convenience init(action :@escaping (() -> ()), frame: CGRect, animator: FNPullToRefreshViewDelegate) {\n        self.init(frame: frame, animator: animator)\n        self.action = action;\n    }\n    \n    init(frame: CGRect, animator: FNPullToRefreshViewDelegate) {\n        self.animator = animator\n        super.init(frame: frame)\n        self.autoresizingMask = .flexibleWidth\n    }\n    \n    public required init?(coder aDecoder: NSCoder) {\n        self.animator = FNAnimator(frame: CGRect.zero)\n        super.init(coder: aDecoder)\n        // Currently it is not supported to load view from nib\n    }\n    \n    deinit {\n        let scrollView = superview as? UIScrollView\n        scrollView?.removeObserver(self, forKeyPath: ContentOffsetKeyPath, context: &KVOContext)\n    }\n    \n    \n    //MARK: UIView methods\n    \n    open override func willMove(toSuperview newSuperview: UIView!) {\n        superview?.removeObserver(self, forKeyPath: ContentOffsetKeyPath, context: &KVOContext)\n        if let scrollView = newSuperview as? UIScrollView {\n            scrollView.addObserver(self, forKeyPath: ContentOffsetKeyPath, options: .initial, context: &KVOContext)\n            scrollViewBouncesDefaultValue = scrollView.bounces\n            scrollViewInsetsDefaultValue = scrollView.contentInset\n        }\n    }\n    \n    \n    //MARK: KVO methods\n\n\topen override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {\n         if (context == &KVOContext) {\n            if let scrollView = superview as? UIScrollView, object as? NSObject == scrollView {\n                if keyPath == ContentOffsetKeyPath {\n                    let offsetWithoutInsets = previousOffset + scrollViewInsetsDefaultValue.top\n                    if (offsetWithoutInsets < -self.frame.size.height) {\n                        if (scrollView.isDragging == false && loading == false) {\n                            loading = true\n                        } else if (loading) {\n                            self.animator.pullToRefresh(self, stateDidChange: .loading)\n                        } else {\n                            self.animator.pullToRefresh(self, stateDidChange: .releaseToRefresh)\n                            animator.pullToRefresh(self, progressDidChange: -offsetWithoutInsets / self.frame.size.height)\n                        }\n                    } else if (loading) {\n                        self.animator.pullToRefresh(self, stateDidChange: .loading)\n                    } else if (offsetWithoutInsets < 0) {\n                        self.animator.pullToRefresh(self, stateDidChange: .pullToRefresh)\n                        animator.pullToRefresh(self, progressDidChange: -offsetWithoutInsets / self.frame.size.height)\n                    }\n                    previousOffset = scrollView.contentOffset.y\n                }\n            }\n        } else {\n            super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context)\n        }\n    }\n    \n    \n    //MARK: PullToRefreshView methods\n\n    fileprivate func startAnimating() {\n        let scrollView = superview as! UIScrollView\n        var insets = scrollView.contentInset\n        insets.top += self.frame.size.height\n        \n        // we need to restore previous offset because we will animate scroll view insets and regular scroll view animating is not applied then\n        scrollView.contentOffset.y = previousOffset\n        scrollView.bounces = false\n        UIView.animate(withDuration: 0.3, delay: 0, options: UIViewAnimationOptions(), animations: {\n            scrollView.contentInset = insets\n            scrollView.contentOffset = CGPoint(x: scrollView.contentOffset.x, y: -insets.top)\n        }, completion: {finished in\n            self.animator.pullToRefreshAnimationDidStart(self)\n            self.action()\n        })\n    }\n    \n    fileprivate func stopAnimating() {\n        self.animator.pullToRefreshAnimationDidEnd(self)\n        let scrollView = superview as! UIScrollView\n        scrollView.bounces = self.scrollViewBouncesDefaultValue\n        UIView.animate(withDuration: 1.3, animations: {\n            scrollView.contentInset = self.scrollViewInsetsDefaultValue\n        }, completion: { finished in\n            self.animator.pullToRefresh(self, progressDidChange: 0)\n        }) \n    }\n}\n"
  },
  {
    "path": "FNMatchPull/FNMatchPullTableViewCell.swift",
    "content": "//\n//  FNMatchPullTableViewCell.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/24.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport UIKit\n\nclass FNMatchPullTableViewCell: UITableViewCell {\n    var centerImageView: UIImageView = UIImageView.init(frame: CGRect(x: 0, y: 0, width: 80, height: 76))\n    \n    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {\n        super.init(style: style, reuseIdentifier: reuseIdentifier)\n        \n        centerImageView.alpha = 0.5\n        contentView.addSubview(centerImageView)\n    }\n    \n    required init?(coder aDecoder: NSCoder) {\n        fatalError(\"init(coder:) has not been implemented\")\n    }\n\n}\n"
  },
  {
    "path": "FNMatchPull/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": "FNMatchPull/ViewController.swift",
    "content": "//\n//  ViewController.swift\n//  FNMatchPull\n//\n//  Created by Fnoz on 16/6/24.\n//  Copyright © 2016年 Fnoz. All rights reserved.\n//\n\nimport UIKit\n\nlet kScreenWidth = Double(UIScreen.main.bounds.size.width)\nlet kScreenHeight = Double(UIScreen.main.bounds.size.height)\nlet kIsXMoreScreen = (kScreenHeight >= 812.0)\nlet kAdjustedTop = kIsXMoreScreen ? 24.0 : 0.0\n\nclass ViewController: UINavigationController, UITableViewDelegate, UITableViewDataSource {\n    var tableView:UITableView!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \n        let titleLabel = UILabel.init(frame: CGRect(x: 10, y: kAdjustedTop + 25, width: 150, height: 44))\n        titleLabel.text = \"FNMatchPullDemo\"\n        titleLabel.textColor = UIColor.init(red: 94/255.0, green: 89/255.0, blue: 151/255.0, alpha: 1)\n        view.addSubview(titleLabel)\n        \n        \n        \n        for i in 0 ... 2 {\n            let btn = UIButton.init(frame: CGRect(x: kScreenWidth - 60 * Double(i + 1), y: kAdjustedTop + 35, width: 45, height: 24))\n            btn.setTitle(NSString.init(format: \"Mode%d\", 2 - i) as String, for: UIControlState())\n            btn.titleLabel?.font = UIFont.systemFont(ofSize: 12)\n            btn.backgroundColor = UIColor.init(red: 94/255.0, green: 89/255.0, blue: 151/255.0, alpha: 1)\n            btn.tag = 100 + 2 - i\n            btn.layer.cornerRadius = 5\n            view.addSubview(btn)\n            btn.addTarget(self, action: #selector(modeChange(_:)), for: .touchUpInside)\n        }\n        \n        tableView = newTableView()\n        view.addSubview(tableView)\n        mode0()        \n    }\n    \n    @objc func modeChange(_ btn:UIButton) {\n        tableView?.removeFromSuperview()\n        tableView = newTableView()\n        view.addSubview(tableView)\n\n        switch btn.tag - 100 {\n        case 0:\n            mode0()\n            break\n        case 1:\n            mode1()\n            break\n        case 2:\n            mode2()\n            break\n        default:\n            break\n        }\n    }\n    \n    func mode0() {\n        let matchAnimator = FNMatchPullAnimator(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 80))\n        matchAnimator.startPoints = [NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 30, y: 25)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 30, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 30, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 30, y: 25)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2, y: 25)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2, y: 25)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 30, y: 25)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 30, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 30, y: 55)),\n                                     NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 30, y: 25))]\n        matchAnimator.endPoints = [NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15 - 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15 - 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15 - 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15 - 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15 + 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 - 15 + 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15 + 30, y: 40)),\n                                   NSValue.init(cgPoint: CGPoint(x: kScreenWidth/2 + 15 + 30, y: 40))]\n        tableView.addPullToRefreshWithAction({\n            OperationQueue().addOperation {\n                sleep(4)\n                OperationQueue.main.addOperation {\n                    self.tableView.stopPullToRefresh()\n                }\n            }\n            }, withAnimator: matchAnimator)\n    }\n    \n    func mode1() {\n        let matchAnimator = FNMatchPullAnimator(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 80))\n        matchAnimator.text = \"HELLO,FNOZ\"\n        matchAnimator.style = .text\n        tableView.addPullToRefreshWithAction({\n            OperationQueue().addOperation {\n                sleep(4)\n                OperationQueue.main.addOperation {\n                    self.tableView.stopPullToRefresh()\n                }\n            }\n        }, withAnimator: matchAnimator)\n    }\n    \n    func mode2() {\n        let matchAnimator = FNMatchPullAnimator(frame: CGRect(x: 0, y: 0, width: kScreenWidth, height: 80))\n        matchAnimator.text = \"HELLO,FNOZ\"\n        matchAnimator.style = .text\n        matchAnimator.lineWidth = 4.0\n        tableView.addPullToRefreshWithAction({\n            OperationQueue().addOperation {\n                sleep(4)\n                OperationQueue.main.addOperation {\n                    self.tableView.stopPullToRefresh()\n                }\n            }\n            }, withAnimator: matchAnimator)\n    }\n\n    func newTableView() -> UITableView {\n        let newTableView = UITableView.init(frame: CGRect(x: 0, y: kAdjustedTop + 64, width: kScreenWidth, height: kScreenHeight - 64), style: UITableViewStyle.plain)\n        newTableView.delegate = self\n        newTableView.backgroundColor =  UIColor.init(red: 45/255.0, green: 45/255.0, blue: 45/255.0, alpha: 1)\n        newTableView.dataSource = self\n        newTableView.separatorStyle = .singleLineEtched\n        newTableView.showsVerticalScrollIndicator = false\n        return newTableView\n    }\n    \n    override func didReceiveMemoryWarning() {\n        super.didReceiveMemoryWarning()\n        // Dispose of any resources that can be recreated.\n    }\n    \n    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {\n        return 170\n    }\n    \n    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {\n        return 4\n    }\n\n    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {\n        var cell: FNMatchPullTableViewCell? = tableView.dequeueReusableCell(withIdentifier: \"FNMatchPullTableViewCell\") as? FNMatchPullTableViewCell\n        if (cell == nil) {\n            cell = FNMatchPullTableViewCell(style: .default, reuseIdentifier: \"FNMatchPullTableViewCell\")\n        }\n        cell?.contentView.backgroundColor = UIColor.init(red: 45/255.0, green: 45/255.0, blue: 45/255.0, alpha: 1)\n        cell?.centerImageView.image = UIImage.init(named: NSString.init(format: \"icn_%d\", (indexPath.row+1)%3) as String)\n        cell?.centerImageView.center = CGPoint(x: view.bounds.size.width/2, y: 85)\n        cell?.selectionStyle = UITableViewCellSelectionStyle.none\n        return cell!\n    }\n}\n\n"
  },
  {
    "path": "FNMatchPull.podspec",
    "content": "Pod::Spec.new do |s|\n\ts.name         = \"FNMatchPull\"\n\ts.version      = \"0.2.1\"\n\ts.summary      = \"A match character and pattern refresh control by Swift.\"\n\n\ts.description  = <<-DESC\n\t# Features\n    - Animation can be created by points.\n    - Animation can be created by English letters.\n\tDESC\n\n\ts.homepage     = \"https://github.com/Fnoz/FNMatchPull\"\n\ts.license      = { :type => \"MIT\", :file => \"LICENSE\" }\n\ts.author             = { \"Lu WJ and Meng Li\" => \"lm2343635@126.com\" }\n\ts.social_media_url   = \"https://github.com/Fnoz\"\n\n\ts.platform     = :ios\n    s.ios.deployment_target = \"8.0\"\n\ts.source       = { :git => \"https://github.com/Fnoz/FNMatchPull.git\", :tag => \"0.2.1\" }\n\n\ts.source_files  = \"FNMatchPull/FNMatchPull/*.{swift}\"\n\n\ts.requires_arc = true\nend\n"
  },
  {
    "path": "FNMatchPull.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\t10C136B31D1EEF0000D63AAF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136B21D1EEF0000D63AAF /* AppDelegate.swift */; };\n\t\t10C136B51D1EEF0000D63AAF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136B41D1EEF0000D63AAF /* ViewController.swift */; };\n\t\t10C136B81D1EEF0000D63AAF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 10C136B61D1EEF0000D63AAF /* Main.storyboard */; };\n\t\t10C136BA1D1EEF0000D63AAF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 10C136B91D1EEF0000D63AAF /* Assets.xcassets */; };\n\t\t10C136BD1D1EEF0000D63AAF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 10C136BB1D1EEF0000D63AAF /* LaunchScreen.storyboard */; };\n\t\t10C136CB1D1EEF5D00D63AAF /* FNAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136C51D1EEF5D00D63AAF /* FNAnimator.swift */; };\n\t\t10C136CC1D1EEF5D00D63AAF /* FNMatchPullAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136C61D1EEF5D00D63AAF /* FNMatchPullAnimator.swift */; };\n\t\t10C136CD1D1EEF5D00D63AAF /* FNMatchPullMatch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136C71D1EEF5D00D63AAF /* FNMatchPullMatch.swift */; };\n\t\t10C136CE1D1EEF5D00D63AAF /* FNMatchPullView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136C81D1EEF5D00D63AAF /* FNMatchPullView.swift */; };\n\t\t10C136CF1D1EEF5D00D63AAF /* FNPullToRefreshExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136C91D1EEF5D00D63AAF /* FNPullToRefreshExtension.swift */; };\n\t\t10C136D01D1EEF5D00D63AAF /* FNPullToRefreshView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136CA1D1EEF5D00D63AAF /* FNPullToRefreshView.swift */; };\n\t\t10C136D21D1EEF8A00D63AAF /* FNMatchPullTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136D11D1EEF8A00D63AAF /* FNMatchPullTableViewCell.swift */; };\n\t\t10C136D41D1F7AA700D63AAF /* FNMatchFontParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 10C136D31D1F7AA700D63AAF /* FNMatchFontParser.swift */; };\n\t\tE4A97BEE1E4588DA002D62A4 /* FNMatchPull.podspec in Resources */ = {isa = PBXBuildFile; fileRef = E4A97BEA1E4588DA002D62A4 /* FNMatchPull.podspec */; };\n\t\tE4A97BEF1E4588DA002D62A4 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = E4A97BEB1E4588DA002D62A4 /* LICENSE */; };\n\t\tE4A97BF01E4588DA002D62A4 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = E4A97BEC1E4588DA002D62A4 /* README.md */; };\n\t\tE4A97BF11E4588DA002D62A4 /* README.zh-CN.md in Sources */ = {isa = PBXBuildFile; fileRef = E4A97BED1E4588DA002D62A4 /* README.zh-CN.md */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t10C136AF1D1EEF0000D63AAF /* FNMatchPull.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FNMatchPull.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t10C136B21D1EEF0000D63AAF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t10C136B41D1EEF0000D63AAF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = \"<group>\"; };\n\t\t10C136B71D1EEF0000D63AAF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = \"<group>\"; };\n\t\t10C136B91D1EEF0000D63AAF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t10C136BC1D1EEF0000D63AAF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = \"<group>\"; };\n\t\t10C136BE1D1EEF0000D63AAF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t10C136C51D1EEF5D00D63AAF /* FNAnimator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNAnimator.swift; sourceTree = \"<group>\"; };\n\t\t10C136C61D1EEF5D00D63AAF /* FNMatchPullAnimator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMatchPullAnimator.swift; sourceTree = \"<group>\"; };\n\t\t10C136C71D1EEF5D00D63AAF /* FNMatchPullMatch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMatchPullMatch.swift; sourceTree = \"<group>\"; };\n\t\t10C136C81D1EEF5D00D63AAF /* FNMatchPullView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMatchPullView.swift; sourceTree = \"<group>\"; };\n\t\t10C136C91D1EEF5D00D63AAF /* FNPullToRefreshExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNPullToRefreshExtension.swift; sourceTree = \"<group>\"; };\n\t\t10C136CA1D1EEF5D00D63AAF /* FNPullToRefreshView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNPullToRefreshView.swift; sourceTree = \"<group>\"; };\n\t\t10C136D11D1EEF8A00D63AAF /* FNMatchPullTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMatchPullTableViewCell.swift; sourceTree = \"<group>\"; };\n\t\t10C136D31D1F7AA700D63AAF /* FNMatchFontParser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMatchFontParser.swift; sourceTree = \"<group>\"; };\n\t\tE4A97BEA1E4588DA002D62A4 /* FNMatchPull.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = FNMatchPull.podspec; sourceTree = \"<group>\"; };\n\t\tE4A97BEB1E4588DA002D62A4 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = \"<group>\"; };\n\t\tE4A97BEC1E4588DA002D62A4 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = \"<group>\"; };\n\t\tE4A97BED1E4588DA002D62A4 /* README.zh-CN.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = \"README.zh-CN.md\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t10C136AC1D1EEF0000D63AAF /* 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\t10C136A61D1EEF0000D63AAF = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE4A97BE91E4588CE002D62A4 /* Podspec */,\n\t\t\t\t10C136B11D1EEF0000D63AAF /* FNMatchPull */,\n\t\t\t\t10C136B01D1EEF0000D63AAF /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t10C136B01D1EEF0000D63AAF /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t10C136AF1D1EEF0000D63AAF /* FNMatchPull.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t10C136B11D1EEF0000D63AAF /* FNMatchPull */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t10C136C41D1EEF5D00D63AAF /* FNMatchPull */,\n\t\t\t\t10C136B21D1EEF0000D63AAF /* AppDelegate.swift */,\n\t\t\t\t10C136B41D1EEF0000D63AAF /* ViewController.swift */,\n\t\t\t\t10C136D11D1EEF8A00D63AAF /* FNMatchPullTableViewCell.swift */,\n\t\t\t\t10C136B61D1EEF0000D63AAF /* Main.storyboard */,\n\t\t\t\t10C136B91D1EEF0000D63AAF /* Assets.xcassets */,\n\t\t\t\t10C136BB1D1EEF0000D63AAF /* LaunchScreen.storyboard */,\n\t\t\t\t10C136BE1D1EEF0000D63AAF /* Info.plist */,\n\t\t\t);\n\t\t\tpath = FNMatchPull;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t10C136C41D1EEF5D00D63AAF /* FNMatchPull */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t10C136D31D1F7AA700D63AAF /* FNMatchFontParser.swift */,\n\t\t\t\t10C136C61D1EEF5D00D63AAF /* FNMatchPullAnimator.swift */,\n\t\t\t\t10C136C81D1EEF5D00D63AAF /* FNMatchPullView.swift */,\n\t\t\t\t10C136C71D1EEF5D00D63AAF /* FNMatchPullMatch.swift */,\n\t\t\t\t10C136C51D1EEF5D00D63AAF /* FNAnimator.swift */,\n\t\t\t\t10C136C91D1EEF5D00D63AAF /* FNPullToRefreshExtension.swift */,\n\t\t\t\t10C136CA1D1EEF5D00D63AAF /* FNPullToRefreshView.swift */,\n\t\t\t);\n\t\t\tpath = FNMatchPull;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE4A97BE91E4588CE002D62A4 /* Podspec */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE4A97BEA1E4588DA002D62A4 /* FNMatchPull.podspec */,\n\t\t\t\tE4A97BEB1E4588DA002D62A4 /* LICENSE */,\n\t\t\t\tE4A97BEC1E4588DA002D62A4 /* README.md */,\n\t\t\t\tE4A97BED1E4588DA002D62A4 /* README.zh-CN.md */,\n\t\t\t);\n\t\t\tname = Podspec;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t10C136AE1D1EEF0000D63AAF /* FNMatchPull */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 10C136C11D1EEF0000D63AAF /* Build configuration list for PBXNativeTarget \"FNMatchPull\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t10C136AB1D1EEF0000D63AAF /* Sources */,\n\t\t\t\t10C136AC1D1EEF0000D63AAF /* Frameworks */,\n\t\t\t\t10C136AD1D1EEF0000D63AAF /* 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 = FNMatchPull;\n\t\t\tproductName = FNMatchPull;\n\t\t\tproductReference = 10C136AF1D1EEF0000D63AAF /* FNMatchPull.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t10C136A71D1EEF0000D63AAF /* 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 = Fnoz;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t10C136AE1D1EEF0000D63AAF = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.3.1;\n\t\t\t\t\t\tLastSwiftMigration = 0820;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 10C136AA1D1EEF0000D63AAF /* Build configuration list for PBXProject \"FNMatchPull\" */;\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\tEnglish,\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 10C136A61D1EEF0000D63AAF;\n\t\t\tproductRefGroup = 10C136B01D1EEF0000D63AAF /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t10C136AE1D1EEF0000D63AAF /* FNMatchPull */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t10C136AD1D1EEF0000D63AAF /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t10C136BD1D1EEF0000D63AAF /* LaunchScreen.storyboard in Resources */,\n\t\t\t\tE4A97BEE1E4588DA002D62A4 /* FNMatchPull.podspec in Resources */,\n\t\t\t\t10C136BA1D1EEF0000D63AAF /* Assets.xcassets in Resources */,\n\t\t\t\t10C136B81D1EEF0000D63AAF /* Main.storyboard in Resources */,\n\t\t\t\tE4A97BEF1E4588DA002D62A4 /* LICENSE 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\t10C136AB1D1EEF0000D63AAF /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t10C136CB1D1EEF5D00D63AAF /* FNAnimator.swift in Sources */,\n\t\t\t\t10C136CF1D1EEF5D00D63AAF /* FNPullToRefreshExtension.swift in Sources */,\n\t\t\t\tE4A97BF11E4588DA002D62A4 /* README.zh-CN.md in Sources */,\n\t\t\t\t10C136CC1D1EEF5D00D63AAF /* FNMatchPullAnimator.swift in Sources */,\n\t\t\t\t10C136CD1D1EEF5D00D63AAF /* FNMatchPullMatch.swift in Sources */,\n\t\t\t\t10C136D01D1EEF5D00D63AAF /* FNPullToRefreshView.swift in Sources */,\n\t\t\t\t10C136D21D1EEF8A00D63AAF /* FNMatchPullTableViewCell.swift in Sources */,\n\t\t\t\t10C136CE1D1EEF5D00D63AAF /* FNMatchPullView.swift in Sources */,\n\t\t\t\t10C136D41D1F7AA700D63AAF /* FNMatchFontParser.swift in Sources */,\n\t\t\t\t10C136B51D1EEF0000D63AAF /* ViewController.swift in Sources */,\n\t\t\t\tE4A97BF01E4588DA002D62A4 /* README.md in Sources */,\n\t\t\t\t10C136B31D1EEF0000D63AAF /* 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\t10C136B61D1EEF0000D63AAF /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t10C136B71D1EEF0000D63AAF /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t10C136BB1D1EEF0000D63AAF /* LaunchScreen.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t10C136BC1D1EEF0000D63AAF /* 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\t10C136BF1D1EEF0000D63AAF /* 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};\n\t\t\tname = Debug;\n\t\t};\n\t\t10C136C01D1EEF0000D63AAF /* 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\tVALIDATE_PRODUCT = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t10C136C21D1EEF0000D63AAF /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tDEVELOPMENT_TEAM = \"\";\n\t\t\t\tINFOPLIST_FILE = FNMatchPull/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = Fnoz.FNMatchPull;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t10C136C31D1EEF0000D63AAF /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tDEVELOPMENT_TEAM = \"\";\n\t\t\t\tINFOPLIST_FILE = FNMatchPull/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = Fnoz.FNMatchPull;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 4.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t10C136AA1D1EEF0000D63AAF /* Build configuration list for PBXProject \"FNMatchPull\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t10C136BF1D1EEF0000D63AAF /* Debug */,\n\t\t\t\t10C136C01D1EEF0000D63AAF /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t10C136C11D1EEF0000D63AAF /* Build configuration list for PBXNativeTarget \"FNMatchPull\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t10C136C21D1EEF0000D63AAF /* Debug */,\n\t\t\t\t10C136C31D1EEF0000D63AAF /* 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 = 10C136A71D1EEF0000D63AAF /* Project object */;\n}\n"
  },
  {
    "path": "FNMatchPull.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:FNMatchPull.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "FNMatchPull.xcodeproj/xcuserdata/Fnoz.xcuserdatad/xcschemes/FNMatchPull.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"0730\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"10C136AE1D1EEF0000D63AAF\"\n               BuildableName = \"FNMatchPull.app\"\n               BlueprintName = \"FNMatchPull\"\n               ReferencedContainer = \"container:FNMatchPull.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"10C136AE1D1EEF0000D63AAF\"\n            BuildableName = \"FNMatchPull.app\"\n            BlueprintName = \"FNMatchPull\"\n            ReferencedContainer = \"container:FNMatchPull.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"10C136AE1D1EEF0000D63AAF\"\n            BuildableName = \"FNMatchPull.app\"\n            BlueprintName = \"FNMatchPull\"\n            ReferencedContainer = \"container:FNMatchPull.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"10C136AE1D1EEF0000D63AAF\"\n            BuildableName = \"FNMatchPull.app\"\n            BlueprintName = \"FNMatchPull\"\n            ReferencedContainer = \"container:FNMatchPull.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2017 FNMatchPull\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\nall copies 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\nTHE SOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# FNMatchPull ![Supported Platforms](https://img.shields.io/cocoapods/p/FNMatchPull.svg) [![Latest pod release](https://img.shields.io/cocoapods/v/FNMatchPull.svg)](https://cocoapods.org/pods/UIImageView+Extension) [![Build Status](https://travis-ci.org/alexandreos/FNMatchPull.svg?branch=master)]() [![License](https://img.shields.io/cocoapods/l/FNMatchPull.svg)](https://github.com/lm2343635/UIImageView-Extension/LICENSE)\n\nA match character and pattern refresh control by Swift based in [CBStoreHouseRefreshControl](https://github.com/coolbeet/CBStoreHouseRefreshControl).\n\nSimplified Chinese is here [简体中文](https://github.com/Fnoz/FNMatchPull/blob/master/README.zh-CN.md).\n\n### Installation\nInstalling FNMatchPull by [CocoaPods](http://cocoapods.org/). \n\n```ruby\npod 'FNMatchPull', '~> 0.2'\n```\n\n### Demo：\n\n#### Style = .Pattern\nAnimation can be created by points.\n\n```\nlet matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))\nmatchAnimator.startPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 25)),\n                             NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 55))]\nmatchAnimator.endPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40)),\n                           NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40))]\ntableView.addPullToRefreshWithAction({\n    //refresh action\n    }, withAnimator: matchAnimator)\n```\n\n#### Style = .Text\nAnimation can be created by English letters. Line width can be defined by yourself.\n```\nlet matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))\nmatchAnimator.text = \"FNOZ\"\nmatchAnimator.lineWidth = 4.0\nmatchAnimator.style = .Text\ntableView.addPullToRefreshWithAction({\n    //refresh action\n    }, withAnimator: matchAnimator)\n```\n\n### Effect：\n![Animating](readme_images/00.gif)\n![Animating](readme_images/01.gif)\n\n![Animating](readme_images/02.gif)\n\n### Source：\nThe Objective-C edition is [CBStoreHouseRefreshControl](https://github.com/coolbeet/CBStoreHouseRefreshControl) by [coolbeet](https://github.com/coolbeet).\nOur FNMatchPull can transfer English letters to pattern direclty.\n"
  },
  {
    "path": "README.zh-CN.md",
    "content": "# FNMatchPull ![Supported Platforms](https://img.shields.io/cocoapods/p/FNMatchPull.svg) [![Latest pod release](https://img.shields.io/cocoapods/v/FNMatchPull.svg)](https://cocoapods.org/pods/UIImageView+Extension) [![Build Status](https://travis-ci.org/alexandreos/FNMatchPull.svg?branch=master)]() [![License](https://img.shields.io/cocoapods/l/FNMatchPull.svg)](https://github.com/lm2343635/UIImageView-Extension/LICENSE)\n\nSwift实现的火柴图案&火柴文字下拉刷新动效（超炫酷下拉刷新），Swift&加强版本CBStoreHouseRefreshControl.\n### 安装\n通过[CocoaPods](http://cocoapods.org/)安装，手动安装直接将FNMatchPull/FNMatchPull目录下的文件复制到工程中。\n\n```ruby\npod 'FNMatchPull', '~> 0.2'\n```\n### 基础使用Demo\n\n#### Style = .Pattern类型\n动画内容为火柴棒组成的图案\n\n```\nlet matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))\nmatchAnimator.startPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 25)),\nNSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 55))]\nmatchAnimator.endPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40)),\nNSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40))]\ntableView.addPullToRefreshWithAction({\n//refresh action\n}, withAnimator: matchAnimator)\n```\n\n#### Style = .Text类型\n传入英文字符串，自动转换为图案动画，可自定义线条宽度\n\n```\nlet matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))\nmatchAnimator.text = \"FNOZ\"\nmatchAnimator.lineWidth = 4.0\nmatchAnimator.style = .Text\ntableView.addPullToRefreshWithAction({\n//refresh action\n}, withAnimator: matchAnimator)\n```\n\n### 效果\n![Animating](readme_images/00.gif)\n![Animating](readme_images/01.gif)\n\n![Animating](readme_images/02.gif)\n\n### 来源\nOC原版是 [coolbeet](https://github.com/coolbeet) 的 [CBStoreHouseRefreshControl](https://github.com/coolbeet/CBStoreHouseRefreshControl)，另外增加了酷酷的直接把英文字符串变成图片的功能。\n"
  }
]