Skip to content

Instantly share code, notes, and snippets.

View dispatchMain's full-sized avatar

Adarsh Rai dispatchMain

  • Bangalore, India
View GitHub Profile
@dispatchMain
dispatchMain / Animations.swift
Last active December 30, 2018 09:29
Declarative Animation in Swift
//: Playground - noun: a place where people can play
// This example is inspired from John Sundell's article on building declarative animation framework
// at https://www.swiftbysundell.com/posts/building-a-declarative-animation-framework-in-swift-part-1.
// I have made some modifications to be able to pass parallel and serial animations just by adding
// then in different arrays. Jump to end of file to see final syntax.
import UIKit
import PlaygroundSupport