<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Animation/logicallyComplete(after:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI9AnimationV17logicallyComplete5afterACSd_tF"
  },
  "title" : "logicallyComplete(after:)"
}
-->

# logicallyComplete(after:)

Causes the animation to report logical completion after the specified
duration, if it has not already logically completed.

```
func logicallyComplete(after duration: TimeInterval) -> Animation
```

## Parameters

`duration`

The duration after which the animation should  report
that it is logically complete.

## Return Value

An animation that reports logical completion after the
given duration.

## Discussion

Note that the indicated duration will not cause the animation to
continue running after the base animation has fully completed.

If the animation is removed before the given duration is reached,
logical completion will be reported immediately.

---

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)