Contents

byDifference(from:)

Returns a new region created by subtracting the contents of another region from this region.

Declaration

func byDifference(from region: SKRegion) -> Self

Parameters

  • region:

    The region to subtract.

Return Value

A new region whose contents include all points in the current region that are not also included in the second region.

See Also

Creating and Initializing Region Objects