How to show only second line of the UIText?

Hi there!

I have following code:

func myTextView() {

        exTextView.textContainerInset = UIEdgeInsets(top: 8, left: 0, bottom: 8, right: 0)

        exTextView.textContainer.lineFragmentPadding = 5

        exTextView.textContainer.maximumNumberOfLines = 2

        exTextView.textContainer.lineBreakMode = .byTruncatingTail

    }

So this function gives me the possibility to have 2 lines when I add for example address. But when I add the address:

WA 98103, 4416 Sunnyside Ave N, Seattle

it appears as following:

WA 98103,
WA 98103, 4416 Sunnyside Ave N, Seattle

I guess the problem comes out due to maximumNumberOfLines, but the problem is that I need it. Any idea how to implement that it shows the postal code only once? Or can I set it somehow that it gets the second line directly?

And btw, if I set it maximumNumberOfLines = 1, then the result is only postal code.

How to show only second line of the UIText?
 
 
Q