Skip to content

Pr-Chen/AwsomeLayout-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

卡片布局,支持水平、垂直滚动。OC版本请点击这里

用法简单

let layout = CardLayout()
let collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)

可以设置的属性

//cell的尺寸
var itemSize: CGSize

//cell间距
var spacing: CGFloat

//缩放率
var scale: CGFloat

//边距
var edgeInset: UIEdgeInsets

//滚动方向
var scrollDirection: UICollectionViewScrollDirection

About

常见自定义CollectionView布局,完善当中...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages