material-motion-swift
material-motion-swift copied to clipboard
Build a reactive property inspector UI
trafficstars
Building upon the same algorithm that generates our graphviz representation, we can enumerate every reactive property that is connected to the runtime and generate a UI for tweaking these properties in real time.
The applications of this expand beyond motion, even.
For example, to make cornerRadius tweakable:
let cornerRadius = createProperty(withInitialValue: 5)
runtime.connect(cornerRadius, to: runtime.get(view.layer).cornerRadius)
Related to https://github.com/material-motion/material-motion-swift/issues/88.