Instance Method インスタンスメソッド

animation(_:)

Applies the given animation to this view when this view changes.

Declaration 宣言

func animation(_ animation: Animation?) -> some View
Available when Self conforms to Equatable. SelfEquatableに準拠する場合に利用可能です。

Return Value 戻り値

A view that applies animation to this view whenever it changes.

Parameters パラメータ

animation

The animation to apply. If animation is nil, the view doesn’t animate. 適用するアニメーション。animationnilならば、ビューはアニメーションしません。