Export & Share — PDF, Image, JSON, CSV

Production-ready export system with multi-format output (PDF, PNG/JPEG, JSON, CSV), multi-page PDF rendering with metadata, UTF-8 BOM CSV for Excel compatibility, SwiftUI ShareLink integration, temp file lifecycle management, and a unified export manager — all built on ImageRenderer (iOS 16+) with zero third-party dependencies

Pro
Included in ShipSwift Pro: $89 a year, or $199 for life.
Get Pro

Copies a short instruction with your private download link. Paste it into your agent: it downloads the whole skill (the source code, the setup steps and the mistakes we already made for you) and builds the screen.

Works with

+70

What it does

Most apps eventually need to let users export their data — as a printable PDF report, a shareable image, a machine-readable JSON file, or a CSV for Excel. Each format has its own quirks:

  • PDF requires CoreGraphics context management, page sizing, and metadata injection.
  • Image export needs correct scale factors to avoid blurry output.
  • CSV must handle UTF-8 BOM for Excel CJK compatibility and escape special characters (commas, quotes, newlines).
  • JSON needs consistent date encoding and pretty-printing for human readability.
  • Sharing requires bridging exported files to the system share sheet or SwiftUI's ShareLink.
  • Temp files accumulate if not cleaned up after sharing.

This module provides a single SWExportManager that handles all four formats, multi-page PDF, PDF metadata, a format-selection share view, and automatic temp file cleanup — using only Apple-native APIs with zero third-party dependencies.

What you get

  • ✓874 lines of source code, ready to paste
  • ✓Architecture
  • ✓Dependencies
  • ✓Implementation
  • ✓Integration Checklist
  • ✓Common Customizations
  • ✓Known Pitfalls
exportsharePDFimageJSONCSVImageRendererShareLinkfile exportdata export

Architecture

Format Selection Guide:

NeedRecommended Format
Printable reportPDF (ImageRenderer)
Social sharingImage (PNG/JPEG)
API / programmatic useJSON
Excel / Google SheetsCSV (with BOM)
Maximum compatibilityOffer JSON + CSV

More in Main screens

Browse places to stay: a search that opens into where, when and who, category tabs, and big listing cards whose photo zooms into the full listing.
Stay explorer
Pro
Browse places to stay: a search that opens into where, when and who, category tabs, and big listing cards whose photo zooms into the full listing.
A daily brief, live talent signals, and an AI agent that sources candidates for you in chat.
AI daily brief
Pro
A daily brief, live talent signals, and an AI agent that sources candidates for you in chat.
Hundreds of items as stickers with real physics. Filter by room and they fall, switch views, or spin them into a 3D sphere.
Physics sticker wall
Pro
Hundreds of items as stickers with real physics. Filter by room and they fall, switch views, or spin them into a 3D sphere.
Swipe through candidates, shortlist the best, and send a note your AI agent drafts for you.
Swipe and shortlist
Pro
Swipe through candidates, shortlist the best, and send a note your AI agent drafts for you.
Compare finalists side by side: a skills radar, scores and key facts. Swap people in and it all updates.
Side-by-side compare
Pro
Compare finalists side by side: a skills radar, scores and key facts. Swap people in and it all updates.
Everything you own, totalled by category and by room. Tap a room to drill in.
Totals dashboard
Pro
Everything you own, totalled by category and by room. Tap a room to drill in.
Local tastemakers and the spots they love.
Curator feed
Pro
Local tastemakers and the spots they love.
Top picks on pinned order slips, creators' notes on a ring, and the place screen behind them.
Creator city guide
Pro
Top picks on pinned order slips, creators' notes on a ring, and the place screen behind them.
Every trip at a glance. Open one and check items off as you pack.
Trips and checklists
Pro
Every trip at a glance. Open one and check items off as you pack.
Every recommended spot, clustered on the map.
Clustered map
Pro
Every recommended spot, clustered on the map.