---
title: AppExtensionPoint.Bind
framework: extensionfoundation
role: symbol
role_heading: Structure
path: extensionfoundation/appextensionpoint/bind
---

# AppExtensionPoint.Bind

A property wrapper that binds an app extension to an extension point of a host app.

## Declaration

```swift
@resultBuilder struct Bind
```

## Mentioned in

Building an app extension to support a host app

## Overview

Overview Apply this property wrapper to a variable that contains an AppExtensionPoint type. Use the variable to define the extension point that your app extension supports. An app extension can bind to only one extension point in a host app. When configuring the AppExtensionPoint type for your variable, specify the host app and extension point details using an AppExtensionPoint.Identifier type. The following example shows how to create the variable in your app extension, specify the extension point you want, and create the binding: struct MyAppExtension: AppExtension {     @AppExtensionPoint.Bind     var extensionPoint: AppExtensionPoint {         AppExtensionPoint.Identifier("com.example.hostapp”, name “HostAppFeature”)     } } To ensure the system discovers your app extension’s bindings, add a user-defined build setting to your app extension target in Xcode. Set the build setting name to EX_ENABLE_EXTENSION_POINT_GENERATION and configure it with a value of YES. When this setting is present, the compiler places the necessary binding information in your app extension’s Info.plist file.

## Topics

### Annotating a binding

- [buildBlock(_:)](extensionfoundation/appextensionpoint/bind/buildblock(_:).md)

### Type Methods

- [buildBlock(_:_:)](extensionfoundation/appextensionpoint/bind/buildblock(_:_:).md)

## See Also

### Binding to an extension point

- [AppExtensionPoint.Identifier](extensionfoundation/appextensionpoint/identifier.md)
