Swiftpack.co -  APUtils/AnimatableStackView as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
APUtils/AnimatableStackView
UIStackView based class that allows to animate its views
.package(url: "https://github.com/APUtils/AnimatableStackView.git", from: "4.0.5")

AnimatableStackView

Carthage compatible Version License Platform CI Status

UIStackView based class that allows to animate its changes. Curently supports vertical animations only.

Example

Clone the repo and then open Carthage Project/AnimatableStackView.xcodeproj

GIF animation

Installation

Carthage

Please check official guide

Cartfile:

github "APUtils/AnimatableStackView" ~> 4.0

CocoaPods

AnimatableStackView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'AnimatableStackView', '~> 4.0'

Usage

Just call .configure(viewModels:) method with new view models and then perform layout inside animation block:

UIView.animate(withDuration: 2) {
    self.stackView.configure(viewModels: self.vms1)
    self.view.layoutIfNeeded()
}

See example and test projects for more details.

Contributions

Any contribution is more than welcome! You can contribute through pull requests and issues on GitHub.

Author

Anton Plebanovich, anton.plebanovich@gmail.com

License

AnimatableStackView is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 1
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API