Skip to main content
BETA
HomeIntegration BuilderAPI ReferenceGuides
View Mirror World on Github
Join the Discord server

Language:

iOS (Swift) Integration Guide

This guide will walk you through the setup process for the Mirror World Smart SDK on iOS (Swift).

1. Create a Developer Account

Create a developer account on the Developer dashboard. Create project and create an API Key. If you already have an API Key, you may skip this step and proceed to the next step.

2. Add the Mirror World SDK dependency CocoaPods

MirrorWorldSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

Podfile
Copy

_7
source 'https://github.com/CocoaPods/Specs.git'
_7
platform :ios, '10.0'
_7
use_frameworks!
_7
_7
target '<Your Target Name>' do
_7
pod 'MirrorWorldSDK'
_7
end

3. Install MirrorWorldSDK using CocoaPods

Run the following command to install the SDK on your project:


_1
pod install

4. Configuring URLScheme in info.plist

The Mirror World iOS SDK uses a custom SDK to pass information into the SDK client. In order to enable this functionality, you need to configure UrlScheme(mwsdk) in your project.

Set UrlScheme in the info.plist file of your project: mwsdk like this:

info.plist

5. Usage

Import and initialize the Mirror World SDK in the AppDelegate.

Podfile
AppDelegate.swift
Copy

_14
import MirrorWorldSDK
_14
_14
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
_14
_14
MWSDK.initSDK(env: .StagingDevNet, apiKey: "YOUR_SECRET_API_KEY")
_14
// ---------
_14
return true
_14
}
_14
_14
func application(_ application: UIApplication, handleOpen url: URL) -> Bool {
_14
_14
MirrorWorldSDK.share.handleOpen(url: url)
_14
return true
_14
}

Going Further

Great! At this point you're pretty much ready to start doing building with the iOS SDK for Mirror World. There are a few things you can do to proceed from here:

Getting Support

If you're stuck or just looking for support, you may also schedule a support call with our team.

iOS (Swift) Integration Guide

This guide will walk you through the setup process for the Mirror World Smart SDK on iOS (Swift).

1. Create a Developer Account

Create a developer account on the Developer dashboard. Create project and create an API Key. If you already have an API Key, you may skip this step and proceed to the next step.

2. Add the Mirror World SDK dependency CocoaPods

MirrorWorldSDK is available through CocoaPods. To install it, simply add the following line to your Podfile:

3. Install MirrorWorldSDK using CocoaPods

Run the following command to install the SDK on your project:


_1
pod install

4. Configuring URLScheme in info.plist

The Mirror World iOS SDK uses a custom SDK to pass information into the SDK client. In order to enable this functionality, you need to configure UrlScheme(mwsdk) in your project.

Set UrlScheme in the info.plist file of your project: mwsdk like this:

info.plist

5. Usage

Import and initialize the Mirror World SDK in the AppDelegate.

Going Further

Great! At this point you're pretty much ready to start doing building with the iOS SDK for Mirror World. There are a few things you can do to proceed from here:

Getting Support

If you're stuck or just looking for support, you may also schedule a support call with our team.

Podfile
CopyExpandClose

_7
source 'https://github.com/CocoaPods/Specs.git'
_7
platform :ios, '10.0'
_7
use_frameworks!
_7
_7
target '<Your Target Name>' do
_7
pod 'MirrorWorldSDK'
_7
end

Edit this page on GitHub

Copyright © Mirror World, Inc. 2023

Home

Tutorials

Guides

API Reference