How to add constraints programmatically to a programmatically created UIView? How to add constraints programmatically to a programmatically created UIView? xcode xcode

How to add constraints programmatically to a programmatically created UIView?


For anyone who comes across this... I needed to add more than one constraint. That did the trick.