Contents

init(_:items:subject:message:)

Creates an instance, with a custom label, that presents the share interface.

Declaration

@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, items: Data, subject: Text? = nil, message: Text? = nil)

Parameters

  • titleResource:

    A resource for the title of the share action.

  • items:

    The items to share.

  • subject:

    A title for the items to show when sharing to activities that support a subject field.

  • message:

    A description of the items to show when sharing to activities that support a message field. Activities may support attributed text or HTML strings.

See Also

Sharing items