Instance Method

setPreviewState(_:)

Sets the preview state.

Declaration

func setPreviewState(_ inState: Bool)

Parameters

inState

A state (true or false) that represents whether a preview is visible.

Discussion

Use this method to show and hide the preview programmatically.