# 1.29.1 -> 1.30.0

## Breaking Changes

### Setting identity

API complete redesing

* **Old** :

  <pre class="language-swift"><code class="lang-swift"><strong>func setIdentity(completion: @escaping ResultHandler&#x3C;Void>)
  </strong></code></pre>
* **New** :

  ```swift
  func setIdentity() async -> Result<Void> 
  ```
* Changed from completion-based (Callback) to async await approach
* Returns `Result<Void>`

```swift
**Before:**
let identity = Identity(apiKey: "api-key", externalReferenceID: "user-id")

identity.setIdentity { result in
    switch result {
    case .success(let value):
        // Identity successfully set
    case .failure(let error):
        // Failure
    }
}

**After:**
let identity = Identity(apiKey: "api-key", externalReferenceID: "user-id")

let result = await identity.setIdentity()

switch result {
case .success(let value):
    // Identity successfully set
case .failure(let error):
    // Failure
}
```

### Import new framework

To be able to use the SDK, the new ImsKmpSdk needs to be imported


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sdk.ims.tech/migration-notes/ios/1.29.1-greater-than-1.30.0.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
