Latest 0.2.1
Homepage https://github.com/Fnoz/FNMatchPull
License MIT
Platforms ios 8.0, requires ARC
Authors

FNMatchPull Supported Platforms Latest pod release [Build Status]() License

A match character and pattern refresh control by Swift based in CBStoreHouseRefreshControl.

Simplified Chinese is here 简体中文.

Installation

Installing FNMatchPull by CocoaPods.

pod 'FNMatchPull', '~> 0.2'

Demo:

Style = .Pattern

Animation can be created by points.

let matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))
matchAnimator.startPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 25)),
                             NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 30, 55))]
matchAnimator.endPoints = [NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40)),
                           NSValue.init(CGPoint: CGPointMake(SCREENWIDTH/2 - 15 - 30, 40))]
tableView.addPullToRefreshWithAction({
    //refresh action
    }, withAnimator: matchAnimator)

Style = .Text

Animation can be created by English letters. Line width can be defined by yourself.

let matchAnimator = FNMatchPullAnimator(frame: CGRectMake(0, 0, 320, 80))
matchAnimator.text = "FNOZ"
matchAnimator.lineWidth = 4.0
matchAnimator.style = .Text
tableView.addPullToRefreshWithAction({
    //refresh action
    }, withAnimator: matchAnimator)

Effect:

Animating
Animating

Animating

Source:

The Objective-C edition is CBStoreHouseRefreshControl by coolbeet.
Our FNMatchPull can transfer English letters to pattern direclty.

Latest podspec

{
    "name": "FNMatchPull",
    "version": "0.2.1",
    "summary": "A match character and pattern refresh control by Swift.",
    "description": "# Featuresn   - Animation can be created by points.n   - Animation can be created by English letters.",
    "homepage": "https://github.com/Fnoz/FNMatchPull",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Lu WJ and Meng Li": "[email protected]"
    },
    "social_media_url": "https://github.com/Fnoz",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Fnoz/FNMatchPull.git",
        "tag": "0.2.1"
    },
    "source_files": "FNMatchPull/FNMatchPull/*.{swift}",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This