SLCPageFlowLayout
1、卡片
SLCPageFlowLayout *layout = [[SLCPageFlowLayout alloc] init];
2、循环卡片
SLCPageFlowLayout *layout = [[SLCPageFlowLayout alloc] init];
// 循环通过设置CollectionView的datasource和contentOffset实现
3、卡片、居中放大
SLCPageFlowLayout *layout = [[SLCPageFlowLayout alloc] init];
layout.transformBlock = ^CGAffineTransform(CGFloat apartScale) {
CGFloat scale = fabs(cos(apartScale * M_PI/4));
return CGAffineTransformMakeScale(1.0, scale);
};
4、卡片,居中放大,覆盖
SLCPageFlowLayout *layout = [[SLCPageFlowLayout alloc] init];
layout.transformBlock = ^CGAffineTransform(CGFloat apartScale) {
CGFloat scale = fabs(cos(apartScale * M_PI/4));
return CGAffineTransformMakeScale(1.2, scale);
};
参考
https://github.com/DamonHu/CollectionCircleDemo
https://blog.csdn.net/sinat_27706697/article/details/45869727