---
title: "init(_:item:subject:message:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/sharelink/init(_:item:subject:message:)"
---

# init(_:item:subject:message:)

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

## Declaration

```swift
nonisolated init(_ title: Text, item: String, subject: Text? = nil, message: Text? = nil) where Data == CollectionOfOne<String>
```

## Parameters

- `title`: The title of the share action.
- `item`: The item to share.
- `subject`: A title for the item to show when sharing to activities that support a subject field.
- `message`: A description of the item to show when sharing to activities that support a message field. Activities may support attributed text or HTML strings.

## See Also

### Sharing an item

- [init(item:subject:message:)](swiftui/sharelink/init(item:subject:message:).md)
- [init(item:subject:message:label:)](swiftui/sharelink/init(item:subject:message:label:).md)
