Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roberthein/BouncyLayout
Make. It. Bounce.
https://github.com/roberthein/BouncyLayout
bounce bouncy collection collectionview flow flowlayout layout libraries library spring springy swift swift3 swift4 uicollectionview uicollectionviewlayout uikitdynamics view
Last synced: about 1 month ago
JSON representation
Make. It. Bounce.
- Host: GitHub
- URL: https://github.com/roberthein/BouncyLayout
- Owner: roberthein
- License: mit
- Created: 2017-04-23T12:12:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T18:41:46.000Z (over 4 years ago)
- Last Synced: 2024-10-29T15:28:54.368Z (2 months ago)
- Topics: bounce, bouncy, collection, collectionview, flow, flowlayout, layout, libraries, library, spring, springy, swift, swift3, swift4, uicollectionview, uicollectionviewlayout, uikitdynamics, view
- Language: Swift
- Size: 43.6 MB
- Stars: 4,245
- Watchers: 52
- Forks: 197
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - BouncyLayout - BouncyLayout is a collection view layout that makes your cells bounce. (UI / Table View / Collection View)
- awesome-swift - BouncyLayout - Collection view layout that makes your cells bounce. (Libs / UI)
- awesome-swift - BouncyLayout - Collection view layout that makes your cells bounce. (Libs / UI)
- awesome-ios-star - BouncyLayout - BouncyLayout is a collection view layout that makes your cells bounce. (UI / Table View / Collection View)
- awesome-ios - BouncyLayout - BouncyLayout is a collection view layout that makes your cells bounce [•](https://raw.githubusercontent.com/roberthein/BouncyLayout/master/art/gifs/02.gif) (Content / Layout)
- fucking-awesome-swift - BouncyLayout - Collection view layout that makes your cells bounce. (Libs / UI)
- awesome-swift - BouncyLayout - Make. It. Bounce. ` 📝 a year ago` (UI [🔝](#readme))
- awesome - BouncyLayout - Make. It. Bounce. (OOM-Leaks-Crash / FlowLayout)
- awesome - BouncyLayout - Make. It. Bounce. (view)
README
![](art/header.png)
**BouncyLayout** is a collection view layout that makes your cells bounce.
## Features
- [X] Pure Swift 5.
- [X] Works with every `UICollectionView`.
- [X] Horizontal and vertical scrolling support.
- [X] Configurable bounce effect.
- [X] Supports cell size changes## Setup
The only you thing you need to do is import `BouncyLayout`, create an instance and add it to your `UICollectionView`.
```swift
import BouncyLayout
```
```swift
let layout = BouncyLayout()
```
```swift
UICollectionView(frame: .zero, collectionViewLayout: layout)
```##### Find the above displayed examples in the `example` folder.
## Installation
### CocoaPods
BouncyLayout is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "BouncyLayout"
```### Carthage
BouncyLayout is available through [Carthage](https://github.com/Carthage/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](https://swift.org/package-manager/). To install
it, in Xcode 11.0 or later select `File` > `Swift Packages` > `Add Package Dependency...` and add BouncyLayout repository URL:
```
https://github.com/roberthein/BouncyLayout.git
```## Suggestions or feedback?
Feel free to create a pull request, open an issue or find me [on Twitter](https://twitter.com/roberthein).