# initializers

[swift](../..) ⟩ [type](..) ⟩ [init]() ⟩ initializers&#x20;

{% hint style="success" %}
initializers 分為下列幾種：
{% endhint %}

<table><thead><tr><th width="111" data-type="checkbox">required</th><th width="126" data-type="checkbox">convenience</th><th width="283">code</th><th>note</th></tr></thead><tbody><tr><td>false</td><td>false</td><td><mark style="color:blue;"><code>init</code></mark></td><td><mark style="color:orange;">designated</mark> init</td></tr><tr><td>false</td><td>true</td><td><mark style="color:blue;"><code>convenience init</code></mark></td><td><mark style="color:green;">convenience</mark> init</td></tr><tr><td>true</td><td>false</td><td><mark style="color:blue;"><code>required init</code></mark></td><td><a href="initializers/require">required</a> <mark style="color:orange;">designated</mark> init</td></tr><tr><td>true</td><td>true</td><td><mark style="color:blue;"><code>required convenience init</code></mark></td><td><a href="initializers/require">required</a> <mark style="color:yellow;">convenience</mark> init</td></tr></tbody></table>

{% tabs %}
{% tab title="🔴 主題" %}
* [require](initializers/require "mention")
{% endtab %}

{% tab title="📘 手冊" %}
* [Swift](https://docs.swift.org/swift-book/documentation/the-swift-programming-language) ⟩ [Initialization](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/initialization/) ⟩
  * [Required Initializers](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/initialization/#Required-Initializers)
{% endtab %}
{% endtabs %}
