             if self.toolbarBG != nil {
                 return self.toolbarBG!.barStyle
             } else {
-                return UIBarStyle.Default
-            }
-        }
-    }
-    
-    private var _translucentTintColor = UIColor.clearColor()
-    @IBInspectable public var translucentTintColor : UIColor {
+                return UIBarStyle.default
+            }
+        }
+    }
+
+    fileprivate var _translucentTintColor = UIColor.clear
+    @IBInspectable open var translucentTintColor : UIColor {
         set {
             _translucentTintColor = newValue
             if (self.isItClearColor(newValue)) {

        color.getRed(&red, green: &green, blue: &blue, alpha: &alpha)
        return red == 0.0 && green == 0.0 && blue == 0.0 && alpha == 0.0
    }
    
    @objc public override var frame : CGRect {
        set {
            if self.toolbarContainerClipView == nil {
                super.frame = newValue
                return
            }
            
            var rect = newValue
            rect.origin = CGPointZero
            
            let width = CGRectGetWidth(self.toolbarContainerClipView!.frame)
            if width > CGRectGetWidth(rect) {
                rect.size.width = width
            }

            let height = CGRectGetHeight(self.toolbarContainerClipView!.frame)
            if height > CGRectGetHeight(rect) {
                rect.size.height = height
            }
            
            self.toolbarContainerClipView!.frame = rect
            
            super.frame = newValue
            self.nonExistentSubview!.frame = self.bounds
        }

import UIKit

@IBDesignable
open class ILTranslucentView: UIView {

    fileprivate var _translucent = true
    @IBInspectable open var translucent : Bool {
        set {
            _translucent = newValue
            if self.toolbarBG == nil {
                return
            }

            self.toolbarBG!.isTranslucent = newValue

            if newValue {
                self.toolbarBG!.isHidden = false
                self.toolbarBG!.barTintColor = self.ilColorBG
                self.backgroundColor = UIColor.clear
            } else {
                self.toolbarBG!.isHidden = true
                self.backgroundColor = self.ilColorBG
            }
        }
