ShapeWithBoundingRect
public protocol ShapeWithBoundingRect : Shape
Enhancement to Shape protocol that allows you to simply specify a
boundingRect property and have hitTest implemented automatically.
-
Declaration
Swift
var boundingRect: CGRect { get } -
hitTest(point:Extension method) Declaration
Swift
public func hitTest(point: CGPoint) -> Bool
View on GitHub
ShapeWithBoundingRect Protocol Reference