A PPTX viewer for your iOS app
Show PowerPoint decks inside an iPhone or iPad app with animations, Morph and video playing, offline. No PPTX SDK to bundle: convert on your server, display in WKWebView.
An API and a webview, not an on-device SDK
SlideKiln does not ship an iOS framework that parses .pptx on the device. It is a conversion API: your backend turns each deck into a self-contained HTML5 package once, and your app shows that package in WKWebView, the web engine every iOS device already has. You get the result a PPTX SDK promises, a deck that plays inside your own UI, without adding a rendering engine to your binary or keeping one up to date.
| Quick Look (QLPreviewController) | Office viewer in a web view | On-device PPTX SDK | SlideKiln + WKWebView | |
|---|---|---|---|---|
| Animations, transitions & Morph | ✕ No | Partial | Partial | ✓ Yes |
| Embedded video plays in place | ✕ No | Partial | Partial | ✓ Yes |
| Works offline | ✓ Yes | ✕ No | ✓ Yes | ✓ Yes |
| Your own UI and controls | ✕ No | ✕ No | ✓ Yes | ✓ Yes |
| Slide-change events for analytics | ✕ No | ✕ No | ✓ Yes | ✓ Yes |
| Same rendering as Android and web | ✕ No | ✓ Yes | Partial | ✓ Yes |
| Added to your app binary | Nothing | Nothing | An SDK | Nothing |
How it fits your app
Convert on your server
Your backend sends the .pptx (or a URL to it) to the SlideKiln API and gets back a zip: index.html plus assets.
Cache the package
Store the zip in your own storage or CDN. It is a plain static folder with no licence check and no call back to SlideKiln.
Show it in the webview
The app downloads the package once, unzips it, and loads index.html from local files. From then on it works offline.
Load a deck in WKWebView
Download the package zip from your backend, unzip it into the caches directory (with ZIPFoundation or any unzip library), and point WKWebView at index.html. Assets are referenced with relative URLs, so no local web server is needed.
import WebKit
// packageDir: the unzipped SlideKiln package in your app's caches directory
let webView = WKWebView(frame: view.bounds, configuration: config)
webView.loadFileURL(
packageDir.appendingPathComponent("index.html"),
allowingReadAccessTo: packageDir // lets index.html read its assets
)Control the deck from Swift
Every package exposes window.SlideKiln and fires slidekiln:slidechange events, so your native UI can own the controls: previous and next buttons, a progress bar, completion tracking.
// 1. Forward slide changes from the deck to Swift
let config = WKWebViewConfiguration()
config.userContentController.add(self, name: "deck")
config.userContentController.addUserScript(WKUserScript(
source: """
window.addEventListener("slidekiln:slidechange", (e) =>
window.webkit.messageHandlers.deck.postMessage(e.detail));
""",
injectionTime: .atDocumentStart,
forMainFrameOnly: true
))
// 2. Receive them: { index, count, isFirst, isLast }, 1-based
func userContentController(_ c: WKUserContentController, didReceive message: WKScriptMessage) {
guard let detail = message.body as? [String: Any] else { return }
progressLabel.text = "\(detail["index"] ?? 1) / \(detail["count"] ?? 1)"
}
// 3. Drive the deck from native controls
webView.evaluateJavaScript("window.SlideKiln.next()")
webView.evaluateJavaScript("window.SlideKiln.goTo(7)")Full reference in the player API docs. Building for both platforms? See the Android PPTX viewer guide and the overview for React Native, Flutter and Electron.
PPTX on iOS: at a glance
- Integration
- SlideKiln REST API on your backend + WKWebView in the app. No CocoaPod, Swift package or binary framework
- Input
- .pptx (PowerPoint 2007 and later), up to 500 MB
- In the app
- A folder of static files: index.html, SVG, CSS, JS, fonts and H.264 video
- Offline
- Yes. The package makes no network requests once it is on the device
- Control
- window.SlideKiln next / prev / goTo(n) / current / count via evaluateJavaScript; slidekiln:slidechange via WKScriptMessageHandler
- Also works in
- SwiftUI (wrap WKWebView in UIViewRepresentable), Mac Catalyst and macOS
- Price
- Free: 2 conversions a month. Pro $29: 35. Scale $149: 350. No per-app or per-device licence
Frequently asked questions
Is there a PPTX SDK for iOS?
There are commercial document SDKs for iOS, and Apple's Quick Look can preview a .pptx as static slides. SlideKiln takes a different route: it converts the deck to HTML5 on the server, and your app displays it in WKWebView. That keeps animations, Morph and video, works offline, and adds nothing to your app binary.
Can Quick Look or WKWebView open a .pptx directly?
Quick Look (QLPreviewController) can preview a PowerPoint file, but the slides are static: animations, transitions and playback control are not available, and you cannot restyle the viewer or receive slide-change events. Converting the deck first gives you a real, controllable presentation.
Does the deck work with no network connection?
Yes. A converted package is a static folder with relative URLs. Once it is on the device it loads from local storage with loadFileURL and makes no network requests.
Does it work in SwiftUI?
Yes. Wrap WKWebView in a UIViewRepresentable and load the package the same way. The JavaScript bridge and evaluateJavaScript calls are identical.
Will App Review accept this?
The package is content your app displays in WKWebView, like any locally stored HTML document. It does not download executable native code or change your app's features, which is the usual concern with downloaded content.
How do I get decks onto the device?
Convert on your backend, store the zip in your own storage, and have the app download it by content id. Cache it on disk and re-download only when your backend reports a newer version.
PowerPoint in your iOS app, working offline.
Convert a .pptx, unzip the package into your app and watch it play in a webview. 2 free conversions a month, no credit card.
Start converting free