Swift: Simple Animation?

I have a button and a textview on my VC.
The textview is automatically hidden.

textview.hidden = true

If i press the button, the textview shows up.

 @IBAction func ButtonIsPressed(sender: AnyObject) {

    textview.hidden = false

}

Is there a way to add a simple “fade” animation to the textview?

I mean if i press the button, the textview should fade in.

I heard about facebooks pop Framework, but isn’t there a much easier way?


Source: ios

Leave a Reply