I have a sublayer on a layer-backed view. The sublayer\'s contents are set to an Image Ref and is a 25x25 rect. I perform a hit test on the super layer when the touchesBega
/// Add frame.origin.y
public override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { let convertPoint = CGPoint(x:point.x, y:(point.y + frame.origin.y)) let superPiont = self.layer.convert(convertPoint, to:layer.superlayer) selectlayer = layer.superlayer?.hitTest(superPiont) }