AnimatableView that works like a UIStackView but has better animations
Clone the repo and then open Carthage Project/AnimatableStackView.xcodeproj
AnimatableStackView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'AnimatableView', '~> 6.0'
Just call .update(viewModels:)
method with new view models and then perform layout inside animation block:
UIView.animate(withDuration: 2) {
self.animatableView.update(viewModels: self.vms1)
self.view.layoutIfNeeded()
}
See example and test projects for more details.
Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.
Anton Plebanovich, anton.plebanovich@gmail.com
AnimatableStackView is available under the MIT license. See the LICENSE file for more info.