Halfway down the page, the first use of line
superview.addConstraints(verticalConstraints)
should be in bold type as this is where it is entered
Halfway down the page, the first use of line
superview.addConstraints(verticalConstraints)
should be in bold type as this is where it is entered
Thanks for pointing this out. There is a mistake here but it is a little different. Instead of:
superview.addConstraints(verticalConstraints)
the non-bold line should be:
NSLayoutConstraint.activateConstraints(verticalConstraints)
activateConstraints( has the same effect; addConstraints(
has been noted as deprecated in the header file, but not yet in Appleās docs.