Contents

setZoomScale(_:animated:)

A floating-point value that specifies the current zoom scale.

Declaration

func setZoomScale(_ scale: CGFloat, animated: Bool)

Parameters

  • scale:

    The new value to scale the content to.

  • animated:

    True to animate the transition to the new scale, False to make the transition immediate.

Discussion

The new scale value should be between the minimumZoomScale and the maximumZoomScale.

See Also

Zooming and panning