> 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.
