HoverEffectContent
A type that describes the effects of a view for a particular hover effect phase.
Declaration
protocol HoverEffectContentOverview
Color.red
.hoverEffect { effect, isActive, proxy in
effect.opacity(isActive ? 1 : 0.5)
}You don’t conform to this protocol yourself. Instead, effects are described by calling modifier functions on other effects, like the opacity(_:) modifier used in the example above.