(Swift) UITextView not displaying text
<p>I'm making a text-based iOS game which uses a single view consisting of a UITextView (scrollable, not editable) and a UITextField. I've made it so when I press return while editing the textField, the keyboard closes and the text of the textField is added to the textView. However, the text of the UITextView doesn't appear at all. The background color still appears, but nothing else, no matter how I try to display it. I've already tried setting the font size and color.</p>

<p>Here's code from the ViewController that handles both UI components.</p>

<pre><code>import UIKit

class ViewController: UIViewController, UITextFieldDelegate, UITextViewDelegate {
    // outlets / actions
    @IBOutlet weak var outputView: UITextView!
    @IBOutlet weak var inputField: UITextField!
    var uni: Universe? // a custom class that contains the game's data

    override func viewDidLoad() {
        //outputView.addObserver(self, forKeyPath: "contentSize", options: NSKeyValueObservingOptions.New, context: nil)
        inputField.delegate = self
        outputView.delegate = self
        inputField.text = "press return for help"
        outputView.text = ""
        outputView.textColor = UIColor.greenColor()
        outputView.frame = self.view.frame
        // The next 3 lines make a new Universe object.
        uni = Assembler.build(outputView)
        uni!.setUni()
        uni!.setParser()
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        uni!.player.viewLocation()
    }

    // delegate method; this should do 3 things:
    // 1. remove the keyboard
    // 2. call uni.parser.read(text)
    // 3. remove the text in the field

    func textFieldShouldReturn(textField: UITextField) -&gt; Bool {
        textField.resignFirstResponder()
        outputView.text! += textField.text! + "\n"
        uni!.parser!.read(textField.text!) // This function interprets the text from textField and prints something appropriate in the textView.
        textField.text = ""
        return true
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // The rest of the code makes the whole frame shift up/down when the keyboard appears/disappears to keep the UITextField visible.
}
</code></pre>

<p>Any help at all would be greatly appreciated. The similar questions on this site haven't given me anything to go on.</p>