Let say I have MainView(red) has a subview which is UITextView and UIView(green), I want all subviews width same as superview. I add some constraints add it works EXCEPT the UIView(green). this is how I do it, please see below..
By default MainView has a 320 width..
But when I try to change the width of the MainView to 500, UIView(green) won't follow the constraints, unlike the uitextview.
when I click the warning (yellow arrow)
this shows the warning constraints of the UIView(subview) only, but how come no warning for UITextView is there any constrains or settings that I missed on that view?
Edit: Constrains of UIView (green)