# scope

[Swift](https://lochiwei.gitbook.io/ios/swift) ⟩ scope&#x20;

{% hint style="success" %}
The <mark style="color:yellow;">areas</mark> of your project <mark style="color:yellow;">from which</mark> you can <mark style="color:yellow;">access a value or</mark> [type](https://lochiwei.gitbook.io/ios/swift/type).
{% endhint %}

* symbols defined at a [global scope](https://lochiwei.gitbook.io/ios/swift/scope/global) can be <mark style="color:yellow;">accessed by any file</mark> in the [module](https://lochiwei.gitbook.io/ios/swift/scope/module).
* symbols defined at a [local scope](https://lochiwei.gitbook.io/ios/swift/scope/local) are only available in code that is at the <mark style="color:yellow;">same</mark> or a <mark style="color:yellow;">lower level</mark> of local scope.

{% tabs %}
{% tab title="🔴 主題" %}

* [global](https://lochiwei.gitbook.io/ios/swift/scope/global "mention")
* [local](https://lochiwei.gitbook.io/ios/swift/scope/local "mention")
* [module](https://lochiwei.gitbook.io/ios/swift/scope/module "mention")
  * [framework](https://lochiwei.gitbook.io/ios/swift/scope/framework "mention") ⟩ [built-in-frameworks](https://lochiwei.gitbook.io/ios/swift/scope/framework/built-in-frameworks "mention")&#x20;
    {% endtab %}
    {% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lochiwei.gitbook.io/ios/swift/scope.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
