Hi I'm trying to use AutoLayout
, StackView
I have 3 UILabels
in StackView.
I want to implement that when UILabel
has no Strings then set UILable
height to zero. But It is not working.
I understood about contents hugging So I also try to set priority but It seems not working
Anyone knows about that?
Update
I solve this problem. It was really simple.
if cell.descriptionLabel.text!.isEmpty == true {
cell.descriptionLabel.isHidden = true
}
That's it!!
I hope you guys solve similar problem.