AnimatableView 6.0.2

AnimatableView 6.0.2

维护者:Anton Plebanovich



  • 作者:
  • Anton Plebanovich

AnimatableStackView

Carthage compatible Version License Platform CI Status

类似于 UIStackView,但拥有更佳动画的 AnimatableView

示例

克隆存储库,然后打开 Carthage Project/AnimatableStackView.xcodeproj

GIF 动画

安装

CocoaPods

AnimatableStackView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:

pod 'AnimatableView', '~> 6.0'

用法

只需调用带有新视图模型的 .update(viewModels:) 方法,然后在动画块内执行布局

UIView.animate(withDuration: 2) {
    self.animatableView.update(viewModels: self.vms1)
    self.view.layoutIfNeeded()
}

有关更多详细信息,请参阅示例和测试项目。

贡献

任何贡献都受到欢迎!您可以通过 GitHub 的拉取请求和问题来进行贡献。

作者

Anton Plebanovich,[email protected]

许可

AnimatableStackView 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。