Edit 2 labels from 1 text field
<p>Good day! So here is my issue - I need to change 2 different labels from 1 text field. Tried simple if-else logic, but it didn't work in my case.</p>

<pre><code>    func labelTextChanger() {

    if fromUserName.text == nil {
        fromUserName.text = textFileld.text
    } else  {
        replyToUserName.text = textFileld.text
    }
}
</code></pre>

<p><a href="http://i.stack.imgur.com/VdgQv.png" rel="nofollow">ma case</a></p>