      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: CGFloat = 0.8 {
+    public var maxHeightPercentage: CGFloat = 0.8 {
         didSet {
             maxHeightPercentage = max(min(maxHeightPercentage, 1.0), 0.0)
         }

     is present, this is also used as the padding between the image and the text.
     Default is 10.0.
    */
    var horizontalPadding: CGFloat = 10.0
    
    /**
     The spacing from the vertical edge of the toast view to the content. When a title
     is present, this is also used as the padding between the title and the message.
     Default is 10.0.
    */
    var verticalPadding: CGFloat = 10.0
    
    /**
     The corner radius. Default is 10.0.
    */
    var cornerRadius: CGFloat = 10.0;
    
    /**
     The title font. Default is `UIFont.boldSystemFontOfSize(16.0)`.
    */
    var titleFont = UIFont.boldSystemFontOfSize(16.0)
    
    /**
     The message font. Default is `UIFont.systemFontOfSize(16.0)`.
    */
    var messageFont = UIFont.systemFontOfSize(16.0)
    
    /**
     The title text alignment. Default is `NSTextAlignment.Left`.
    */
    var titleAlignment = NSTextAlignment.Left
    
    /**
     The message text alignment. Default is `NSTextAlignment.Left`.
    */
    var messageAlignment = NSTextAlignment.Left
    
    /**
     The maximum number of lines for the title. The default is 0 (no limit).
    */
    var titleNumberOfLines = 0;
    
    /**
     The maximum number of lines for the message. The default is 0 (no limit).
    */
    var messageNumberOfLines = 0;
    
    /**
     Enable or disable a shadow on the toast view. Default is `false`.
    */
    var displayShadow = false;
    
    /**
     The shadow color. Default is `UIColor.blackColor()`.
     */
    var shadowColor = UIColor.blackColor()
    
    /**
     A value from 0.0 to 1.0, representing the opacity of the shadow.
     Default is 0.8 (80% opacity).
    */
    var shadowOpacity: Float = 0.8 {
        didSet {
            shadowOpacity = max(min(shadowOpacity, 1.0), 0.0)
        }

*/
public struct ToastStyle {
    
    public init() {
        // allow creating style object
    }

    /**
     The background color. Default is `UIColor.blackColor()` at 80% opacity.
    */
    public var backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.8)
    
    /**
     The title color. Default is `UIColor.whiteColor()`.
    */
    public var titleColor = UIColor.whiteColor()
    
    /**
     The message color. Default is `UIColor.whiteColor()`.
    */
    public var messageColor = UIColor.whiteColor()
    
    /**
     A percentage value from 0.0 to 1.0, representing the maximum width of the toast
     view relative to it's superview. Default is 0.8 (80% of the superview's width).
    */
    public var maxWidthPercentage: CGFloat = 0.8 {
        didSet {
            maxWidthPercentage = max(min(maxWidthPercentage, 1.0), 0.0)
        }
