         // computing the right size to use for the textView
         let maxHeight = sz.height - 100 // max overall height
         var consumedHeight = CGFloat(0)
-        consumedHeight += kTitleTop + kTitleHeight
+        consumedHeight += appearance.kTitleTop + appearance.kTitleHeight
         consumedHeight += 14
-        consumedHeight += kButtonHeight * CGFloat(buttons.count)
-        consumedHeight += kTextFieldHeight * CGFloat(inputs.count)
-        consumedHeight += kTextViewdHeight * CGFloat(input.count)
+        consumedHeight += appearance.kButtonHeight * CGFloat(buttons.count)
+        consumedHeight += appearance.kTextFieldHeight * CGFloat(inputs.count)
+        consumedHeight += appearance.kTextViewdHeight * CGFloat(input.count)
         let maxViewTextHeight = maxHeight - consumedHeight
-        let viewTextWidth = kWindowWidth - 24
-        var viewTextHeight = kTextHeight
+        let viewTextWidth = appearance.kWindowWidth - 24
+        var viewTextHeight = appearance.kTextHeight
         
         // Check if there is a custom subview and add it over the textview
         if let customSubview = customSubview {

            // Adjust text view size, if necessary
            let str = subTitle as NSString
            let attr = [NSFontAttributeName:viewText.font ?? UIFont()]
            let sz = CGSize(width: kWindowWidth - 24, height:90)
            let r = str.boundingRectWithSize(sz, options: NSStringDrawingOptions.UsesLineFragmentOrigin, attributes:attr, context:nil)
            let ht = ceil(r.size.height)
            if ht < kTextHeight {
                kWindowHeight -= (kTextHeight - ht)
                kTextHeight = ht
            }
        }
        


// The Main Class
public class SCLAlertView: UIViewController {
    
    public struct SCLAppearance {
        let kDefaultShadowOpacity: CGFloat = 0.7
        let kCircleTopPosition: CGFloat = -12.0
        let kCircleBackgroundTopPosition: CGFloat = -15.0
        let kCircleHeight: CGFloat = 56.0
        let kCircleIconHeight: CGFloat = 20.0
        let kTitleTop:CGFloat = 30.0
        let kTitleHeight:CGFloat = 25.0
        let kWindowWidth: CGFloat = 240.0
        var kWindowHeight: CGFloat = 178.0
        var kTextHeight: CGFloat = 90.0
        let kTextFieldHeight: CGFloat = 45.0
        let kTextViewdHeight: CGFloat = 80.0
        let kButtonHeight: CGFloat = 45.0
        let kDefaultFont = "HelveticaNeue"
        let kButtonFont = "HelveticaNeue-Bold"
        
        mutating func setkWindowHeight(kWindowHeight:CGFloat) {
            self.kWindowHeight = kWindowHeight
        }
        
        mutating func setkTextHeight(kTextHeight:CGFloat) {
            self.kTextHeight = kTextHeight
        }
    }
    
    var appearance: SCLAppearance
    
    // UI Colour
    var viewColor = UIColor()
