Dynamic label in Swift, not scrolling

I am learning Swift and I want to find out how I can scroll through UILabel

I have a shortcut that fills dynamically, but the text goes under the bottom panel.

enter image description here

I tried with 0 lines, restrictions .. I would like to scroll the view to read all the text

UPDATE

After the answers I had this situation.

enter image description here

With Textview I can read all the text using scrolling. With UIScrollbar and UILabel I can not read all the text.

When do I need to use TextView instead of UIScrollBar + UiLabel?

+4
source share
2 answers

Add UILabel to UIScrollView. Set the content size according to the size of the UILabel.

scrollview, . , , , UIScrollView. UILabel .

, UITextView.

+7

UILabel UITextView. textView.editable = false.

+8

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


All Articles