Lorixen.
EN

Dynamic Type: iPhone apps that respect larger text sizes

Short answer: Dynamic Type is the iPhone setting that lets people choose a larger or smaller text size, including extra-large accessibility sizes. Apps that use fixed font sizes ignore it, and apps that scale text but use fixed layouts end up with clipped or overlapping words. Use the system text styles or scale custom fonts with UIFontMetrics, let labels update automatically, allow text to wrap, and test at the largest accessibility sizes before every release.

Why this matters for a business app

A surprising number of customers change their text size, and many of them are exactly the people who use business apps daily: older customers checking appointments, staff on the shop floor reading orders at arm's length, anyone with tired eyes at the end of a shift. When an app ignores their setting, they squint or give up. When it scales text but the layout can't cope, buttons get cut off and prices overflow into the next line.

Supporting Dynamic Type also overlaps with accessibility expectations more widely. The W3C's guidance on resizing text, written for web content, sets the goal of text resizable up to 200 percent without loss of content or functionality, which is a useful benchmark for apps too.

How Dynamic Type works

Users pick a text size in iOS settings, with standard sizes plus larger accessibility sizes. Apple's UIContentSizeCategory documentation lists the categories, from extra small through extra-extra-extra large, and a separate set of accessibility sizes from medium to extra-extra-extra large.

Your app doesn't read a number and multiply. Instead, you ask iOS for fonts by role, such as body, headline or caption, and iOS returns the right size for the user's current setting.

Use text styles, not point sizes

In UIKit, Apple's article on scaling fonts automatically shows the basic pattern:

label.font = UIFont.preferredFont(forTextStyle: .body)
label.adjustsFontForContentSizeCategory = true

The first line asks for the body text style at the current size. The second tells the label to update automatically when the user changes their setting, without restarting the app.

In SwiftUI, the built-in text styles, such as .font(.body) or .font(.headline), scale with Dynamic Type by default. Problems usually come from places where someone wrote .font(.system(size: 15)) to match a design file exactly.

Custom fonts can scale too

Brand fonts are fine. Apple's article explains that you can scale a custom font with UIFontMetrics: pick a base size for a text style and call scaledFont(for:), and the font scales in proportion to the user's setting. SwiftUI has equivalent options for custom fonts tied to a text style.

What doesn't work is a custom font at a fixed size. That's the most common reason a well-designed app ignores Dynamic Type.

Fix the layouts that break

Once text scales, layouts have to stretch. The usual problem areas:

  • Single-line labels. Set the number of lines to zero or allow wrapping, so long text flows onto extra lines instead of being cut off with "…".
  • Fixed-height rows and buttons. Let heights grow with content, using Auto Layout or SwiftUI's natural sizing.
  • Side-by-side layouts. A product name and price on one row may not fit at large sizes. Switch to a stacked layout when the size category is an accessibility size.
  • Icons beside text. Scale icons with text, or at least keep them from overlapping.
  • Tab bars and navigation titles. System components handle this well; custom-built ones often don't.

A good approach is to design two layouts for dense screens, the normal one and a stacked one, and switch based on the size category.

Don't scale what shouldn't scale

Some things should stay put. Charts, maps and images don't usually need to grow with text size, and decorative large titles may already be big enough. Focus on text people read to make decisions: names, prices, times, statuses, instructions and button labels.

Test at the extremes

You can preview text sizes without changing your own phone's settings:

  1. In Xcode, use the environment overrides while running in the simulator to change the text size on the fly.
  2. In SwiftUI previews, preview screens at different size categories, including accessibility sizes.
  3. On a device, use the Larger Text accessibility setting and step through the sizes.

Check every main screen at the default size, the largest standard size and the largest accessibility size. Make it part of your release checklist, because new screens are where regressions appear.

Common shortcuts to avoid

  • Capping the size. Limiting text to a maximum below the user's choice defeats the point for the people who need it most. Cap only where a layout truly can't adapt.
  • Shrinking text to fit. Automatic shrink-to-fit makes text smaller than the user asked for. Prefer wrapping.
  • Assuming tablets are fine. Larger screens help, but split views can be as narrow as a phone.

A worked example

Take a hypothetical Edinburgh pharmacy-chain app whose prescription screen used a custom font at fixed sizes. Customers who had increased their text size saw tiny text in the app, and several called the shop to check collection times. The team scaled the brand font with UIFontMetrics, switched labels to wrap, made order rows stack vertically at accessibility sizes and added largest-size checks to their release testing. The prescription status and collection time now stay readable at every setting.

FAQ

Does Dynamic Type affect web views inside the app?

Not automatically. Web content needs its own handling, such as using the system font settings in CSS where supported.

Will designers need to change their files?

They'll need to design for text growing. Showing one screen at default and largest sizes in the design file is a good start.

Is this only for accessibility sizes?

No. Many people use the standard larger sizes without any accessibility need. Supporting both is the goal.

Does Android have the same feature?

Yes, Android has its own font scaling setting, which needs similar care in Android apps.

If your iPhone app breaks or ignores larger text sizes, ask us for a Dynamic Type review.

Sources

WhatsAppBook a call