Learning w/ Swift

Easy accessibility with Dynamic Type

Dynamic type is an accessibility feature within iOS that allows users to adjust the size of text system-wide.

Instead of hardcoding font sizes, developers can use the built in system fonts to match the settings of the user for optimal legibility.

Examples of the system settings are:

  • Title
  • Headline
  • Subheadline
  • Body
  • etc.

In use:

Text("Hello World!")