SkillAgentSearch skills...

AASpringRefresh

All around Unread.app like pull to refresh library.

Install / Use

/learn @r-plus/AASpringRefresh
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

AASpringRefresh

CI Status Version License Platform

All around Unread.app like pull to refresh library.

<img src="http://f.cl.ly/items/2u1f3V190J3Z1t3E3d3T/Screen%20Recording%202015-02-15%20at%2011.27%20%E5%8D%88%E5%BE%8C.gif" alt="Demo gif" width="300" />

Requirement

  • ARC.
  • iOS 7 or higher.

Install

CocoaPods

Add pod 'AASpringRefresh' to your Podfile.

Manually

  1. Copy AASpringRefresh directory to your project.

Usage

#import "AASpringRefresh.h"
...
AASpringRefresh *springRefresh = [self.scrollView addSpringRefreshPosition:AASpringRefreshPositionTop actionHandler:^(AASpringRefresh *v) {
    // do something...
}];

Customization

Property

You can customize below properties.

springRefresh.unExpandedColor = [UIColor grayColor];
springRefresh.expandedColor = [UIColor blackColor];
springRefresh.readyColor = [UIColor redColor];
springRefresh.text = @"REFRESH"; // available for position Top or Bottom.
springRefresh.borderThickness = 6.0;
springRefresh.affordanceMargin = 10.0; // to adjust space between scrollView edge and affordanceView.
springRefresh.offsetMargin = 30.0; // to adjust threshold of offset.
springRefresh.threshold = 60.0;  // default is width or height of size.
springRefresh.size = CGSizeMake(60.0, 40.0); // to adjust expanded size and each interval space.
springRefresh.show = NO; // dynamic show/hide affordanceView and add/remove KVO observer.

LICENSE

MIT License

View on GitHub
GitHub Stars86
CategoryDevelopment
Updated1y ago
Forks5

Languages

Objective-C

Security Score

65/100

Audited on Feb 24, 2025

No findings