Swiftpack.co -  roberthein/BouncyLayout as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Make. It. Bounce.
.package(url: "https://github.com/roberthein/BouncyLayout.git", from: "2.3.1")

![](https://raw.github.com/roberthein/Boun<img style="max-width:100%;" src="https://raw.github.com/roberthein/BouncyLayout/master/aster/art/header.png)

BouncyLayout is a collection view layout that makes your cells bounce.


  • Pure Swift 5.
  • Works with every UICollectionView.
  • Horizontal and vertical scrolling support.
  • Configurable bounce effect.
  • Supports cell size changes


The only you thing you need to do is import BouncyLayout, create an instance and add it to your UICollectionView.

import BouncyLayout
let layout = BouncyLayout()
UICollectionView(frame: .zero, collectionViewLayout: layout)
Find the above displayed examples in the example folder.



BouncyLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "BouncyLayout"


BouncyLayout is available through Carthage. To install it, simply add the following line to your Cartfile:

github "roberthein/BouncyLayout"

Swift Package Manager

BouncyLayout is available through Swift Package Manager. To install it, in Xcode 11.0 or later select File > Swift Packages > Add Package Dependency... and add BouncyLayout repository URL:


Suggestions or feedback?

Feel free to create a pull request, open an issue or find me on Twitter.


Stars: 3970
Last commit: 1 year ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API