ADPuzzleAnimation
Whats inside
Custom animation for UIView inspired by Fabric - Answers animation.
Easy to use
To create your first animation you need to know only about one method:
init(viewToAnimate: UIView, configuration: PuzzleAnimationConfiguration = PuzzleAnimationConfiguration())
It's flixible - you can configure almost any parameter for the animation:
struct PuzzleAnimationConfiguration {
var animationVelocity: NSTimeInterval = 1
var pieceAnimationDelay: PuzzleAnimationDelay = defaultForwardPieceAnimationDelay
var pieceGroupAnimationDelay: PuzzleAnimationDelay = defaultForwardPieceGroupAnimationDelay
var animationScale: Double = 2.5
var pieceSide: CGFloat = 40
}
Handle callbacks about status to start new animation or do something else:
public var animationCompletion: PuzzleAnimationCompletion?
Intuitive and simple interface:
public func start()
public func stop()
For the complete example check the viewController.swift
Easy to install
CocoaPods
To integrate ADPuzzleAnimation into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'PuzzleAnimation', '~> 1.1.1'
Carthage
To integrate ADPuzzleAnimation into your Xcode project using Carthage, specify it in your Cartfile
:
github "Antondomashnev/ADPuzzleAnimation" ~> 1.1.1
Run carthage update
to build the framework and drag the built ADPuzzleAnimation.framework
into your Xcode project.