ScrollableAnimation:用于基于偏移量而不是时间创建 keyPath 动画的 Swift 库

时间:2021-07-03 16:57:26
【文件属性】:
文件名称:ScrollableAnimation:用于基于偏移量而不是时间创建 keyPath 动画的 Swift 库
文件大小:65KB
文件格式:ZIP
更新时间:2021-07-03 16:57:26
Swift 滚动动画 用于基于偏移量而不是时间创建 keyPath 动画的 Swift 库。 ScrollableAnimation 旨在模仿使用由 keyPath 定义的基于属性的 CAAnimation 来模拟图层动画的正常方式,主要区别在于动画时间轴的 X 轴是“偏移”而不是“时间”。 设置 只需将 ScrollableAnimation 文件夹复制到您的 iOS 8 项目; 用法 为特定上下文创建动画控制器。 let animationController = ScrollableAnimationController () 创建一个动画并将其添加到要设置动画的图层,并沿动画控制器传递。 let animatable = UIView ( frame : CGRectMake ( 0 , 0 , 100 , 100 )) animatableSuperView. addSubvi
【文件预览】:
ScrollableAnimation-master
----ScrollableAnimation()
--------Tests()
--------Source()
----LICENSE(1KB)
----ScrollableAnimationExampleTests()
--------Info.plist(753B)
--------ScrollableAnimationExampleTests.swift(743B)
----README.md(3KB)
----ScrollableAnimationExample()
--------ViewController.swift(2KB)
--------Info.plist(1KB)
--------Images.xcassets()
--------Base.lproj()
--------AppDelegate.swift(2KB)
----ScrollableAnimationExample.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(29KB)
--------xcuserdata()

网友评论