Comments (8)
Alright.
1.invisibleCellCount 2.attributes.center 3.contentSize
Here's the core codes.
if configuration.wheelType == .bottomCenter || configuration.wheelType == .topCenter {
invisibleCellCount = Double(collectionView.contentOffset.x/configuration.cellSize.width)
} else {
invisibleCellCount = Double(collectionView.contentOffset.y/configuration.cellSize.height)
}
case .topCenter:
attributes.center = CGPoint(x: contentOffset.x+(viewSize.width)/2.0, y: (contentOffset.y)+cellSize.height/2)
case .bottomCenter,.topCenter:
visibleCellCount = CGFloat(180.0/configuration.angular+1.0)
contentSize = CGSize(width: (viewSize.width)+(CGFloat(cellCount)-visibleCellCount)*(configuration.cellSize.width)+CGFloat(configuration.contentHeigthPadding), height:viewSize.height)
from cpcollectionviewwheellayoutswift.
It was a vertical layout before.But it's horizontal now.
from cpcollectionviewwheellayoutswift.
@mukyasa Thanks for your comments.I'll be glad to do it.The the layout direction is vertical now.You want it horizontal?Right?
from cpcollectionviewwheellayoutswift.
I think so it already horizontal, but the scroll direction is reversed, means if i swipe left the collectionview scrolls to right and vice versa.
from cpcollectionviewwheellayoutswift.
Yeah.I got it.I will fix it in 20 minutes.
from cpcollectionviewwheellayoutswift.
@mukyasa YO!Checkout this repo.I think it's ok now.
from cpcollectionviewwheellayoutswift.
from cpcollectionviewwheellayoutswift.
Sure Bro, Thanks for quick response ,
from cpcollectionviewwheellayoutswift.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpcollectionviewwheellayoutswift.