Icon
The Icon
widget is used to display SVG icons and works similar to the image widget.
You can use the svg_icon!
macro to load an SVG icon from a file.
let icon: SvgIcon = svg_icon!("./assets/logo.svg");
Icon::new(icon)
For a full example, see the icon example.