Instance Method

contains(_:)

Returns a Boolean value that indicates whether a particular point is contained in the region.

Declaration

func contains(_ point: CGPoint) -> Bool

Parameters

point

A point.

Return Value

true if the point is contained in the region; otherwise, false.

See Also

Interacting with a Region

var path: CGPath?

Returns a Core Graphics path that defines the region.