I have a view with three components. In the interface builder, I set all three with equal width.
In the code, I want to hide the middle component under certain conditions and then expend the rest two to take the extra space. I tried to expose the width constrain of the middle component to the code and then set the "constant" property of constrain to 0 which is not working.
Can anyone please advise if there is an easy way to achieve my goal?
Thanks