Contents

setSymbolImage(_:contentTransition:options:completion:)

Sets a symbol image using the specified content-transition effect, options, and completion handler.

Declaration

@MainActor @preconcurrency func setSymbolImage(_ image: UIImage, contentTransition: some ContentTransitionSymbolEffect & SymbolEffect, options: SymbolEffectOptions = .default, completion: UISymbolEffectCompletion? = nil)

Parameters

  • image:

    The symbol image to set.

  • contentTransition:

    The content transition to use when setting the symbol image.

  • options:

    The options to use when setting the symbol image.

  • completion:

    A completion handler the system calls after setting the symbol image.

See Also

Configuring symbol effects