Documentation

​
​

Development

User Acquisition

Monetization

Industry

LevelPlay SDK - iOS

Unity SDK

Android SDK

iOS SDK

Adobe AIR SDK

Flutter SDK

React Native SDK

LevelPlay SDK - iOS

Unity LevelPlay
​
​
iOS SDK
  • Get started
    • Get started with iOS
    • iOS SDK integration
    • LevelPlay SDK integration with Swift
    • Integrate Ad Quality SDK
      • Ad Quality SDK Swift integration for iOS
    • Custom adapters
    • LevelPlay SDK Changelog
    • Ad Quality SDK Changelog
  • Regulations and settings
  • Ad formats
  • Mediated networks
  • Test your integration
  1. Grow your game
  2. Unity LevelPlay
  3. LevelPlay SDK
  4. LevelPlay SDK for iOS developers

Ad Quality SDK Swift integration for iOS

Integrate the Ad Quality SDK with Swift by creating a bridging header and initializing the SDK with your app key.
Read time 1 minute
Last updated 6 months ago

Ad Quality supports both Objective-C and Swift. While the SDK is written in Objective-C, you can make it compatible with Swift.

Step 1: Bridging Header

Swift and Objective-C use different runtime environments, you need a bridging header to access Objective-C code in Swift.
  1. Create a Bridging Header
    1. Inside Xcode, go to File > New > File.
    2. Select Header File under Source.
    3. Name it Ad-Quality-Bridging-Header.h and save it in your project.
  2. Link the Header in Build Settings
    1. Open Project Navigator and select your project target.
    2. Go to Build Settings.
    3. Search for Objective-C Bridging Header.
    4. Set the path to the bridging header:
      YourApp/Ad-Quality-Bridging-Header.h
  3. Import the Objective-C SDK into the Bridging Header
    1. Inside Ad-Quality-Bridging-Header.h, import the Objective-C SDK's main header file:
      #import "IronSourceAdQuality.h"

Step 2: Use the SDK in Swift

You can now use the Objective-C classes inside your Swift files. For example:
import SwiftUI@mainstruct ironsourceadquality_sampleApp: App { init() { IronSourceAdQuality.getInstance().initialize(withAppKey: "YOUR_APP_KEY") }}
You can now start integrating the Ad Quality SDK with Swift. Continue to Integrate Ad Quality SDK for iOS.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Step 1: Bridging Header

    • Step 2: Use the SDK in Swift


Report a problem with this page