 
 extension UIImageView {
   func rotate(withAngle angle: CGFloat, animated: Bool) {
-      UIView.animate(withDuration: animated ? 0.5 : 0, animations: {
+    if animated {
+      UIView.animate(withDuration: 0.5, animations: {
         self.transform = CGAffineTransform(rotationAngle: angle)
       })
-  }
-}
+    } else {
+      self.transform = CGAffineTransform(rotationAngle: angle)
+    }
+  }
+}

    case .Default:
      cell.collapse(animated: false)
    case .Expand:
      cell.expand(withAnswer: currentItem.answer, animated: true)
      expandedCells[indexPath.section] = .Expanded
    case .Collapse:
      cell.collapse(animated: true)
      expandedCells[indexPath.section] = .Default
    case .Expanded:
      cell.expand(withAnswer: currentItem.answer, animated: false)
    }
  }

}

extension FAQView: UITableViewDelegate, UITableViewDataSource {

  func update(arrow: Arrow, animated: Bool) {
    switch arrow {
    case .Up:
      self.indicatorImageView.rotate(withAngle: CGFloat(M_PI), animated: animated)
    case .Down:
      self.indicatorImageView.rotate(withAngle: CGFloat(0), animated: animated)
    }
  }
}
