Info | Value |
-------------------------|-------------------------------------|
Platform | iOS
Platform Version | 11
SnapKit Version | 4.0.0
Integration Method | cocoapods
Following the docs to create a reusable (updatable and uninstallable) constraint. I get the following error:
Cannot assign value of type 'ConstraintMakerEditable' to type 'Constraint?'
This this bit of code:
var destinationAddressViewBottom: Constraint? = nil
destinationAddressViewBottom = make.bottom
.equalTo(titleBackgroundView.snp.bottom)
.offset(-16)
Hello, I think you are forgetting the tail of the expression to get the Constraint object out of it (.constraint), such as:
var destinationAddressViewBottom: Constraint? = nil
destinationAddressViewBottom = make.bottom
.equalTo(titleBackgroundView.snp.bottom)
.offset(-16).constraint
Wow that is easy to miss!!
Most helpful comment
Hello, I think you are forgetting the tail of the expression to get the Constraint object out of it (.constraint), such as:
var destinationAddressViewBottom: Constraint? = nil destinationAddressViewBottom = make.bottom .equalTo(titleBackgroundView.snp.bottom) .offset(-16).constraint