Show another button next to the text of the end of the line Swift

I want to show more buttons at the end of the text or below if there is not enough space. I don’t understand how Apple developers did it? Answer quickly. After clicking on the more button, I want to show all the text. change the button to a smaller one.

Thanks in advance.

enter image description here

+4
source share
3 answers

Here's a great CocoaPod for the functionality you're looking for.

https://github.com/ilyapuchka/ReadMoreTextView

This will allow you to set the maximum number of lines and adjust the text to be added to the end of the cropped text. You can change the font and color, as it is NSAttributedString.

+2

4-5 TabBar, , ( ), tabar TabBar.

0

, , 5 View Controllers .

5 View, 5 View, 5- , .

View , , -

- > In- > Tab Bar Controller

, -

enter image description here

" " " ".

enter image description here

- -

enter image description here

. , . , -

enter image description here

-

enter image description here

7 5 3, 4, 5, 6 7 . , "". View Controller, .

enter image description here

-

enter image description here

When we click on the "Advanced" tab, we see this -

enter image description here

Basically, after the 5th view controller, everything went under the last tab, but not in the form of tabs.

Select each view controller in the list and it will take you to the associated view controller that was made earlier.

If you want to see the entire view controller, click "Edit" at the top and you will see something like: enter image description here

Hope you asked and that helps.

-3
source

Source: https://habr.com/ru/post/1660651/


All Articles