             make.centerY.equalTo(titleWrapper)
             make.right.equalTo(closeButton.superview!)
         }
+        
+        
+        let gradientLayer = CAGradientLayer()
+        gradientLayer.frame = self.titleWrapperBackground.bounds
+        gradientLayer.colors = [UIColor.whiteColor().CGColor, UIColor.clearColor().CGColor]
+        self.titleWrapperBackground.layer.mask = gradientLayer
     }
 
 

    let background = UIImageViewAligned()
    let titleLbl: UILabel
    let favicon: UIImageView = UIImageView()
    let closeButton: UIButton

    var titleWrapper: UIView = UIView()

        self.closeButton.setImage(UIImage(named: "stop"), forState: UIControlState.Normal)
        self.closeButton.tintColor = .blackColor()
        
        self.titleWrapperBackground.backgroundColor = UIColor.whiteColor()

        self.titleWrapper.backgroundColor = .clearColor()
        
        self.titleWrapper.addSubview(self.titleWrapperBackground)
        self.titleWrapper.addSubview(self.closeButton)
        self.titleWrapper.addSubview(self.titleLbl)
        self.titleWrapper.addSubview(self.favicon)
