<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "Xcode: 15.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/applying-visual-effects-to-foreground-subjects",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Applying visual effects to foreground subjects"
}
-->

# Applying visual effects to foreground subjects

Segment the foreground subjects of an image and composite them to a new background with visual effects.

## Overview

> Note: This sample code project is associated with WWDC23 session 10176: [Lift subjects from images in your app](https://developer.apple.com/wwdc23/10176/).

### Configure the sample code project

Before you run the sample code project in Xcode, set the run destination to an iOS 17 device.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)