• Stars
    star
    1,304
  • Rank 34,612 (Top 0.8 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A lightweight UICollectionViewLayout that 'pages' and centers its cells ๐ŸŽก written in Swift

CenteredCollectionView

Build Status Version Carthage compatible SwiftPM compatible Swift 5.0 Platform

CenteredCollectionView is a lightweight drop in place UICollectionViewFlowLayout that pages and keeps its cells centered, resulting in the "carousel effect" ๐ŸŽก

Example

Demo

To try the example using Cocoapods:

pod try CenteredCollectionView

Requirements

This pod requires a deployment target of iOS 9.0 or greater

Installation

CenteredCollectionView is available through Swift Package Manager, CocoaPods and Carthage.

To install it with Swift Package Manager, add the URL https://github.com/BenEmdon/CenteredCollectionView in Xcode Add Package Dependency assistant ; or add to your own Package.swift:

dependencies: [
  .package(url: "https://github.com/BenEmdon/CenteredCollectionView", from: "2.2.2")
]

To install it with Cocoapods, add the following line to your Podfile:

pod "CenteredCollectionView"

To install it with Carthage, add the following line to your Cartfile:

github "BenEmdon/CenteredCollectionView"

Usage

Checkout USAGE.md

API

Checkout API.md

Contributing

Have a suggestion? All contributions are welcome!

If you make a pull request or an issue, you're likely to get a swift response!

Author

@BenEmdon ๐Ÿ‘จโ€๐Ÿ’ป

License

CenteredCollectionView is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

PixelArtMaker

A pixel art editor in a Swift Playground ๐Ÿ‘พ WWDC Scholarship Winner ๐Ÿ…
Swift
106
star
2

8-Bit-MusicMaker

An 8-Bit music sequencer in a Swift Playground ๐ŸŽต WWDC Scholarship Winner ๐Ÿ…
Swift
63
star
3

PocketMoney

An iOS money management app for people who deal mostly in cash and change. (Second App)
Swift
18
star
4

Tic-Tac-Toe

First iOS app! A Tic Tac Toe game for iOS in Swift 2.0
Swift
17
star
5

BenEmdon.GitHub.io

Personal website *always* under construction
HTML
13
star
6

RxMoya-Example

A Rx-Moya-Argo MVVM GitHub example app
Swift
13
star
7

OpenSourceSoftware

Why and how to get started in Open Source Software ๐Ÿ—
11
star
8

Swift-iOS-Workshop

An intro to Swift and iOS using Swift Playgrounds ๐Ÿ“™
Swift
11
star
9

awesome-online-games

A repo listing some awesome online games to play with friends/colleagues while we are all staying at home
8
star
10

movie-recommendations

Crowd sourced movie recommendations ๐Ÿฟ
8
star
11

emojis-as-a-service

JavaScript
5
star
12

devsetup

My lightweight developer setup
5
star
13

SkipList-Swift

A SkipListList implementation in Swift
Swift
4
star
14

SocketChatApp

A simple Socket.io chat app
JavaScript
4
star
15

one-on-ones

This repo serves as a template to organize your 1:1s in
3
star
16

RoboHacks_Mapping

Autonomous room mapping robot [McGill]
C++
2
star
17

Serverless-workshop

Intro to Serverless Computing workshop
JavaScript
2
star
18

repo-with-no-issues

1
star
19

dotfiles

dotfiles for my codespaces
Shell
1
star
20

QLIKHACKS

JavaScript
1
star
21

meal-deals

Concept iOS app - Hack the North Project
Swift
1
star