Fix sample file path for svg example

Sample tiger.svg is move to resources after directory restructuring. This change is to correct the path
This commit is contained in:
Piaoger 2020-02-20 17:28:42 +08:00 committed by GitHub
parent 17271eae67
commit 23fe47bdcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ impl Sandbox for Tiger {
fn view(&mut self) -> Element<()> {
let content = Column::new().padding(20).push(
Svg::new(format!("{}/tiger.svg", env!("CARGO_MANIFEST_DIR")))
Svg::new(format!("{}/resources/tiger.svg", env!("CARGO_MANIFEST_DIR")))
.width(Length::Fill)
.height(Length::Fill),
);