Expand description
Wraps CALayer
across all platforms.
Each widget has an underlying layer
field that you can access, which offers additional
rendering tools.
// Create a rounded red box
use cacao::view::View;
use cacao::color::Color;
let view = View::default();
view.set_background_color(Color::SystemRed);
view.layer.set_corner_radius(4.0);
Structs
Represents a CALayer
.