跳转至
Protocol

GeometryEffect

An effect that changes the visual appearance of a view, largely without changing its ancestors or descendants.

Declaration

protocol GeometryEffect : Animatable, ViewModifier where Self.Body == Never

Overview

The only change the effect makes to the view's ancestors and descendants is to change the coordinate transform to and from them.

Availability

iOS 13.0+

macOS 10.15+

tvOS 13.0+

watchOS 6.0+

Topics


Instance Method

effectValue(size:) Returns the current value of the effect.

ignoredByLayout() Returns an effect that produces the same geometry transform as this effect, but only applies the transform while rendering its view.