---
title: "numericText(value:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/contenttransition/numerictext(value:)"
---

# numericText(value:)

Creates a content transition intended to be used with Text views displaying numbers.

## Declaration

```swift
static func numericText(value: Double) -> ContentTransition
```

## Parameters

- `value`: The value represented by the Text view being animated. The difference between the old and new values when the text changes will be used to determine the animation direction.

## Return Value

Return Value A new content transition.

## Discussion

Discussion The example below creates a text view displaying a particular value, assigning the same value to the associated transition: Text("\(value)")     .contentTransition(.numericText(value: value))

## See Also

### Getting content transitions

- [identity](swiftui/contenttransition/identity.md)
- [interpolate](swiftui/contenttransition/interpolate.md)
- [numericText(countsDown:)](swiftui/contenttransition/numerictext(countsdown:).md)
- [opacity](swiftui/contenttransition/opacity.md)
- [symbolEffect](swiftui/contenttransition/symboleffect.md)
- [symbolEffect(_:options:)](swiftui/contenttransition/symboleffect(_:options:).md)
