【文件属性】:
文件名称:AnimatableStackView:基于UIStackView的类,可为其视图制作动画
文件大小:443KB
文件格式:ZIP
更新时间:2021-02-15 08:16:45
Swift
AnimatableStackView
基于UIStackView的类,可对其更改进行动画处理。 当前仅支持垂直动画。
例子
克隆仓库,然后打开Carthage Project/AnimatableStackView.xcodeproj
GIF动画
安装
迦太基
请检查
购物车文件:
github "APUtils/AnimatableStackView" ~> 4.0
可可豆
可通过。 要安装它,只需将以下行添加到您的Podfile中:
pod 'AnimatableStackView' , '~> 4.0'
用法
只需使用新的视图模型调用.configure(viewModels:)方法,然后在动画块内执行布局:
UIView. animate ( withDuration : 2 ) {
self . stackView . configure ( viewModel
【文件预览】:
AnimatableStackView-master
----.gitignore(853B)
----checkBuild.command(838B)
----Cartfile.private(109B)
----.travis.yml(604B)
----AnimatableStackView()
--------Assets()
--------Classes()
----Carthage Project()
--------.gitignore(12B)
--------Example()
--------AnimatableStackView()
--------Scripts()
--------AnimatableStackView.xcodeproj()
--------Carthage(11B)
--------Tests()
----LICENSE(1KB)
----CHANGELOG.md(2KB)
----README.md(2KB)
----Cartfile.resolved(188B)
----Cartfile(0B)
----AnimatableStackView.podspec(2KB)
----Pods Project()
--------AnimatableStackView.xcworkspace()
--------AnimatableStackView()
--------Scripts()
--------AnimatableStackView.xcodeproj()
--------Podfile.lock(308B)
--------Podfile(509B)
----DEPLOY PROCESS.md(269B)
----Gifs()
--------1.gif(379KB)
----.cocoadocs.yml(432B)
----podCheck.command(123B)
----podPush.command(107B)