All Projects → akhilcb → ACBRadialCollectionView

akhilcb / ACBRadialCollectionView

Licence: MIT License
An extension on UICollectionView which automatically transforms collection view cells to a radial path

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ACBRadialCollectionView

SNCollectionViewLayout
Collection View Layouts is a set of custom flow layouts for iOS which imitate general data grid approaches for mobile apps.
Stars: ✭ 100 (+222.58%)
Mutual labels:  collectionview, collectionviewlayout
Bubblepictures
Bubble Pictures for iOS done in Swift
Stars: ✭ 434 (+1300%)
Mutual labels:  collectionview, circular
KNURE-TimeTable
🎓 iOS приложение для просмотра расписания ХНУРЭ
Stars: ✭ 21 (-32.26%)
Mutual labels:  collectionview, collectionviewlayout
Collectionviewslantedlayout
A CollectionView Layout displaying a slanted cells
Stars: ✭ 2,029 (+6445.16%)
Mutual labels:  collectionview, collectionviewlayout
JHCollectionViewFlowLayout
CollectionView horizontal layout,横向排版
Stars: ✭ 30 (-3.23%)
Mutual labels:  collectionview, collectionviewlayout
snextensions
A set of open source extensions for StandardNotes you can self-host.
Stars: ✭ 68 (+119.35%)
Mutual labels:  extension
Free-Internet-Plugin
A free Internet is a better Internet. This Chrome browser plugin removes paywalled content from Google search results.
Stars: ✭ 121 (+290.32%)
Mutual labels:  extension
Google-Meet-Hack
Google Meet Auto Leave Extension
Stars: ✭ 95 (+206.45%)
Mutual labels:  extension
ccaptioner
An extension to assign a text track to a video element in a web page
Stars: ✭ 45 (+45.16%)
Mutual labels:  extension
protonmail-webextension
Unofficial webextension for ProtonMail
Stars: ✭ 39 (+25.81%)
Mutual labels:  extension
openapi
OpenAPI (fka Swagger) spec renderer for Sphinx.
Stars: ✭ 78 (+151.61%)
Mutual labels:  extension
alphabetical-grid-extension
Restore the alphabetical ordering of the app grid, removed in GNOME 3.38
Stars: ✭ 43 (+38.71%)
Mutual labels:  extension
charon
Decentr browser extension
Stars: ✭ 13 (-58.06%)
Mutual labels:  extension
SPRCollectionView
iOS:使用CollectionView实现Wallet效果
Stars: ✭ 97 (+212.9%)
Mutual labels:  collectionview
sticky-reader-mode
A browser extension to turn on Reader Mode automatically per your preference
Stars: ✭ 18 (-41.94%)
Mutual labels:  extension
urql-devtools-exchange
The exchange for usage with Urql Devtools
Stars: ✭ 35 (+12.9%)
Mutual labels:  extension
UICollectionViewTutorial
UICollectionView系统学习以及自定义布局。
Stars: ✭ 35 (+12.9%)
Mutual labels:  collectionview
vscode-appwrite
Appwrite extension for Visual Studio Code
Stars: ✭ 30 (-3.23%)
Mutual labels:  extension
pentadactyl-pm
Pentadactyl for Pale Moon | New official repo is here https://github.com/pentadactyl/pentadactyl
Stars: ✭ 26 (-16.13%)
Mutual labels:  extension
How to write cuda extensions in pytorch
How to write cuda kernels or c functions in pytorch, especially for former caffe users.
Stars: ✭ 51 (+64.52%)
Mutual labels:  extension

ACBRadialCollectionView

CocoaPods Compatible Carthage Compatible Platform License

This is an extension on UICollectionView which automatically transforms collection view cells to a radial path with minimal code. This is written in Swift language. No need to subclass UICollectionView for this. CollectionView will also display an arc shaped scroll bar next to the cells which acts similar to the normal scroll bar.

Using this approach, we can support multiple collectionviews on one screen as shown below(Note: number of sections should be 1 for all collection views). Each will have its own scrolling and scroll direction can also be changed for each of them separately.

Demo


Setup

Carthage or Cocoapods can be used to integrate this to a project.

Carthage

github "akhilcb/ACBRadialCollectionView" ~> 2.0

Cocoapods

pod 'ACBRadialCollectionView'

This can be manually integrated to the project by following the code in ACBViewController.

1. Copy all files to your Xcode project. "UICollectionView+ACBRadialCollectionView" is the extension class file.
2. Invoke the method "enableRadialLayout" on your UICollectionView with required input params.

For eg:-

let center = CGPoint(x: 50, y: 100)
let radius: CGFloat =  100
let cellSize = CGSize(width: 50, height: 50)
let startAngle =  CGFloat(0)
let endAngle = CGFloat.pi / 2
let direction = ACBRadialCollectionViewScrollDirection.clockwise

self.collectionView.enableRadialLayout(WithCenter: center, radius: radius, cellSize: cellSize, angularSpacing: 20.0, scrollDirection: direction, startAngle: startAngle, endAngle: endAngle) //repeat this for other collectionviews too

You can also control whether the cells needs to be rotated to an angle(Note: This works only if you have called enableRadialLayout before setting this, default value is true).

self.collectionView.applyRotationToCells = false

Screenshots

License

MIT License

Copyright (c) 2017, Akhil C Balan(https://github.com/akhilcb)

All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].