I have an application which shows the from and drop location in the UI part. Since i have placed these to UILabels for showing the from and to location in the Stack View. Currently if the from or to location name is bigger it gets truncated at the end and it does not shows the name fully. The example image is shown below:
Now i wish to have the From and To location to be fully shown by showing the remaining part in next line . How to achieve this? Currently i am using the following constraints:
What constraints should i give so that the label expands according to content height wise. And also the stack View should also expand with it. Please see to this and have an idea. I shall be helpful.
Following is the attributes set for the label:
When i tried to give the number of lines as 0 it get like this: