521xueweihan / HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
https://hellogithub.com
86.62k stars 9.46k forks source link

【开源自荐】CardCarousel - 最易用的 iOS 轮播组件 #2681

Closed YuLeiFuYun closed 1 month ago

YuLeiFuYun commented 4 months ago

// 咒语(《高级动物》风格) CardCarousel(咒语: "矛盾,自私,好色,爱喜,无聊,善良,爱喜 贪婪,真诚 善变,暗淡 无奈,埋怨", 施法材料: data, 作用域: CGRect(x: 0, y: 100, width: 393, height: 200)) .法术目标(view)

// 效果等同于 CardCarousel(frame: CGRect(x: 0, y: 100, width: 393, height: 200), data: data) .cardLayoutSize(widthDimension: .fractionalWidth(0.7), heightDimension: .fractionalHeight(0.7)) .cardTransformMode(.liner) .scrollDirection(.rightToLeft) .loopMode(.rollback) .move(to: view)



- 截图:
![罗小黑战记](https://github.com/YuLeiFuYun/CardCarousel/blob/main/Assets/%E7%BD%97%E5%B0%8F%E9%BB%91%E6%88%98%E8%AE%B0.gif?raw=true)