iOS SDK
Use the Perfectly Clear SDK in iOS applications with PFC_iOS_Framework.xcframework
The Perfectly Clear iOS SDK (PFC_iOS_Framework.xcframework) brings the full Perfectly Clear image correction engine to native iOS applications. It exposes a Swift-friendly Objective-C API for scene detection, parameter-driven correction, and creative looks — all running on-device.
Requirements
- iOS 15.0 or later
- Xcode 14 or later
- CocoaPods (recommended) or manual xcframework embedding
- API key and certificate string provided by EyeQ
- Model files (
.pnn) and preset files (.preset,.looks) distributed with the SDK
What's in the SDK
The xcframework ships a set of Objective-C classes that bridge directly into Swift. The core objects you will use in every integration are:
| Class | Purpose |
|---|---|
PCSEngine | Core image processing engine — scene detection, correction apply, creative looks |
PCSImage | Image wrapper created from UIImage; holds raw pixel data for the engine |
PCSParam | All correction parameters (strength, face tools, color, looks) |
PCSProfile | Opaque color profile returned by detection; must be paired with its image |
PCSSceneDetectionResult | Result of detectSceneForImage — scene label and profile |
Sections
Getting Started
Install the framework, initialize the engine, and correct your first image in Swift
Using the SDK
Thread safety, image format requirements, scene detection, parameter management, and memory
API Reference
Complete class and method reference for PCSEngine, PCSImage, PCSParam, and related types