-4

This is a very basic question and I am just not being able to fix it.

I am just trying to have two equal sized views on my scene. And I've set the constraints on both and having the:

  • vertical distance between them be 0
  • Both leading and trailing set at 0 with the safe areas
  • Top view align top to safe area
  • Bottom view align bottom to safe area

I have attached two screenshots below showing what I have:

enter image description here

enter image description here

I have also attempted to set them to equal heights

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
J W
  • 107
  • 1
  • 10
  • Add equal Heights constraint between these two views – RajeshKumar R Jun 15 '19 at 18:19
  • "I am just trying to have two equal sized views on my scene" Then say so. However, the first thing to do is give all your Views different labels. At the moment they are called View so you can't even read the constraints. – matt Jun 15 '19 at 18:26
  • Thank you. I tried the equal heights for the two and I am still getting the same error. – J W Jun 15 '19 at 18:29
  • @matt I got it working with PGDev's solution but I appreciate your feedback on the view labeling. I will do that in the future to make it easier to comprehend. – J W Jun 15 '19 at 18:39

1 Answers1

0

Here are the constraints you must add to both of your views.

enter image description here

PGDev
  • 23,751
  • 6
  • 34
  • 88