I'm using XIB to populate tableview of a chat app (messages). It contains a view and a label on it. The label's text continuously changes. How can I find the width of label and then set width of parent view equal to that?
I'm a newbie to swift. So, in this way, is it possible to set height also?