Skip to content

Priority documentation not matching reality #55

Open
@ghost

Description

According to the readme the priority can be set with a number like

view.centerXAnchor == view.superview.centerXAnchor + 20 ~ 752

but that doesn't seem to work. The compiler always complains about it with the message Cannot convert value of type 'Int' to expected argument type 'Priority'.

However, using an instance of Priority works:

view.centerXAnchor == view.superview.centerXAnchor + 20 ~ .init(752)

So either the documentation is wrong or there is a bug which doesn't allow to use an Integer directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions