---
title: AppExtensionPoint.Scope
framework: extensionfoundation
role: symbol
role_heading: Structure
path: extensionfoundation/appextensionpoint/scope
---

# AppExtensionPoint.Scope

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

## Declaration

```swift
struct Scope
```

## Overview

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 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:)](extensionfoundation/appextensionpoint/scope/init(restriction:).md)
- [AppExtensionPoint.Scope.Restriction](extensionfoundation/appextensionpoint/scope/restriction.md)

## Relationships

### Conforms To

- [AppExtensionPoint.Attribute](extensionfoundation/appextensionpoint/attribute.md)

## See Also

### Declaring an extension point

- [AppExtensionPoint.Definition](extensionfoundation/appextensionpoint/definition.md)
- [AppExtensionPoint.Name](extensionfoundation/appextensionpoint/name.md)
- [AppExtensionPoint.UserInterface](extensionfoundation/appextensionpoint/userinterface.md)
- [AppExtensionPoint.EnhancedSecurity](extensionfoundation/appextensionpoint/enhancedsecurity.md)
- [AppExtensionPoint.Attribute](extensionfoundation/appextensionpoint/attribute.md)
