constraint ( equalToConstant : 100 ) view . constraint ( equalToConstant : 100 ) // VFL let viewDictionary = [ "view" : view ] let horizontalConstraints = NSLayoutConstraint . If I set a view height constraint to 100 then another constraint to 50 , the system cannot tell which one to enforce.