Simple animation library that allows you to easily animate things.
This framework is heavily inspired by Spruce. The reason I made this is because I needed a framework to do animations without having to put them in a container view first.
The framework attempts to be compatible with latest version of Swift. Please check the Swift version matrix to see which version supports your Swift version. The last verified version of Swift is 5.3 but it may still compile on later versions. The lowest version of iOS supported is 10.
Below is a table that shows which version of DizzyKit you should use for your Swift version.
Swift | DizzyKit |
---|---|
5.X | 3.X |
4.X | 2.X |
3.X | 1.X |
Use the following entry in your Podfile:
pod 'DizzyKit', '~> 3.0'
Then run pod install
.
Add the following to your Cartfile:
github "bjarkehs/DizzyKit" ~> 3.0
Then run carthage update
.
To install DizzyKit without Xcode UI, add the following to your Package.swift
:
.package(url: "https://github.com/bjarkehs/DizzyKit.git", .upToNextMajor(from: "3.0.0"))
let animations: [AnimationType] = [.fadeIn, .slide(.up, .moderately)]
view.dizzy.prepare(with: animations)
view.dizzy.animate(animations)