Subject Lifting — Background Removal

Extract foreground subjects from photos with transparent backgrounds using VisionKit's ImageAnalyzer — one-tap background removal with state machine lifecycle, original/extracted image pair, and PNG data output (iOS 18+)

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

Platform: iOS only, iOS 18+ — this module uses VisionKit APIs.

Many apps need to let users isolate objects from photos — sticker makers, product catalogs, collage editors, packing lists, or any app where users photograph items and want clean cutouts. Apple's VisionKit provides on-device subject lifting (the same "lift subject from background" feature in the Photos app), but wiring it up correctly requires understanding ImageAnalyzer, ImageAnalysisInteraction, and the async subject extraction pipeline.

This module wraps the entire flow into a single SWSubjectLiftingManager with a clear state machine (idle → processing → completed/failed), original and extracted image tracking, and PNG data output ready for persistence or sharing.

What you get

  • ✓335 lines of source code, ready to paste
  • ✓Architecture
  • ✓Dependencies
  • ✓Implementation
  • ✓Integration Checklist
  • ✓Common Customizations
  • ✓Known Gotchas
subject liftingbackground removalVisionKitImageAnalyzerimage processingSwiftUI

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.