Discussion 議論
The gradient maps its coordinate space to the unit space square in which its center and radii are defined, then stretches that square to fill its bounding rect, possibly also stretching the circular gradient to have elliptical contours.
For example, an elliptical gradient used as a background:
let gradient = Gradient(colors: [.red, .yellow])
ContentView()
.background(.ellipticalGradient(gradient))
For information about how to use shape styles, see Shape
.