Skip to content

Collection view controller, view, and layouts for pinching from book view, to page grid, to full screen page.

Notifications You must be signed in to change notification settings

adamwulf/PageCollectionView

Repository files navigation

PageCollectionView

Collection view controller, view, and layouts for pinching from book view, to page grid, to full screen page.

This is a simple CollectionViewController, CollectionView, and related Layouts to navigate around collections of pages. The top-level layout is the Shelf, where collections of pages are grouped into rows. After selecting a row, that row fans out into a grid view. Last, when a page is selected, the pages zoom to full screen.

Navigating back out be either pulling at the top of the list, or by pinching back into the previous layout

Example:

Page Collection Sample Gif

This is a UICollectionView based layout based on Loose Leaf app. Loose Leaf's navigation has a number of other feature's I'd like to eventually implement here as well. When I built Loose Leaf originally, UICollectionViews didn't exist yet (ack!), so it's been a lot of fun rebuilding some of the interactions with much simpler and cleaner code!

Loose Leaf Sample Gif

Swift and Objective-C

This framework was originally written in Objective-C, and then rewritten in Swift in late '21. The original source is available in the old/obj-c branch. The new Swift version is now the main branch.

About

Collection view controller, view, and layouts for pinching from book view, to page grid, to full screen page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages