      */
     public func showToast(_ toastView: UIView!,
                           duration: TimeInterval!,
-                          position: ASToastPosition) {
+                          position: ToastPosition) {
         createAndShowToast(toastView,
                            duration: duration,
                            position: position)

        if messageLabel != nil {
            messageWidth = messageLabel.bounds.size.width
            messageHeight = messageLabel.bounds.size.height
            messageLeft = imageLeft + imageWidth + Constants.ASToastHorizontalPadding
            messageTop = titleTop + titleHeight + Constants.ASToastVerticalPadding
        } else {
            messageWidth = 0.0
            messageHeight = 0.0

      - parameter toastView: Toast view
     */
    fileprivate func hideToast(_ toastView: UIView!) {
        UIView.animate(withDuration: Constants.ToastFadeDuration, delay: 0.0, options: [UIViewAnimationOptions.curveEaseIn, UIViewAnimationOptions.beginFromCurrentState], animations: { () -> Void in
            toastView.alpha = 0.0
        }) { (_) -> Void in
            toastView.removeFromSuperview()
