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.
According to the readme the priority can be set with a number like
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
Priorityworks:So either the documentation is wrong or there is a bug which doesn't allow to use an Integer directly.