测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可证 | MIT |
Released最后发布 | 2017年7月 |
SwiftSwift 版本 | 3.0-GM-CANDIDATE |
SPM支持 SPM | ✗ |
由 MM 维护。
要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install
。
1. 卡片
iOS 8.0+
Xcode 8.0+
Swift 3.0+
1. 将您的 collectionView 继承自 MMCollectionView
@IBOutlet weak var cardCollection: MMCollectionView!
2. 创建您的继承自 "CardCell" 的 Cell
class CardACell: CardCell {
}
if let layout = cardCollection.collectionViewLayout as? CustomCardLayout {
layout.titleHeight = 100.0
layout.bottomShowCount = 3
layout.cardHeight = 300
layout.showStyle = .cover
}
MMCardView 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中
Swift 3
pod 'MMCardView'
Swift2.3
pod 'MMCardView',:git => 'https://github.com/MillmanY/MMCardView', :branch => ‘Swift2’
Millman, [email protected]
MMCardView 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。