# AspectType

## Overview

AspectType은 UI 요소의 가로세로 비율을 유지하는 방식을 정의하는 Enum입니다.

UIAspectRatioConstraint의 AspectType 속성에서 사용되며, UI 요소가 부모 크기나 최대 크기에 맞춰 어떻게 확장될지를 결정합니다.

## Items

| Name                | Value | Description                       |
| ------------------- | ----- | --------------------------------- |
| FitWithinMaxSize    | 0     | 콘텐츠를 최대 허용 크기 내에서 비율을 유지하면서 맞춥니다. |
| ScaleWithParentSize | 1     | 부모의 크기 변화에 비례하여 콘텐츠를 확장합니다.       |

## See also

{% content-ref url="../classes/uiaspectratioconstraint" %}
[uiaspectratioconstraint](https://docs.overdare.com/korean/development/api-reference/classes/uiaspectratioconstraint)
{% endcontent-ref %}
