GitHub Repository
iOS SDK Example
iOS SDK example project
Example Project Structure
We provide examples in three different approaches: SwiftUI, UIKit, and Objective-C.- SwiftUI
- UIKit
- 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
4
Run
- Select a simulator or real device
- Click Run (⌘R)
The example project uses test unit IDs, so you can run it immediately without any additional configuration.
Key Example Code
Banner Ad (SwiftUI)
Interstitial Ad (UIKit)
Interstitial Ad (Objective-C)
User Event Tracking
Related Documentation
Getting Started
SDK installation and initialization
Banner Ad
Banner ad implementation
Interstitial Ad
Interstitial ad implementation
Reference
API reference