<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/HoverEffectPhaseOverride/inactiveTemporarily(trigger:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI24HoverEffectPhaseOverrideV19inactiveTemporarily7triggerACx_tSQRzlFZ"
  },
  "title" : "inactiveTemporarily(trigger:)"
}
-->

# inactiveTemporarily(trigger:)

Temporaily transitions to the inactve phase until all animations finish, and the
transition is complete.

```
static func inactiveTemporarily(trigger: some Equatable) -> HoverEffectPhaseOverride
```

## Parameters

`trigger`

A value to observe for changes. The override will be
reapplied whenever this value changes.

## Discussion

Use `inactiveTemporarily(trigger:)` to override an effect’s phase until it fully
transitions to its inactive phase. The transition will use the animations defined
by the effect, but will ignore any delays.

When the override expires, the effect will respond to hover events again. If the
view isn’t hovered, the effect will remain in the inactive phase. Otherwise it
will begin transitioning to the active phase, honoring any delays defined on the
effect.

When applied to a group, all effects in the group become inactive as well.
Applying overrides to multiple effects in the same group is undefined, due to it
not being clear which override should be applied.

---

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)