Contents

offsetBy(dx:dy:)

Returns a rectangle with an origin point that shifts by the specified amount.

Declaration

func offsetBy(dx: Double, dy: Double) -> MKMapRect

Parameters

  • dx:

    The amount (in map points) to shift the x-coordinate of the origin point.

  • dy:

    The amount (in map points) to shift the x-coordinate of the origin point.

Return Value

The offset rectangle. If the original rectangle is null, that rectangle returns instead.

See Also

Modifying the rectangle