I have a subview inside a view with constraints top,left,bottom,right,width and height. I also have IBOutlet for height constraint. I want to change height constraint programmatically so it grows and push parent views. Problem is when I change constraint's constant it pushes parent view but not expand itself. But if i do it in ui editor it works fine.
White one is subview which i want to expand
Constraints are here
Before constraints set
After constraints set with;
self.heightConst.constant = 300;