Skip to content

Add support for .centerCenter when using the distribute method #11

@eonist

Description

@eonist

for now its possible to do:

let yAnchors = Constraint.distribute(vertically: views, spacing: 24, offset: .init(x: 24, y: 24))
let xAnchors = views.map { Constraint.anchor($0, to: self, align: .centerX, alignTo: .centerX) }
let anchors: [AnchorConstraint] = Array(zip(xAnchors, yAnchors.map { $0.x }))

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