aas

AASpringRefresh

All around Unread.app like pull to refresh library.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

87

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

License

MIT

Categories

Readme

AASpringRefresh

CI Status Version License Platform

All around Unread.app like pull to refresh library.

Demo gif

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100