Skip to main content

image

Function image 

Source
pub fn image(system_name: &str) -> View
Expand description

Create an SF Symbol Image.

Examples found in repository?
examples/app.rs (line 19)
9fn main() {
10    run(|| {
11        vstack(&[
12            text("Hello from Rust! 🦀")
13                .padding(12.0)
14                .bg(Color::BLUE)
15                .rounded(8.0)
16                .opacity(0.95),
17            spacer(),
18            hstack(&[
19                image("star.fill"),
20                text("No Swift compiler needed"),
21            ]),
22            divider(),
23            text("Pure dlsym + arm64 asm → SwiftUI")
24                .padding(8.0),
25        ])
26        .padding(40.0)
27        .into_handle()
28    });
29}