> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/ios/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/ios/swift/scope.md).

# scope

[Swift](/ios/swift.md) ⟩ 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](/ios/swift/type.md).
{% endhint %}

* symbols defined at a [global scope](/ios/swift/scope/global.md) can be <mark style="color:yellow;">accessed by any file</mark> in the [module](/ios/swift/scope/module.md).
* symbols defined at a [local scope](/ios/swift/scope/local.md) 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 scope](/ios/swift/scope/global.md)
* [local scope](/ios/swift/scope/local.md)
* [module](/ios/swift/scope/module.md)
  * [framework](/ios/swift/scope/framework.md) ⟩ [built-in frameworks](/ios/swift/scope/framework/built-in-frameworks.md)&#x20;
    {% endtab %}
    {% endtabs %}
