Contents

body(content:)

Defines the effect produced by this effect.

Declaration

func body(content: Self.Content) -> Self.Body

Parameters

  • content:

    An empty effect you use to compose the custom effect.

Return Value

A custom effect.

Discussion

You implement this method to describe a custom effect to apply to a view. content is an empty effect you use to build your effect, which will later be applied to a View, or combined with other CustomHoverEffects.