{"id":13990302,"url":"https://github.com/brow/leaves","last_synced_at":"2025-04-09T08:03:56.832Z","repository":{"id":876516,"uuid":"619073","full_name":"brow/leaves","owner":"brow","description":"A page-turning interface for iOS apps","archived":false,"fork":false,"pushed_at":"2017-11-24T03:19:52.000Z","size":3867,"stargazers_count":1435,"open_issues_count":8,"forks_count":332,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-02T06:13:50.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brow.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-04-20T05:53:04.000Z","updated_at":"2025-04-01T14:11:44.000Z","dependencies_parsed_at":"2022-08-16T11:15:28.369Z","dependency_job_id":null,"html_url":"https://github.com/brow/leaves","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brow%2Fleaves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brow%2Fleaves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brow%2Fleaves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brow%2Fleaves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brow","download_url":"https://codeload.github.com/brow/leaves/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999859,"owners_count":21031046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T13:02:32.243Z","updated_at":"2025-04-09T08:03:56.803Z","avatar_url":"https://github.com/brow.png","language":"Objective-C","readme":"#Leaves\n\nLeaves is an animated interface for navigating through a sequence of images\nusing page-turning gestures. As of iOS 5, Leaves is mostly obsoleted by\n[UIPageViewController].\n\nLeaves requires iOS 3.0 or later.\n\n##Installation\n\n1. Add the files in the `Leaves` subdirectory to your Xcode project.\n2. Ensure that your target links against `QuartzCore.framework`.\n\n##Usage\n\nCreating a page-turning view controller is as simple as subclassing\n[LeavesViewController][]:\n\n    #import \"LeavesViewController.h\"\n\n    @interface ColorSwatchViewController : LeavesViewController \n    @end\n\n...and implementing the [LeavesViewDataSource][LeavesView] protocol:\n\n    @implementation ColorSwatchViewController\n\n    - (NSUInteger)numberOfPagesInLeavesView:(LeavesView*)leavesView { \n        return 10;\n    }\n\n    - (void)renderPageAtIndex:(NSUInteger)index inContext:(CGContextRef)context { \n        CGContextSetFillColorWithColor(\n            context, \n            [[UIColor colorWithHue:index/10.0 \n                        saturation:0.8 \n                        brightness:0.8 \n                             alpha:1.0] CGColor]);\n        CGContextFillRect(ctx, CGContextGetClipBoundingBox(ctx));\n    }\n\n    @end\n\nYou may also use [LeavesView] directly. For more examples, see the included\n`LeavesExamples` project.\n\n##Forks\n* [Two-page view](https://github.com/ole/leaves/tree/twopages) by [ole](https://github.com/ole) ([blog post](http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/))\n* [Zooming](https://github.com/hammerlyrodrigo/leaves) by [hammerlyrodrigo](https://github.com/hammerlyrodrigo)\n* [ARC](https://github.com/tjboudreaux/leaves) by [tjboudreaux](https://github.com/tjboudreaux)\n* [Retina support](https://github.com/Vortec4800/leaves) by [Vortec4800](https://github.com/Vortec4800)\n\n## Articles\n* [App Store-safe Page Curl animations](http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/)\n* [How To Add A Slick iBooks Like Page Turning Effect Into Your Apps](http://maniacdev.com/2010/06/lick-ibooks-like-page-turning-effect)\n* [Building an iPad Reader for _War of the Worlds_](http://mobile.tutsplus.com/tutorials/iphone/building-an-ipad-reader-for-war-of-the-worlds/)\n\n[UIPageViewController]: https://developer.apple.com/library/ios/documentation/uikit/reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html\n[LeavesViewController]: https://github.com/brow/leaves/blob/master/Leaves/LeavesViewController.h\n[LeavesView]: https://github.com/brow/leaves/blob/master/Leaves/LeavesView.h\n","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrow%2Fleaves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrow%2Fleaves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrow%2Fleaves/lists"}