# .alignment

## Overview

## Sample Code

<figure><img src="https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FFvK6GyBeMQOHMsT7IRnY%2Fimage.png?alt=media&#x26;token=d136bfbc-a80d-4c7c-8352-dd1c32f1684d" alt=""><figcaption><p><a href="https://www.hackingwithswift.com/books/ios-swiftui/alignment-and-alignment-guides">Hacking with Swift / 100 Days / Day-92 - Alignment and alignment guides</a></p></figcaption></figure>

<figure><img src="https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FypQudOmGDVEwqFEzhvzo%2Fimage.png?alt=media&#x26;token=24702075-a5af-4a2c-9efd-1f463d13bebb" alt=""><figcaption><p><a href="https://www.hackingwithswift.com/books/ios-swiftui/alignment-and-alignment-guides">Hacking with Swift / 100 Days / Day-92 - Alignment and alignment guides</a></p></figcaption></figure>

<figure><img src="https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FIPV4hQzuYTzpP5YoTNiy%2Fimage.png?alt=media&#x26;token=be571716-bd3a-49d7-8a76-a8eaaadd8a61" alt=""><figcaption><p><a href="https://www.hackingwithswift.com/books/ios-swiftui/alignment-and-alignment-guides">Hacking with Swift / 100 Days / Day-92 - Alignment and alignment guides</a></p></figcaption></figure>

{% embed url="<https://youtu.be/N5Nh3ce8xbE>" %}
[Hacking with Swift / 100 Days / Day-92 - Alignment and alignment guides](https://www.hackingwithswift.com/books/ios-swiftui/alignment-and-alignment-guides)
{% endembed %}

{% embed url="<https://youtu.be/Ina5JBqK4Yw>" %}
[Hacking with Swift / 100 Days / Day-92 - How to create a custom alignment guide](https://www.hackingwithswift.com/books/ios-swiftui/how-to-create-a-custom-alignment-guide)
{% endembed %}

## Sources

### Videos

### Articles / Documents

* [Medium / Mark Van Wijnen / How to Use Alignments in SwiftUI — The Basics](https://betterprogramming.pub/introducing-alignments-in-swiftui-10d4f4ba252)
* [Hacking with Swift / 100 Days / Day-92 - Alignment and alignment guides](https://www.hackingwithswift.com/books/ios-swiftui/alignment-and-alignment-guides)

## See Also

* [.alignmenguide](https://swift.sedatonat.dev/view/view-modifiers/.alignmenguide "mention")
