<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ExtensionFoundation",
  "identifier" : "/documentation/ExtensionFoundation/AppExtensionPoint/Definition",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ExtensionFoundation"
    ],
    "preciseIdentifier" : "s:19ExtensionFoundation03AppA5PointV10DefinitionV"
  },
  "title" : "AppExtensionPoint.Definition"
}
-->

# AppExtensionPoint.Definition

A property wrapper that a host app uses to declare the extension points it supports.

```
@resultBuilder struct Definition
```

## Overview

Apply this property wrapper to variables that define your host app’s custom extension
points. In the property that follows the definition, specify the name of your extension
point and any additional attributes. The following example defines an extension point
that runs app extensions with enhanced security:

```
extension AppExtensionPoint {
    @Definition
    static var MySecureFeature : AppExtensionPoint {
        Name(“MySecureFeature”)
        UserInterface(false)
        EnhancedSecurity(true)
    }
}
```

To ensure the system discovers your app’s extension points, add a user-defined build setting
to your app 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 adds an
`.appext` file to your app’s bundle and places your definitions in it.

## Topics

### Wrapping the type

[`static func buildBlock<each T>(AppExtensionPoint.Name, repeat each T) -> AppExtensionPoint`](/documentation/ExtensionFoundation/AppExtensionPoint/Definition/buildBlock(_:_:))



---

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)