AspectType
Overview
AspectType is an Enum that defines how to maintain the aspect ratio of UI elements.
This is used in the AspectType property of UIAspectRatioConstraint and determines how UI elements scale to fit their parent or maximum size.
Items
Name
Value
Description
FitWithinMaxSize
0
Fits content to the maximum allowed size while maintaining its aspect ratio.
ScaleWithParentSize
1
Scales content in proportion to its parentβs size changes.
See also
UIAspectRatioConstraintLast updated