0

I am creating a vertical UIStackView inside a UIView and placing UILabel elements inside it.

enter image description here

Now, I want to change the height of Label inside the UIStackView. But the height property seems to be disabled.

enter image description here

Alternatively, I am able to set height constraint for the label and change it's value programatically. I want to know if there is a way to change the value in the XIB itself as my purpose is to set a static value and cut down on adding code for it.

Sowndharya
  • 61
  • 7

1 Answers1

0

First add UIView in UIStackView and Then Add UILabel under view. Set label's constraint. Now you can just change the UIView Frame from Size inspector, it will automatically change the label frame. enter image description here

Aadil Ali
  • 351
  • 1
  • 15