# Installation

### Swift Package Manager

The easiest (and recommended) way to use Snapscreen is to integrate via SwiftPM.  To integrate via SwiftPM, add the location of the github repository and the version to your Package.swift file, as shown below:

```swift
dependencies: [
    .package(url: "https://github.com/snapodds/sdk-ios.git", .upToNextMajor(from: "2.0.0"))
]
```

### Direct integration of XCFramework

Snapscreen is provided as an iOS xcframework and bundles everything necessary for it to operate.&#x20;

1. Drag the Snapscreenframework.xcframework to your iOS project
2. Make sure Xcode has added the framework to your project's **Framework, Libraries and Embedded Content** section in your General Settings
3. Make sure to change the **Embed** setting to **Embed & Sign**.

## Camera Permission

The snapping functionality relies on permission to access the camera of your iOS device to function. Access to the camera requires developers to provide a description of the camera's usage in the application. To add this camera usage description, add the key **NSCameraUsageDescription** into your application's Info.plist, and describe how the camera is used for the snapping functionality.


---

# 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://docs.snapodds.com/docs/mobile-sdk/ios/snapodds-sport-media/installation.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.
