Requirements
Min iOSiOS 13.0+
XcodeXcode 14.0+
SwiftSwift 5.7+
FormatXCFramework
Installation Method
In Xcode: File -> Add Package Dependencies...
URL: https://github.com/perkoxofficial/perkox-ios-sdk-releases.git
Dependency Rule: Up to Next Major Version (2.41.0)Info.plist Configuration (ATT)
If your app requests Apple App Tracking Transparency (ATT), add the tracking permission description to your Info.plist:
Info.plistxml
<key>NSUserTrackingUsageDescription</key>
<string>This identifier will be used to deliver personalized rewarded offers.</string>Initialization & Presentation
import UIKit
import PerkoxOfferwall
class ViewController: UIViewController {
private var offerwall: PerkoxOfferwall?
override func viewDidLoad() {
super.viewDidLoad()
// 1. Initialize Perkox Offerwall
offerwall = PerkoxOfferwall(
appId: "YOUR_APP_ID",
playerId: "USER_12345"
)
// 2. Set reward callback
offerwall?.onReward = { reward in
print("Reward received: \(reward.amount) \(reward.status)")
}
offerwall?.onClose = {
print("Offerwall closed by user")
}
}
@IBAction func openOfferwallTapped(_ sender: UIButton) {
// 3. Present offerwall from current view controller
offerwall?.present(from: self)
}
}Privacy Manifest Support
The Perkox iOS SDK is fully compliant with Apple's required Privacy Manifest guidelines (
PrivacyInfo.xcprivacy).
