You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a little confused on how to handle the layout of a UILabel that may contain 1 or 2 lines. I would like to preserve the origin and width, however just extend the height. Basically, I want to use sizeToFit(), but only apply it to the height
The text was updated successfully, but these errors were encountered:
Hi @Sully73,
You simply need to do something like:
myLabel.pin.sizeToFit(.width)
In the documentation related to sizeToFit(.width): "If properties related to the width have been pinned (e.g: width, left & right, margins, ...), the reference width will be determined by these properties, if not the current view's width will be used."
See here for more details about sizeToFit: https://github.com/mirego/PinLayout#sizetofit
I'm a little confused on how to handle the layout of a UILabel that may contain 1 or 2 lines. I would like to preserve the origin and width, however just extend the height. Basically, I want to use sizeToFit(), but only apply it to the height
The text was updated successfully, but these errors were encountered: