title: Inequality constraints programmatically swift
body: <p>So I have completely coded the whole settings vc for my app using code (no storyboards) and I was wondering how do you make the constraints that you created inequality ones? Meaning that if the app is run on a iPhone 7 plus then the constraints would be as I coded them to be, however when you run the app on a iPhone se everything is on top of each other and not the right proportion. I only know how to do this in storyboards with using inequalities but how do you implement that in code? This is the first time that I am not using storyboards at all, so I am a little new.</p>
  
  <p>Thank you in advance!</p>
  
  <p>some code of what the constraints looks like:</p>
  
  <pre><code>func setupProfileImageView() {
      //need x, y, width, height constraints
      profileImageView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true
      profileImageView.topAnchor.constraint(equalTo: view.topAnchor, constant: 120).isActive = true
      profileImageView.widthAnchor.constraint(equalToConstant: 160).isActive = true
      profileImageView.heightAnchor.constraint(equalToConstant: 160).isActive = true
  
  }
  </code></pre>