Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Make. It. Bounce.

License

NotificationsYou must be signed in to change notification settings

roberthein/BouncyLayout

Repository files navigation

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

Features

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

Setup

The only you thing you need to do is importBouncyLayout, create an instance and add it to yourUICollectionView.

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

Installation

CocoaPods

BouncyLayout is available throughCocoaPods. To installit, simply add the following line to your Podfile:

pod"BouncyLayout"

Carthage

BouncyLayout is available throughCarthage. To installit, simply add the following line to your Cartfile:

github "roberthein/BouncyLayout"

Swift Package Manager

BouncyLayout is available throughSwift Package Manager. To installit, in Xcode 11.0 or later selectFile >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 meon Twitter.


[8]ページ先頭

©2009-2025 Movatter.jp