Skip to main content

GitHub Repository

iOS SDK Example

iOS SDK example project

Example Project Structure

We provide examples in three different approaches: SwiftUI, UIKit, and Objective-C.
Available in the adrop-ads-example-ios-swiftUI/ folder.This is an example implementing ads with SwiftUI-based declarative UI.

How to Run Examples

1

Clone the repository

2

Install dependencies

3

Open workspace

You must open .xcworkspace, not .xcodeproj.
4

Run

  1. Select a simulator or real device
  2. Click Run (⌘R)
The example project uses test unit IDs, so you can run it immediately without any additional configuration.

Key Example Code

Interstitial Ad (UIKit)

Interstitial Ad (Objective-C)


User Event Tracking


Getting Started

SDK installation and initialization

Banner Ad

Banner ad implementation

Interstitial Ad

Interstitial ad implementation

Reference

API reference