      A percentage value from 0.0 to 1.0, representing the maximum height of the toast
      view relative to it's superview. Default is 0.8 (80% of the superview's height).
     */
-    var maxHeightPercentage = 0.8 {
+    var maxHeightPercentage: CGFloat = 0.8 {
         didSet {
             maxHeightPercentage = max(min(maxHeightPercentage, 1.0), 0.0)
         }

    /**
     The shadow radius. Default is 6.0.
    */
    var shadowRadius = 6.0
    
    /**
     The shadow offset. The default is 4 x 4.

    }
    
    func makeToast(message: String?, duration: NSTimeInterval, position: ToastPosition, title: String?, image: UIImage?, style: ToastStyle?, completion: ((didTap: Bool) -> Void)?) throws {
        var toastStyle = ToastManager.shared.style
        if let style = style {
           toastStyle = style
        }
        
        let toast = try self.toastViewForMessage(message, title: title, image: image, style: toastStyle)
        self.showToast(toast, duration: duration, position: position, completion: completion)
    }
    
    func makeToast(message: String?, duration: NSTimeInterval, position: CGPoint, title: String?, image: UIImage?, style: ToastStyle?, completion: ((didTap: Bool) -> Void)?) throws {
        var toastStyle = ToastManager.shared.style
        if let style = style {
            toastStyle = style
        }
        
        let toast = try self.toastViewForMessage(message, title: title, image: image, style: toastStyle)
        self.showToast(toast, duration: duration, position: position, completion: completion)
    }
    
