Change textColor of a UITextView in Swift
<p>I have an <code>iOS</code> project I'm working on using <code>Xcode7</code> and <code>Swift2</code>. I have a <code>UITextView</code> that I'm trying to change the <code>textColor</code> of.  It has a black background color. </p>

<p>I looked <a href="https://stackoverflow.com/questions/7134152/change-font-color-of-uitextview">here</a> and could not find a <code>setTextColor</code>.  I also tried below in the <code>UIViewController</code> of where the <code>UITextView</code> is located with no luck:</p>

<pre><code>@IBOutlet weak var codeText: UITextView!
override func viewDidLoad() {
    super.viewDidLoad()

    self.codeText.delegate = self

    codeText.textColor = UIColor.whiteColor()
}
</code></pre>

<p>I then went into the Inspector and tried clicking on the <code>UITextView</code> and changing the <code>textColor</code> there with no luck of it changing.  Am I doing something wrong?</p>

<p>Thank you.</p>