> For the complete documentation index, see [llms.txt](https://docs.snapodds.com/clipshare-sdk-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snapodds.com/clipshare-sdk-docs/mobile-sdk/ios/installation.md).

# Installation

### Swift Package Manager

The easiest (and recommended) way to use ClipShare 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. Note that you also need to add dependencies from the core SnapOdds SDK for snapping functionality. Additionally ClipShare requires you to provide image loading and optionally prefetching capabilities and we recommend SDWebImage and provide code samples in the following sections:

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

## 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/clipshare-sdk-docs/mobile-sdk/ios/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.
