hoverEffectGroup(id:in:behavior:)
Creates an effect that activates a named group of effects.
Declaration
static func hoverEffectGroup(id: String? = nil, in namespace: Namespace.ID, behavior: HoverEffectGroup.Behavior = .activatesGroup) -> GroupHoverEffectParameters
- id:
An optional id to give the group. If provided, the group will be uniquely identified by combining the id and the namespace.
- namespace:
The namespace that identifies the group. If
nil, this modifier has no effect. - behavior:
How the effect will behave relative to other effects in the group.
Return Value
A new effect that activates the given effect group.
Discussion
The effect group is uniquely identified by combining the id and namespace parameters. If an id is not provided, the effect will be identified by the namespace alone. Providing an id is useful when creating effects that use multiple, closely-related groups.
The default behavior of an effect is to activate the effect group when hovered. The behavior parameter can be used to choose alternative behaviors. See HoverEffectGroup.Behavior for all possible behaviors.