CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

FNMatchPull 0.2.1

FNMatchPull 0.2.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Feb 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by [Meng Li].



FNMatchPull Build Status

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.