 	
 	// MARK: - Initialization
 	
-	required init(coder aDecoder: NSCoder) {
+	required public init(coder aDecoder: NSCoder) {
 		super.init(coder: aDecoder)
 		self.backgroundColor = UIColor.clearColor()
 	}
 	
-	override init(frame: CGRect) {
+	override public init(frame: CGRect) {
 		super.init(frame: frame)
 		self.backgroundColor = UIColor.clearColor()
 	}
 	
-	override func layoutSubviews() {
+	override public func layoutSubviews() {
 		super.layoutSubviews()
 		
 		update()


import UIKit

protocol SwiftHUEColorPickerDelegate {
	func valuePicked(color: UIColor, type: SwiftHUEColorPicker.PickerType)
}

class SwiftHUEColorPicker: UIView {
	
	// MARK: - Type
	
	enum PickerType: Int {
		case Color
		case Saturation
		case Brightness

	
	// MARK: - Drawing
	
	override public func drawRect(rect: CGRect) {
		super.drawRect(rect)
		
		let radius = (direction == .Horizontal ? self.frame.size.height : self.frame.size.width)
