> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dojah.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Swift SDK for iOS Verification

> Native iOS verification with Dojah. Add KYC and fraud checks to your app with the Swift SDK and keep full UI control.

<Warning> All file links (e.g. selfie URLs, document URLs) returned in the response expire within **one hour**. We strongly recommend transferring these documents and images to your own infrastructure as soon as you receive them. If a link expires before you are able to download the file, call the [Fetch KYC widget Verification Data](/docs/technical-reference/get-verification-details) endpoint to generate a new link — which will also expire in one hour. </Warning>

Package : [dojah\_kyc\_sdk\_swift](https://github.com/dojah-inc/sdk-swift)

Example Application: [https://github.com/dojah-inc/sdk-swift](https://github.com/dojah-inc/sdk-swift)

### Installation

Using SPM add `https://github.com/dojah-inc/sdk-swift.git` as a dependency and set the `Dependency Rule` to the `main` branch.

Add the following keys to your Info.plist file:

* `NSCameraUsageDescription` - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.

* `NSMicrophoneUsageDescription` - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.

* `NSLocationWhenInUseUsageDescription` - describe why your app needs access to the location, if you intend to verify address/location. This is called Privacy - Location Usage Description in the visual editor.

### Usage

```swift theme={null}
DojahWidgetSDK.initialize(
    widgetID: {Required: Your_WidgetID},
    referenceID: {Optional: Reference_ID},
    emailAddress: {Optional: Email_Address},
    navController: {Required: UINavigationController Instance}
)
```

### SDK Parameters

* `WidgetID` - a `REQUIRED` parameter. You get this ID when you sign up on the Dojah platform
* `Reference ID` - an `OPTIONAL` parameter that allows you to initialize the SDK for an ongoing verification.
* `Email Address` - an `OPTIONAL` parameter that allows you to initialize the SDK for an ongoing verification.
* `navController` - a `REQUIRED` parameter. An instance of `UINavigationController` from which the SDK is presented.

### Contributing

* [KYC WIDGET Repository](https://github.com/dojah-inc/sdk-swift)
* Fork it!
* Create your feature branch: `git checkout -b feature/feature-name`
* Commit your changes: `git commit -am 'Some commit message'`
* Push to the branch: `git push origin feature/feature-name`
* Submit a pull request 😉😉
