Add constraint error

Hello, Wondering if "addConstraintsWithFormat" is depreciated in Swift 3? Getting the following error: Use of unresolved identifier 'addConstraintsWithFormat', when writing this code: addConstraintsWithFormat("V:|[v0]|", views: nameLabel).

Replies

Think you got an answer to the question in this forum


https: // forums.developer.apple.com/thread/53416

This is relevant, but in that case I had to work around this whole method. To be more precise, I am looking for the correct way of writing it.

I can’t find addConstraintsWithFormat inside either the iOS or macOS SDKs. Where did it come from?

It’s bit hard to recommend a replacement when we don’t know what the routine does )-:

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"