Contents

HoverEffectContent

A type that describes the effects of a view for a particular hover effect phase.

Declaration

protocol HoverEffectContent

Overview

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.

Topics

Instance Methods

See Also

Changing view appearance for hover events