<!--
{
  "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/Scope",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "ExtensionFoundation"
    ],
    "preciseIdentifier" : "s:19ExtensionFoundation03AppA5PointV5ScopeV"
  },
  "title" : "AppExtensionPoint.Scope"
}
-->

# AppExtensionPoint.Scope

A type that regulates which app extensions may access an extension point.

```
struct Scope
```

## Overview

Add a `Scope` type to your extension point definition to restrict the set of app extensions
that may bind to the host app. If you don’t include this type in your definition, the default
behavior requires app extensions to reside inside the host app. Configure this type with the
[`AppExtensionPoint.Scope.Restriction.none`](/documentation/ExtensionFoundation/AppExtensionPoint/Scope/Restriction/none) option to allow app extensions from outside the host app to connect as well. The
following example shows an extension point definition that allows all app extensions to connect,
including ones outside the host app:

```
extension AppExtensionPoint {
    @Definition
    static var MyGlobalFeature : AppExtensionPoint {
        Name(“MyGlobalFeature”)
        UserInterface(false)
        Scope(.none)
    }
}
```

## Topics

### Creating a scope attribute

[`init(restriction: AppExtensionPoint.Scope.Restriction)`](/documentation/ExtensionFoundation/AppExtensionPoint/Scope/init(restriction:))

Initializes the scope type with the specified restriction value.

[`enum Restriction`](/documentation/ExtensionFoundation/AppExtensionPoint/Scope/Restriction)

A type that indicates which app extensions may bind to a host app.

## Relationships

### Conforms To

[`Attribute`](/documentation/ExtensionFoundation/AppExtensionPoint/Attribute)

---

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)