contains(_:)
Returns a Boolean value that indicates whether a point lies inside the parent’s coordinate system.
Declaration
@MainActor func contains(_ p: CGPoint) -> Boolfunc contains(_ p: CGPoint) -> BoolParameters
- p:
A
CGPointto test against.
Return Value
true if the point lies inside the parent’s coordinate system; otherwise false.