---
title: Formatter.Context.dynamic
framework: foundation
role: symbol
role_heading: Case
path: foundation/formatter/context/dynamic
---

# Formatter.Context.dynamic

A formatting context determined automatically at runtime.

## Declaration

```swift
case dynamic
```

## Discussion

Discussion A Formatter.Context.dynamic context is automatically determined to be one of the following: Formatter.Context.standalone, Formatter.Context.beginningOfSentence, or Formatter.Context.middleOfSentence. When used in combination with stringWithFormat:, the formatter returns a string proxy, formats the string using Formatter.Context.unknown, determines context based on the proxy string’s location, and then reformats the string accordingly.

## See Also

### Constants

- [Formatter.Context.unknown](foundation/formatter/context/unknown.md)
- [Formatter.Context.standalone](foundation/formatter/context/standalone.md)
- [Formatter.Context.listItem](foundation/formatter/context/listitem.md)
- [Formatter.Context.beginningOfSentence](foundation/formatter/context/beginningofsentence.md)
- [Formatter.Context.middleOfSentence](foundation/formatter/context/middleofsentence.md)
