MMCardView 1.1.2

MMCardView 1.1.2

测试已测试
Lang语言 SwiftSwift
许可证 MIT
Released最后发布2017年7月
SwiftSwift 版本3.0-GM-CANDIDATE
SPM支持 SPM

MM 维护。



  • Millman

示例

要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install

演示

1. 卡片

demo

要求

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 文件。