> 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/swiftui/control/button.md).

# Button

╱🚧 under construction

[SwiftUI](/ios/swiftui.md) ⟩ [Controls](/ios/swiftui/control.md) ⟩ Button&#x20;

{% hint style="success" %}
🚧
{% endhint %}

{% tabs %}
{% tab title="💾 程式" %}

```swift
// syntax 1:
Button(action: { /* action closure */ }) {
    // label view
}

// syntax 2:
Button("localizedStringKey") {
    // action closure
}
```

{% endtab %}

{% tab title="💈範例" %}

* [example ⟩ SubButtons](/ios/master/todo/tutorials/swift-animation-mastery/triggers/button.md)
  {% endtab %}

{% tab title="📗 參考" %}

* [x] Sarun ⟩ [SwiftUI ButtonStyle](https://sarunw.com/posts/swiftui-buttonstyle/)
  {% endtab %}

{% tab title="📘 手冊" %}
\*
{% endtab %}

{% tab title="👥 相關" %}

* [Label](/ios/swiftui/control/label.md)
* [.neumorphic()](/ios/swiftui/view/modifier/examples/neumorphic.md)
  {% endtab %}
  {% endtabs %}
