         scrollView.contentSize = self.size
         self._scrollView = scrollView
         self.addSubview(scrollView)
+    }
+    
+    private func _setupGradientLayer() {
+        let white: UIColor = UIColor.whiteColor()
+        let gradient: CAGradientLayer = CAGradientLayer()
+        gradient.frame.size.height = self._gradientHeight
+        gradient.colors = [white.withAlpha(0).CGColor, white.CGColor]
+        self._gradientLayer = gradient
+        self.layer.addSublayer(gradient)
+        
+        self._updateGradientLayerFrame()
+    }
+    
+    private func _updateGradientLayerFrame() {
+        self._gradientLayer.frame.bottom = self.height
+        self._gradientLayer.frame.size.width = self.width
     }
 }
 

    private func _updateScrollViewContentHeight() {
        if let lastTagView: TagView = self._tagViews.last {
            let height: CGFloat = max(lastTagView.bottom, self.height)
            self._scrollView.contentSize.height = height
        }
    }
}

        self._scrollView.size = self.size
        self._rearrangeTagViewsStartingFromIndex(0, animated: false)
        self._updateScrollViewContentHeight()
        self._updateGradientLayerFrame()
    }
}

