brow/leaves
brow/leaves has 1,422 GitHub stars and 322 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 05:34 UTC. Last push 2017-11-24.
A page-turning interface for iOS apps
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original#Leaves
Leaves is an animated interface for navigating through a sequence of images using page-turning gestures. As of iOS 5, Leaves is mostly obsoleted by UIPageViewController.
Leaves requires iOS 3.0 or later.
##Installation
- Add the files in the
Leavessubdirectory to your Xcode project. - Ensure that your target links against
QuartzCore.framework.
##Usage
Creating a page-turning view controller is as simple as subclassing LeavesViewController:
#import "LeavesViewController.h"
@interface ColorSwatchViewController : LeavesViewController
@end
...and implementing the LeavesViewDataSource protocol:
@implementation ColorSwatchViewController
- (NSUInteger)numberOfPagesInLeavesView:(LeavesView*)leavesView {
return 10;
}
- (void)renderPageAtIndex:(NSUInteger)index inContext:(CGContextRef)context {
CGContextSetFillColorWithColor(
context,
[[UIColor colorWithHue:index/10.0
saturation:0.8
brightness:0.8
alpha:1.0] CGColor]);
CGContextFillRect(ctx, CGContextGetClipBoundingBox(ctx));
}
@end
You may also use LeavesView directly. For more examples, see the included
LeavesExamples project.
##Forks
- Two-page view by ole (blog post)
- Zooming by hammerlyrodrigo
- ARC by tjboudreaux
- Retina support by Vortec4800
Articles
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,011 starspublic-apis/public-apis
A collective list of free APIs
497,254 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
443,104 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,194 stars