Graphics and Rendering Modifiers

Affect the way the system draws a view, for example by scaling or masking a view, or by applying graphical effects. システムがビューを描画する方法に影響を与えます、例えばあるビューを拡大縮小またはマスクすることによって、またはグラフィカル効果を適用することによって。

Overview 概要

Use these view modifiers to apply many of the rendering effects typically associated with a graphics context, like adding masks and creating composites. You can apply these effects to graphical views, like Shapes, as well as any other SwiftUI view.

When you do need the flexibility of immediate mode drawing in a graphics context, use a Canvas view instead. This can be particularly helpful when you want to draw an extremely large number of dynamic shapes — for example, to create particle effects.

Topics 話題

Masks and Clipping

Scale 規準

Rotation and Transformation

Graphical Effects

Composites

Animations

See Also 参照

Drawing Views