<!--
{
  "availability" : [
    "iOS: 14.5.0 -",
    "iPadOS: 14.5.0 -",
    "macCatalyst: 14.5.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIEventAttribution/init(sourceIdentifier:destinationURL:sourceDescription:purchaser:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIEventAttribution(im)initWithSourceIdentifier:destinationURL:sourceDescription:purchaser:"
  },
  "title" : "init(sourceIdentifier:destinationURL:sourceDescription:purchaser:)"
}
-->

# init(sourceIdentifier:destinationURL:sourceDescription:purchaser:)

Initializes a new event attribution object.

```
init(sourceIdentifier: UInt8, destinationURL: URL, sourceDescription: String, purchaser: String)
```

## Parameters

`sourceIdentifier`

An 8-bit number that identifies the source of the click for attribution. Value must be between `0` and `255`.

`destinationURL`

The destination URL of the attribution.

`sourceDescription`

A description of the source of the attribution.

`purchaser`

A string that describes the entity that purchased the attributed content.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)