// I get a memory leak on this code. Any ideas? (I think it is connected to the tapRecognizer)
func paletteTapped( _ tapRecognizer : UITapGestureRecognizer )
{
if tapRecognizer.state == .ended {
let touch = tapRecognizer.location( in: self )
if let color = colorForTouch(touch) {
self.delegate?.selectPaletteColor(color)
}
fadeOut()
}
}