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

https://github.com/maxvol/coreanimationdsl

Swift DSL for CoreAnimation
https://github.com/maxvol/coreanimationdsl

coreanimation dsl ios swift

Last synced: 12 months ago
JSON representation

Swift DSL for CoreAnimation

Awesome Lists containing this project

README

          

# CoreAnimationDSL
Swift DSL for CoreAnimation

Allows hierarchically structured declarations:
```
let line = UIBezierPath().apply {
$0.move(to: lowerRightCorner)
$0.addLine(to: upperLeftCorner)
$0.addLine(to: lowerLeftCorner)
$0.addLine(to: center)
}

let shape = CAShapeLayer().apply {
$0.backgroundColor = UIColor.orange.cgColor
}

let animation = CAAnimation().apply {
$0.autoreverses = true
}
```