Instance Method

setMagnification(_:centeredAt:)

Scales the page content by a specified factor and centers the result on a specified point.

Declaration

func setMagnification(_ magnification: CGFloat, centeredAt point: CGPoint)

Parameters

magnification

The factor by which to scale the content.

point

The point (in view space) to center magnification on.

See Also

Scaling Content

var allowsMagnification: Bool

A Boolean value indicating whether magnify gestures will change the web view’s magnification.

var magnification: CGFloat

The factor by which the page content is currently scaled.