Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MillmanY/MMCardView
Cusom CollectionView card layout
https://github.com/MillmanY/MMCardView
Last synced: 3 months ago
JSON representation
Cusom CollectionView card layout
- Host: GitHub
- URL: https://github.com/MillmanY/MMCardView
- Owner: MillmanY
- License: mit
- Created: 2016-09-30T08:55:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T11:57:17.000Z (about 3 years ago)
- Last Synced: 2024-04-24T14:49:29.986Z (6 months ago)
- Language: Swift
- Homepage:
- Size: 17.5 MB
- Stars: 559
- Watchers: 14
- Forks: 46
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - MMCardView - Custom CollectionView like Wallet App (UI / Cards)
- awesome-ios-star - MMCardView - Custom CollectionView like Wallet App (UI / Cards)
README
# MMCardView
[![CI Status](http://img.shields.io/travis/Millman/MMCardView.svg?style=flat)](https://travis-ci.org/Millman/MMCardView)
[![Version](https://img.shields.io/cocoapods/v/MMCardView.svg?style=flat)](http://cocoapods.org/pods/MMCardView)
[![License](https://img.shields.io/cocoapods/l/MMCardView.svg?style=flat)](http://cocoapods.org/pods/MMCardView)
[![Platform](https://img.shields.io/cocoapods/p/MMCardView.svg?style=flat)](http://cocoapods.org/pods/MMCardView)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Demo
1.Card![demo](https://github.com/MillmanY/MMCardView/blob/master/demo.gif)
## 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
}
## InstallationMMCardView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
Swift 3
pod 'MMCardView'
Swift2.3
pod 'MMCardView',:git => 'https://github.com/MillmanY/MMCardView', :branch => ‘Swift2’```
## Author
Millman, [email protected]
## License
MMCardView is available under the MIT license. See the LICENSE file for more info.