UITextView

UITextView.playground is an starting point to experiment with UITextView in an interactive playground:

UIView

import UIKit
import PlaygroundSupport

class TextViewController : UIViewController {

    override func loadView() {

        let textView = UITextView()
        textView.text = "Hello World!\nHello Playground!"

        self.view = textView
    }
    
}

PlaygroundPage.current.liveView = TextViewController()
iOS Training Schulung Workshop
Nächste iOS-Schulung:
24. – 28. Juni 2019
Frankfurt am Main
iOS Buch
iOS 12-Apps entwickeln mit Swift & Xcode 10