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: 3 months ago
JSON representation
A swift playground for creating awesome animations for your WatchKit Apps.
- Host: GitHub
- URL: https://github.com/cwimberger/WatchKitAssetPlayground
- Owner: cwimberger
- License: mit
- Created: 2015-05-11T16:20:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-11T17:53:48.000Z (over 9 years ago)
- Last Synced: 2024-04-27T23:33:48.093Z (6 months ago)
- Language: Swift
- Size: 1.01 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Swift-Playgrounds - WatchKit Asset Playground - A swift playground for creating awesome animations for your WatchKit Apps. ⏳ (UIKit And Graphics / Machine Learning)
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..