ConstraintSet

Functions summary

ConstraintSet
@Composable
ConstraintSet(
    @Language(value = "json5") content: String,
    @Language(value = "json5") overrideVariables: String?
)

Parses content into a ConstraintSet and sets the variables defined in the Variables block with the values of overrideVariables.

Functions

@Composable
fun ConstraintSet(
    @Language(value = "json5") content: String,
    @Language(value = "json5") overrideVariables: String? = null
): ConstraintSet

Parses content into a ConstraintSet and sets the variables defined in the Variables block with the values of overrideVariables.

Eg:

For Variables: { margin: { from: 'initialMargin', step: 10 } }

overrideVariables = "{ 'initialMargin' = 50 }"

Will create a ConstraintSet where initialMargin is 50.