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
- Host: GitHub
- URL: https://github.com/maxvol/coreanimationdsl
- Owner: maxvol
- License: mit
- Created: 2019-01-31T05:41:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T11:34:10.000Z (almost 5 years ago)
- Last Synced: 2025-01-10T08:09:00.897Z (over 1 year ago)
- Topics: coreanimation, dsl, ios, swift
- Language: Swift
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
```