Contents

image(for:)

Provides an image asynchronously that contains the given subjects with the background removed.

Declaration

@MainActor final func image(for subjects: Set<ImageAnalysisInteraction.Subject>) async throws -> UIImage

Parameters

  • subjects:

    An array of subjects to include in the image.

Discussion

If one or more subjects fail to produce an image, the method throws ImageAnalysisInteraction.SubjectUnavailable.imageUnavailable.

See Also

Accessing image subjects