# SharingRequest

```swift
struct SharingRequest
```

What to share, and how to attribute it.

**Conforms to** `Swift.Equatable`, `Swift.Hashable`, `Swift.Sendable`

Defined in: [Sources/FrakSDK/Sharing/SharingRequest.swift:59](https://github.com/frak-id/wallet/blob/35995d05c807efe1e0d6319fdede3ad363124d1e/sdk/ios/Sources/FrakSDK/Sharing/SharingRequest.swift#L59)

## Initializers

### init(link:products:attribution:targetInteraction:placement:logoURL:shareTitle:shareText:shareImageURL:)

```swift
init(
    link: String? = nil,
    products: [SharingProduct] = [],
    attribution: AttributionParams? = nil,
    targetInteraction: String? = nil,
    placement: String? = nil,
    logoURL: String? = nil,
    shareTitle: String? = nil,
    shareText: String? = nil,
    shareImageURL: String? = nil
)
```

## Properties

### attribution

```swift
let attribution: AttributionParams?
```

### link

```swift
let link: String?
```

Base URL to build the link from. Falls back to the first product's link, then the
merchant's homepage.

### logoURL

```swift
let logoURL: String?
```

### placement

```swift
let placement: String?
```

Where in the app the share was offered, e.g. `product-page`.

### products

```swift
let products: [SharingProduct]
```

### shareImageURL

```swift
let shareImageURL: String?
```

### shareText

```swift
let shareText: String?
```

### shareTitle

```swift
let shareTitle: String?
```

Per-call overrides for the OS share sheet's title/body/preview image; highest precedence.

### targetInteraction

```swift
let targetInteraction: String?
```

Narrows the seeded reward to campaigns with this trigger, e.g. `purchase`.

## Operators

### !=(_:_:)

```swift
static func != (lhs: Self, rhs: Self) -> Bool
```

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values `a` and `b`, `a != b`
implies that `a == b` is `false`.

This is the default implementation of the not-equal-to operator (`!=`)
for any type that conforms to `Equatable`.

- Parameters:
  - lhs: A value to compare.
  - rhs: Another value to compare.