# fill

[SwiftUI](../..) ⟩ [shapes](..) ⟩ [Shape]() ⟩ fill&#x20;

{% tabs %}
{% tab title="⭐️ 重點" %}
{% hint style="info" %}
[FillStyle](https://swiftontap.com/fillstyle) determines the <mark style="color:red;">**even-odd fill**</mark> <mark style="color:orange;">**mode**</mark> and the <mark style="color:red;">**antialiased**</mark> <mark style="color:orange;">**mode**</mark>.
{% endhint %}
{% endtab %}

{% tab title="📘 手冊" %}
* [SwiftUI](https://developer.apple.com/documentation/swiftui) ⟩&#x20;
  * [Shape](https://developer.apple.com/documentation/swiftui/shape) ⟩&#x20;
    * [.fill(style:)](https://developer.apple.com/documentation/swiftui/shape/fill\(style:\))：fill with <mark style="color:orange;">`FillStyle`</mark>.
    * [.fill(\_:style:)](https://developer.apple.com/documentation/swiftui/shape/fill\(_:style:\))：fill with [shapestyle](../shapestyle "mention") and <mark style="color:orange;">`FillStyle`</mark>.
  * [Shapes](https://developer.apple.com/documentation/swiftui/shapes) ⟩ [FillStyle](https://developer.apple.com/documentation/swiftui/fillstyle) (<mark style="color:red;">**struct**</mark>)
* SwiftOnTap ⟩ [FillStyle](https://swiftontap.com/fillstyle) ⟩ [.isEOFilled](https://swiftontap.com/fillstyle/iseofilled) - fill with Even-Odd rule.
{% endtab %}

{% tab title="📗 參考" %}
* [ ] Paul ⟩ [How to fill and stroke shapes at the same time?](https://www.hackingwithswift.com/quick-start/swiftui/how-to-fill-and-stroke-shapes-at-the-same-time)
{% endtab %}

{% tab title="👥 相關" %}
* can fill a [](<> "mention").
{% endtab %}

{% tab title="🗣 討論" %}
* [How can I clip a Shape with another Shape in SwiftUI?](https://stackoverflow.com/a/67128123/5409815) ⭐️
* [SwiftUI: How to draw filled and stroked shape?](https://stackoverflow.com/a/60425421/5409815)
{% endtab %}
{% endtabs %}
