I need a dynamic height label based on text length. I have set lines = 0, and Line break = word wrap.
But its not working
Is there any setting that I've missed? Seems like the default behavior is not wrapping, but i have changed it to "word wrap" but the label height is still not expanding.
I did everything you did:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
self.label1.text = "adsfadsf adf adfasdf adfadf adsfadf adfafasdfa adfadf adfadff adsfadfasdf adsfadfasf"
}
And this is what I got:
That's what you should get too. If you aren't, something else is going on.