Skip to content

erduoniba/HDZoomCollectionView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HDZoomCollectionView for iOS

Translate ZoomCollectionView project.

UICollectionView is great, but it is not zoomable (which is rather strange since it is inherits from UIScrollView). This project is an attempt to implement zooming using custom a UICollectionViewLayout which resizes itself to simulate the effect we know and love from UIScrollView.

How does it work?

HDZoomCollectionView is a container view that encapsulates three views:

  • A UICollectionView for the actual collection data
  • A UIScrollView for the zoom/scroll hooks
  • A dummy UIView that the scroll view uses for its zooming capabilities

When the scroll view is zoomed or scrolled it forwards the content offset to the collection view and the scale factor to the UICollectionViewLayout

How the layout recalculates its attributes is implementation specific but an example

can be found in HDZoomCollectionViewFlowLayout.

What works

  • Scrolling
  • Zooming
  • Align Center
  • Rotation Support

About

UICollectionView is great, but it is not zoomable (which is rather strange since it is inherits from UIScrollView). This project is an attempt to implement zooming using custom a UICollectionViewLayout which resizes itself to simulate the effect we know and love from UIScrollView.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors