Contents

content(_:)

A behavior that matches the activity to a scene using a custom string that you supply.

Declaration

static func content(_ contentIdentifier: String) -> SceneAssociationBehavior

Parameters

  • contentIdentifier:

    The string to compare against the scene’s defined activation conditions. This string has a similar purpose to the Targetcontentidentifier of an Nsuseractivity object.

Mentioned in

Return Value

A SceneAssociationBehavior type with the specified identifier.

Discussion

Use this option when you want more control over the scene-selection process for your GroupActivity object. You might use it to direct the activity to different scenes, or to direct the activity to a specific instance of a scene. For example, a drawing app might direct the activity to the specific canvas someone wants to share, and not to a new or unrelated canvas that uses the same scene type.

See Also

Getting the scene-association options