<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LocalizedStringKey/StringInterpolation/appendInterpolation(timerInterval:pauseTime:countsDown:showsHours:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18LocalizedStringKeyV0D13InterpolationV06appendF013timerInterval9pauseTime10countsDown10showsHoursySNy10Foundation4DateVG_AMSgS2btF"
  },
  "title" : "appendInterpolation(timerInterval:pauseTime:countsDown:showsHours:)"
}
-->

# appendInterpolation(timerInterval:pauseTime:countsDown:showsHours:)

Appends a timer interval to a string interpolation.

```
mutating func appendInterpolation(timerInterval: ClosedRange<Date>, pauseTime: Date? = nil, countsDown: Bool = true, showsHours: Bool = true)
```

## Parameters

`timerInterval`

The interval between where to run the timer.

`pauseTime`

If present, the date at which to pause the timer.
The default is `nil` which indicates to never pause.

`countsDown`

Whether to count up or down. The default is `true`.

`showsHours`

Whether to include an hours component if there are
more than 60 minutes left on the timer. The default is `true`.

## Discussion

Don’t call this method directly; it’s used by the compiler when
interpreting string interpolations.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)