Documentation

AI Data Generation

Generate sample data automatically from a prompt (Apple Intelligence)

2 min read

To check how your design looks, you need plausible sample data. Instead of filling it in one item at a time, you can generate sample data automatically with AI. It uses Apple's Foundation Models, so the data is generated on-device.

Requirements

You can use it when all of the following are met.

  • iOS / macOS 26 or later
  • A device where Apple Intelligence is turned on and available
  • The target data is an array of a custom type (reference)

In other words, you can use it on array data of a Schema you defined yourself (for example, Todo or Product).

How to use

On data that meets the requirements, tap the AI generation button and describe in natural language what you want to create. For example, if you type "Create 10 cafe menu items with a name and a price," Layerz generates and fills in the data to match the Schema's fields.

When it isn't available

If the device or settings don't meet the requirements, you'll see a message appropriate to the situation — Device Not Supported, Apple Intelligence Disabled, or Model Not Ready.

AI generation is useful for quickly filling a screen during the design phase. For real data, set things up to fetch from a server with API integration.