     options[kCRToastSubtitleTextShadowColorKey]         = notification.subtextShadowColor
     options[kCRToastSubtitleTextShadowOffsetKey]        = NSValue(CGSize: notification.subtextShadowOffset)
     
-    options[kCRToastNotificationTypeKey]                = notification.barType.rawValue
-    
-    options[kCRToastNotificationPreferredHeightKey]     = notification.preferredHeight
+    options[kCRToastNotificationTypeKey]                = notification.heightType.crToastType.rawValue
+    switch notification.heightType {
+    case .Custom(let preferredHeight):
+        options[kCRToastNotificationPreferredHeightKey] = preferredHeight
+    default:
+        break
+    }
+    
     options[kCRToastNotificationPreferredPaddingKey]    = notification.preferredPadding
     
     options[kCRToastNotificationPresentationTypeKey]    = notification.presentationType.rawValue

import UIKit
import CRToast

public  typealias NotificationBarType    = CRToastType
public  typealias PresentationType       = CRToastPresentationType
public  typealias AccessoryViewAlignment = CRToastAccessoryViewAlignment
public  typealias InteractionType        = CRToastInteractionType

    
    public var subtextShadowOffset: CGSize = CGSize(width: 0.0, height: 0.0)
    
    public var heightType: HeightType = .NavigationBar
    
    public var presentationType: PresentationType = .Cover
    
    public var underStatusBar = false
    
    public var statusBarStyle: UIStatusBarStyle = .Default
    
    public var preferredPadding: CGFloat = 0
    
