      */
     private func showWithAnimation() {
         var animationBlock: (() -> Void)? = nil
-        let superViewWidth = (superview?.frame)!.width
+        let superViewWidth = CGRectGetWidth((superview?.frame)!)
 
         switch animationType {
         case .FadeInFadeOut:

    }

    /// Icon image content 
    public dynamic var iconContentMode: UIViewContentMode = .center {
        didSet {
            iconImageView.contentMode = iconContentMode
        }

            bottomMarginConstraint?.constant = -bottomMargin
            self.layoutIfNeeded()
        case .SlideFromTopBackToTop, .SlideFromTopToBottom:
            bottomMarginConstraint?.active = false
            topMarginConstraint?.active = true
            topMarginConstraint?.constant = -height
            self.layoutIfNeeded()
        }
