-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create CardsCollectionViewVerticalLayout.swift #3
base: master
Are you sure you want to change the base?
Conversation
*Renamed to VerticalCollectionViewLayout *Fixed issue with scrolling to 1st index (line 58 changed)
@Viscmad thank you for the PR! I will take a look asap. |
@Viscmad Hi, Feel free to look at it and review. |
import UIKit | ||
|
||
|
||
protocol CardsCollectionViewLayout { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the protocol to constraint different layouts for common interface.
|
||
protocol CardsCollectionViewLayout { | ||
var itemSize: CGSize { get set } | ||
var spacing: CGPoint { get set } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use CGPoint
instead CGFloat
to add different spacing for different axis.
@filletofish @Viscmad |
Addition of Vertical Collection View Layout as separate file.