Type

SupportedUnits

The units of measurement supported by Apple News Format.

Declaration

string SupportedUnits

Possible Values

/^[0-9\.]+(vw|vmin|vmax|vh|dg|dm|cw|gut|pt)?$/

Discussion

You can define units for setting dimensions in Apple News Format. Values without a unit definition are interpreted in points (pt).

The following are the supported units in Apple News Format:

  • vw. Defines a size or margin based on the viewport width.

  • vh. Defines a size or margin based on the viewport height.

  • vmin. Defines a size or margin based on the shortest side of the viewport (height or width, whichever is shorter).

  • vmax. Defines a size or margin based on the longest side of the viewport (height or width, whichever is longer).

  • dg. Defines a size or margin based on the document gutter. See Layout.

  • dm. Defines a size or margin based on the document margin. See Layout.

  • cw. Defines a size based on the component’s width. Note that this unit can only be used for sizing the component itself.

  • pw. Defines the component width based on the parent component width.

  • pt. Defines a unit of measure in points (the default).

For more information, see Specifying Measurements for Components.

See Also

Component Measurements and Media Guidelines

Specifying Measurements for Components

Specify the units of measure to use for margins, minimum heights, and other dimensions.