Skip to content

Passing Variables to Layouts #67

@dr2050

Description

@dr2050

I'm trying to do this type of thing

    layout(splitView, boxStatus) { split, box in
        box.height == 31
        split.height == box.superview!.height - 31
        split.bottom == box.top
    }

which works, but I'd like to parameterize this so the 31 is a variable. (I'm not even able to use box.height in the second line.)

Hints, please, or is this a limitation of the framework?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions