文件名称:进阶:适用于iOS,tvOS和macOS的基于物理的动画
文件大小:3.14MB
文件格式:ZIP
更新时间:2024-02-24 08:20:06
swift ios ui animation physics
提前 适用于iOS,tvOS和macOS的动画库,该库使用基于物理的动画(包括弹簧)来增强可真实移动和响应的交互。 let view = UIView ( frame : CGRect ( x : 0 , y : 0 , width : 100 , height : 100 )) // Springs animate changes to a value let spring = Spring ( initialValue : view. center ) // The `onChange` closure will be called every time the spring updates spring. onChange = { [view] newCenter in view. center = newCenter } /// The view's center will realistically animate to the new target value. spring. target = CGPoint ( x : 300 , y : 200 ) 安装 有
【文件预览】:
Advance-master
----.gitignore(1KB)
----Package.swift(641B)
----README.md(6KB)
----.github()
--------workflows()
----Advance.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(76KB)
--------xcshareddata()
----Resources()
--------UnitTests-Info-macOS.plist(701B)
--------UnitTests-Info-iOS.plist(701B)
--------UnitTests-Info-tvOS.plist(701B)
--------Info.plist(838B)
----Sources()
--------Advance()
----build_docs.sh(207B)
----LICENSE(1KB)
----.jazzy.yaml(755B)
----Samples()
--------SampleApp-macOS()
--------SampleApp-tvOS()
--------SampleApp-iOS()
----Tests()
--------LinuxMain.swift(116B)
--------AdvanceTests()
----Advance.podspec(757B)