Backgrounds
Backgrounds control the area behind a view’s content.
A background can use one of these types:
- Default background uses the canvas default surface.
- Solid color sets one color behind the view’s content.
- Linear gradient draws a gradient behind the view’s content.
- Background image uses an image behind the view’s content.








Use a background on a stack when several child views should share the same surface. Use an image view instead when the image is the main content and needs its own frame, crop, or button behavior.