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

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

Creates an instance that presents the share interface.

## Declaration

```swift
nonisolated init(item: String, subject: Text? = nil, message: Text? = nil, @ContentBuilder label: () -> Label) where Data == CollectionOfOne<String>
```

## Parameters

- `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.
- `label`: A content builder that produces a label that describes the share action.

## See Also

### Sharing an item

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