Contents

offset(x:y:)

Offsets the view by the specified horizontal and vertical distances.

Declaration

func offset(x: CGFloat = 0, y: CGFloat = 0) -> some VisualEffect

Parameters

  • x:

    The horizontal distance to offset the view.

  • y:

    The vertical distance to offset the view.

Return Value

An effect that offsets the view by x and y.

See Also

Translating