Shuffle:by受Tinder启发的多向刷卡库

时间:2021-04-30 13:25:45
【文件属性】:
文件名称:Shuffle:by受Tinder启发的多向刷卡库
文件大小:13.47MB
文件格式:ZIP
更新时间:2021-04-30 13:25:45
cards swipe tinder tinder-ui swipe-cards 用 :red_heart: 通过 特征 :light_bulb: 基于速度和卡片位置的高级滑动识别 :light_bulb: 手动和程序操作 :light_bulb: 平滑的卡片叠加视图过渡 :light_bulb: 流畅且可自定义的动画 :light_bulb: 使用数据源模式动态加载卡 例子 要运行示例项目,请克隆存储库并运行ShuffleExample目标。 基本用法 通过子类化SwipeCard或直接设置其属性来创建自己的卡: func card ( fromImage image : UIImage) -> SwipeCard { let card = SwipeCard () card. swipeDirections = [. left , . right ] card. content = UIImageView ( image : image) let leftOverlay = UIView () leftOverlay. backgroundColor = .

网友评论