Overview
概要
You create rich, dynamic user interfaces with the built-in views and shapes that SwiftUI provides. To enhance these views, you can apply many of the graphical effects typically associated with a graphics context, like setting colors, adding masks, and creating composites. Do this using the view modifiers in Graphics and Rendering Modifiers, along with supporting types found here, like Color
and BlendMode
.
When you do need the flexibility of immediate mode drawing in a graphics context, use a Canvas
view. This can be particularly helpful when you want to draw an extremely large number of dynamic shapes — for example, to create particle effects.