Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/cwimberger/WatchKitAssetPlayground

A swift playground for creating awesome animations for your WatchKit Apps.
https://github.com/cwimberger/WatchKitAssetPlayground

Last synced: 2 months ago
JSON representation

A swift playground for creating awesome animations for your WatchKit Apps.

Lists

README

        

# WatchKitAssetPlayground
A swift playground for creating awesome animations for your WatchKit Apps.

![Playground](/readme-assets/playground.png?raw=true "Playground")

Examples:

![Apple Activity Indicator Animation](/readme-assets/apple.gif?raw=true "Apple Activity Indicator Animation")
![Twitter Activity Indicator Animation](/readme-assets/twitter.gif?raw=true "Twitter Activity Indicator Animation")

These little animations can be implemented in a functional way:

```swift
let dots = 3
let duration = 2.0
let color = UIColor.blackColor()
let circleSize = interpolate(duration: duration, curve: easeInOutQuad, values: 0.0, 20.0)
let c = circle(size: circleSize, color: color)
let circleAlpha = interpolate(duration: duration, curve: easeInOutQuad, values: 1.0, 0.0)
let ac = alpha(value: circleAlpha, animation: c)

var circles: [AnimationBlock] = []
for i in 0..