material-motion-swift icon indicating copy to clipboard operation
material-motion-swift copied to clipboard

Build a reactive property inspector UI

Open jverkoey opened this issue 8 years ago • 1 comments
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)

jverkoey avatar Mar 23 '17 21:03 jverkoey

Related to https://github.com/material-motion/material-motion-swift/issues/88.

jverkoey avatar Apr 11 '17 18:04 jverkoey