Contents

init(items:subject:message:)

Creates an instance that presents the share interface.

Declaration

nonisolated init(items: Data, subject: Text? = nil, message: Text? = nil)

Parameters

  • 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.

Discussion

Use this initializer when you want the system-standard appearance for ShareLink.

See Also

Sharing items