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

# activeTemporarily(trigger:)

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

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

## Parameters

`trigger`

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

## Discussion

Use `activeTemporarily(trigger:)` to override an effect’s phase until it fully
transitions to its active 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 is hovered, the effect will remain in the active phase. Otherwise it will
begin transitioning to the inactive phase, honoring any delays defined on the
effect.

When applied to a group, all effects in the group become active 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)