Repository: expo/expo
File: packages/expo-ui/src/swift-ui/modifiers/index.ts (TypeScript)

Code before:
      }
    | { type: 'custom'; points: { x: number; y: number } }
) => createModifier('gridCellAnchor', anchor);
/**
 * Specifies the label to display in the keyboard's return key. For example, `'done'`.
 * @param submitLabel - The label to display in the keyboard's return key.
 * @returns A view that uses the specified submit label.
 * @platform iOS 15+
 *
 * @example
 * ```tsx
 * <TextField
 *   modifiers={[
 *     submitLabel('search'),
 *   ]}
 * />
 * ```
 */
export const submitLabel = (
  submitLabel: 'continue' | 'done' | 'go' | 'join' | 'next' | 'return' | 'route' | 'search' | 'send'
) => createModifier('submitLabel', { submitLabel });

/**
 * Sets the content transition type for a view.
 * Useful for animating changes in text content, especially numeric text.
 * Use with the [animation](#animationanimationobject-animatedvalue) modifier to animate the transition when the content changes.
 *
 * @param transitionType - The type of content transition.
 * @param params - Optional parameters.
 * @param params.countsDown - Whether the numeric text counts down.
 *
 * @example
 * ```tsx
 * <Text modifiers={[contentTransition('numericText'), animation(Animation.default, count)]}>
 *   {count.toString()}
 * </Text>
 * ```
 *
 * @platform ios 16.0+
 * @platform tvos 16.0+
 * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/contenttransition(_:)).
 */
export const contentTransition = (
  transitionType: 'numericText' | 'identity' | 'opacity' | 'interpolate',
  params?: { countsDown?: boolean }
) =>
  createModifier('contentTransition', {
    transitionType,
    countsDown: params?.countsDown,
  });


Review comment (suggestion):
```suggestion
 * Use with the [`animation`](#animationanimationobject-animatedvalue) modifier to animate the transition when the content changes.
```

Let's add the missing syntax highlight here.

Code after:
      }
    | { type: 'custom'; points: { x: number; y: number } }
) => createModifier('gridCellAnchor', anchor);
/**
 * Specifies the label to display in the keyboard's return key. For example, `'done'`.
 * @param submitLabel - The label to display in the keyboard's return key.
 * @returns A view that uses the specified submit label.
 * @platform iOS 15+
 *
 * @example
 * ```tsx
 * <TextField
 *   modifiers={[
 *     submitLabel('search'),
 *   ]}
 * />
 * ```
 */
export const submitLabel = (
  submitLabel: 'continue' | 'done' | 'go' | 'join' | 'next' | 'return' | 'route' | 'search' | 'send'
) => createModifier('submitLabel', { submitLabel });

/**
 * Sets the content transition type for a view.
 * Useful for animating changes in text content, especially numeric text.
 * Use with the [`animation`](#animationanimationobject-animatedvalue) modifier to animate the transition when the content changes.
 *
 * @param transitionType - The type of content transition.
 * @param params - Optional parameters.
 * @param params.countsDown - Whether the numeric text counts down.
 *
 * @example
 * ```tsx
 * <Text modifiers={[contentTransition('numericText'), animation(Animation.default, count)]}>
 *   {count.toString()}
 * </Text>
 * ```
 *
 * @platform ios 16.0+
 * @platform tvos 16.0+
 * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/contenttransition(_:)).
 */
export const contentTransition = (
  transitionType: 'numericText' | 'identity' | 'opacity' | 'interpolate',
  params?: { countsDown?: boolean }
) =>
  createModifier('contentTransition', {
    transitionType,
    countsDown: params?.countsDown,
  });