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

    }

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

     
     - parameter animated: If dismiss with animation.
     */
    public func dismissAnimated(animated: Bool) {
        invalidDismissTimer()
        activityIndicatorView.stopAnimating()

        let superViewWidth = (superview?.frame)!.width

        if !animated {
            dismissBlock?(self)
            self.removeFromSuperview()
            return
        }
