     func show() {
         if isShowing == false {
             isShowing = true
-            UIView.animateWithDuration(0.5,
+            UIView.animate(withDuration: 0.5,
                 delay: 0,
                 usingSpringWithDamping: 0.5,
                 initialSpringVelocity: 0.7,

private struct TextView {
    static let CornerRadius: CGFloat = 10
    static let WidthMargin: CGFloat = 10
    static let Height = UIScreen.mainScreen().bounds.size.height / 5
}

internal class ButterflyTextView : UITextView {

    func hide() {
        if isShowing == true {
            isShowing = false
            UIView.animate(withDuration: 0.5,
                delay: 0,
                usingSpringWithDamping: 0.5,
                initialSpringVelocity: 0.7,
