Contents

byUnion(with:)

Returns a new region created by combining the contents of this region with another region.

Declaration

func byUnion(with region: SKRegion) -> Self

Parameters

  • region:

    The region to combine with the current region.

Return Value

A new region whose contents include all points that are included in either region.

See Also

Creating and Initializing Region Objects