Cusom CollectionView card layout
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example Remove banner Jul 13, 2017
MMCardView Remove banner Jul 13, 2017
.gitignore Initial commit Sep 20, 2016
.swift-version Fix Error Sep 30, 2016
.travis.yml Initial commit Sep 20, 2016
LICENSE Initial commit Sep 20, 2016
MMCardView.podspec Remove banner Jul 13, 2017
README.md Update README.md Jul 13, 2017
_Pods.xcodeproj Initial commit Sep 20, 2016
demo.gif Demo gif Sep 30, 2016

README.md

MMCardView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo

1.Card

demo

Requirements

iOS 8.0+
Xcode 8.0+
Swift 3.0+

Use Card

1.Inherit your collectionView to MMCollectionView

@IBOutlet weak var cardCollection: MMCollectionView!

2.Create your Cell inherit "CardCell"

class CardACell: CardCell {

}

if let layout = cardCollection.collectionViewLayout as? CustomCardLayout {
     layout.titleHeight = 100.0
     layout.bottomShowCount = 3
     layout.cardHeight = 300
     layout.showStyle = .cover
}

Installation

MMCardView is available through CocoaPods. To install it, simply add the following line to your Podfile:

Swift 3
pod 'MMCardView'
Swift2.3
pod 'MMCardView',:git => 'https://github.com/MillmanY/MMCardView', :branch => ‘Swift2

Author

Millman, millmanyang@gmail.com

License

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