TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Ngo Dac Du.
SSSheetLayout is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SSSheetLayout"
How to change size for collection view cell
func collectionView(collectionView: UICollectionView, sizeForItem indexPath: IndexPath) -> CGSize {
if indexPath.row == 0 {
return CGSize(width: 100, height: 30)
}
return CGSize(width: 50, height: 30)
}
func scrollViewDidScroll(_ scrollView: UIScrollView) {
scrollView.keepDockOffset()
}
Ngô Đắc Du, [email protected]
SSSheetLayout is available under the MIT license. See the LICENSE file for more info.