> 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/shapes/shape/fill.md).

# fill

[SwiftUI](/ios/swiftui.md) ⟩ [shapes](/ios/swiftui/shapes.md) ⟩ [Shape](/ios/swiftui/shapes/shape.md) ⟩ 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](/ios/swiftui/shapes/shapestyle.md) 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 [Shape](/ios/swiftui/shapes/shape.md).
  {% 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 %}
