Swift - Split string over multiple lines

前端 未结 15 2029
清酒与你
清酒与你 2020-12-04 07:51

How could I split a string over multiple lines such as below?

var text:String = \"This is some text
                   over multiple lines\"
15条回答
  •  旧巷少年郎
    2020-12-04 08:43

    I tried several ways but found an even better solution: Just use a "Text View" element. It's text shows up multiple lines automatically! Found here: UITextField multiple lines

提交回复
热议问题